Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 3 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
View
5 migen/actorlib/sim.py
@@ -73,8 +73,11 @@ def __init__(self, generator, *endpoint_descriptions, **misc):
super().__init__(*endpoint_descriptions, **misc)
self.token_exchanger = TokenExchanger(generator, self)
+ def update_busy(self, s):
+ s.wr(self.busy, not self.token_exchanger.done)
+
def get_fragment(self):
- return self.token_exchanger.get_fragment()
+ return self.token_exchanger.get_fragment() + Fragment(sim=[self.update_busy])
class Dumper(SimActor):
def __init__(self, layout, prefix=""):
View
2  migen/bank/description.py
@@ -27,7 +27,7 @@ def __init__(self, name, size=1, access_bus=READ_WRITE, access_dev=READ_ONLY, re
self.w = Signal(self.size)
else:
if self.access_dev == READ_ONLY or self.access_dev == READ_WRITE:
- self.r = Signal(self.size)
+ self.r = Signal(self.size, reset=reset)
if self.access_dev == WRITE_ONLY or self.access_dev == READ_WRITE:
self.w = Signal(self.size)
self.we = Signal()
View
2  migen/bus/wishbone.py
@@ -197,7 +197,7 @@ def do_simulation(self, s):
class SRAM:
def __init__(self, mem_or_size, bus=Interface()):
if isinstance(mem_or_size, Memory):
- assert(mem_or_size.width == 32)
+ assert(mem_or_size.width <= 32)
self.mem = mem_or_size
else:
self.mem = Memory(32, mem_or_size//4)

No commit comments for this range

Something went wrong with that request. Please try again.