test: generate examples to verilog as part of unit tests.
This is to make sure 806a62c2 doesn't happen again.
This commit is contained in:
parent
c14d074fcc
commit
5c63177fc2
2 changed files with 32 additions and 4 deletions
|
|
@ -15,7 +15,7 @@ class ClockDivisor(Elaboratable):
|
|||
|
||||
|
||||
if __name__ == "__main__":
|
||||
ctr = ClockDivisor(factor=16)
|
||||
m = ctr.elaborate(platform=None)
|
||||
m.domains += ClockDomain("sync", async_reset=True)
|
||||
main(m, ports=[ctr.o])
|
||||
m = Module()
|
||||
m.domains.sync = sync = ClockDomain("sync", async_reset=True)
|
||||
m.submodules.ctr = ctr = ClockDivisor(factor=16)
|
||||
main(m, ports=[ctr.o, sync.clk])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue