Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: GlasgowEmbedded/glasgow
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d3c57ae52629
Choose a base ref
...
head repository: GlasgowEmbedded/glasgow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 85e158103ebe
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jul 22, 2020

  1. Copy the full SHA
    85e1581 View commit details
Showing with 2 additions and 1 deletion.
  1. +2 −1 software/glasgow/gateware/__init__.py
3 changes: 2 additions & 1 deletion software/glasgow/gateware/__init__.py
Original file line number Diff line number Diff line change
@@ -25,7 +25,8 @@ def setup_wrapper():
if isinstance(self.tb, CompatModule):
compat_run_simulation(self.tb, setup_wrapper(), vcd_name="test.vcd")
if isinstance(self.tb, Elaboratable):
with Simulator(self.tb, vcd_file=open("test.vcd", "w")) as sim:
sim = Simulator(self.tb)
with sim.write_vcd(vcd_file=open("test.vcd", "w")):
sim.add_clock(1e-8)
sim.add_sync_process(setup_wrapper())
sim.run()