Skip to content
Snippets Groups Projects
Commit cd09f49f authored by Kia's avatar Kia
Browse files

edge case ferreted out!

parent f0cefd43
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,7 @@ class ArbitraryGearbox(Elaboratable): ...@@ -46,7 +46,7 @@ class ArbitraryGearbox(Elaboratable):
shift_reg_len = upstream_width + downstream_width shift_reg_len = upstream_width + downstream_width
shift_reg = Signal(shift_reg_len) shift_reg = Signal(shift_reg_len)
valid_bit_count = Signal(range(shift_reg_len)) valid_bit_count = Signal(range(shift_reg_len+1))
upstream_transaction = Signal(1) upstream_transaction = Signal(1)
...@@ -140,7 +140,7 @@ class GoldenGearboxModel(Elaboratable): ...@@ -140,7 +140,7 @@ class GoldenGearboxModel(Elaboratable):
# these are to make fake flow control signals # these are to make fake flow control signals
fake_memory = self.upstream_width + self.downstream_width fake_memory = self.upstream_width + self.downstream_width
fake_occupied = Signal(range(self.upstream_width + self.downstream_width)) fake_occupied = Signal(range(1 + self.upstream_width + self.downstream_width))
upstream_transaction = Signal(1) upstream_transaction = Signal(1)
downstream_transaction = Signal(1) downstream_transaction = Signal(1)
...@@ -202,13 +202,13 @@ class DummyPlug(Elaboratable): ...@@ -202,13 +202,13 @@ class DummyPlug(Elaboratable):
def elaborate(self, platform): def elaborate(self, platform):
m = Module() m = Module()
upstream_width = 5 upstream_width = 1
downstream_width = 9 downstream_width = 3
sim_memory_size = 32 sim_memory_size = 8
expiration_date = int(sim_memory_size/upstream_width)-1 expiration_date = int(sim_memory_size/upstream_width)-1
number_of_writes = Signal(range(2*expiration_date)) number_of_writes = Signal(range(1024))
wrapped = Signal(1) wrapped = Signal(1)
m.submodules.gearbox = gearbox = ArbitraryGearbox(upstream_width=upstream_width, downstream_width=downstream_width) m.submodules.gearbox = gearbox = ArbitraryGearbox(upstream_width=upstream_width, downstream_width=downstream_width)
......
[options] [options]
#mode prove mode prove
mode bmc #mode bmc
depth 32 #depth 32
multiclock off multiclock off
[engines] [engines]
smtbmc #smtbmc
#abc pdr abc pdr
#abc bmc3 #abc bmc3
[script] [script]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment