I’m logging this time as “documentation.”
Single biggest get from today’s debugging- learning that you can import pin assignments from other projects. It’s not in the pin planner gui, but under assignments right about hyeah:
Been looking for that in the wrong place for ages. Also got the predictor working; predictor gave us two insights:
– The timing of the testbench was off; the enable was being asserted before the new data was provided, so the state machine had already finished computing using the old data. Better thought out timing in the testbench resolved most of these. I deliberately set input data only when the dut is not enabled, which reflects the way the dut operates. Code comparator’s enable is the opposite of the counter’s enable, so only one block is on at a time.
– In some of the states there were glitches when if statements had no else. Not sure how exactly that happened, but putting in the explicit else cleared it up.
No errors are now being detected by the fixed test, gonna give random testing a go. I left a couple else’s out, maybe I can trigger another glitch. In the meantime, I’ve compiled everything in Quartus and programmed the De-10 Lite. The displays and switches are working fine, but my logic for my enable is all screwy. Should be a quick fix. I also brainstormed a list of next steps, but I want to make a little graphic for those before posting them.
