divider: Add an output register
authorPaul Mackerras <paulus@ozlabs.org>
Mon, 14 Oct 2019 23:29:53 +0000 (10:29 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Mon, 14 Oct 2019 23:29:53 +0000 (10:29 +1100)
commitc7025f9f284ec51e7d97f678bde59afa39c0f349
tree46970ca8d089247c3c66a605e16ed9448e092a8c
parentf181bf31e24f9d11eb8e73124f56ee15386cc540
divider: Add an output register

This puts the output of the divider through a register.  With the
addition of the logic to detect overflow, the combinatorial output
logic of the divider was becoming a critical path.  Adding the
output register adds a cycle to the latency of the divider but
helps make timing at 100MHz on the A7-100.

This also makes the valid, write_reg_enable and write_cr_enable
fields of the output be registered, which eliminates warnings
about register/latch pins with no clock.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
divider.vhdl