SamWibatt / FPGA_HD44780

Simple, write-only character LCD core (in progress)
GNU General Public License v3.0
0 stars 0 forks source link

Refactor timer to use busy instead of end strobe #27

Closed SamWibatt closed 4 years ago

SamWibatt commented 4 years ago

Keep style consistent, and also the single-cycle strobes may get lost in situations where things are racey or sloppy. Might also fix the off-by-one error.

Entails a refactor of everything that uses the timer, but that's not so bad; just do if(~timer_busy) instead of if(timer_end_stb)

AND it saves a port! Or no I guess it doesn't, start and busy are still separate

SamWibatt commented 4 years ago

Sure did simplify the timer code! appears to work just as it used to - exactly correct times in timer tb, one cycle off in ctrlr tb. huh.