mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
genlib/divider: fix diff computation
This commit is contained in:
parent
ad70d056a8
commit
ae6b78faeb
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class Divider(Module):
|
|||
self.quotient_o.eq(qr[:w]),
|
||||
self.remainder_o.eq(qr[w:]),
|
||||
self.ready_o.eq(counter == 0),
|
||||
diff.eq(self.remainder_o - divisor_r)
|
||||
diff.eq(qr[w-1:] - divisor_r)
|
||||
]
|
||||
self.sync += [
|
||||
If(self.start_i,
|
||||
|
|
Loading…
Reference in a new issue