What Datapath Elements Do We need?
Two registers to hold LOW, HIGH value
- Use LPM_DFF or write VHDL model (reg6.vhd)
Need a 6-bit counter to cycle address lines of RAM
- LPM_COUNTER
- Counter needs to be loaded with LOW value when we start to zero the RAM
Need a Comparator to compare Counter value and HIGH value to see if we are finished
Need the RAM (use LPM_RAM_DQ)