sim: Fix clock phase in add_clock having to be specified in ps.
This commit is contained in:
parent
c83b51db6d
commit
02364a4fd7
2 changed files with 41 additions and 0 deletions
|
|
@ -139,6 +139,8 @@ class Simulator:
|
|||
# to happen at a non-zero time, distinguishing it from the reset values in the waveform
|
||||
# viewer.
|
||||
phase = period // 2
|
||||
else:
|
||||
phase = int(phase * 1e12) + period // 2
|
||||
self._engine.add_clock_process(domain.clk, phase=phase, period=period)
|
||||
self._clocked.add(domain)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue