mirror of
https://github.com/myhdl/myhdl.git
synced 2025-01-24 21:52:56 +08:00
Changed the clock source to actually have the initial value outputted for a while.
This commit is contained in:
parent
843eb9eb4a
commit
f5ce6fb533
@ -31,8 +31,6 @@ def initial_value_bench(initial_val, change_input_signal):
|
||||
|
||||
@instance
|
||||
def clkgen():
|
||||
clk.next = 1
|
||||
|
||||
for n in range(N):
|
||||
yield delay(10)
|
||||
clk.next = not clk
|
||||
@ -43,7 +41,7 @@ def initial_value_bench(initial_val, change_input_signal):
|
||||
def output_driver():
|
||||
output_signal.next = input_signal
|
||||
|
||||
@always(clk)
|
||||
@always(clk.posedge)
|
||||
def compare_output():
|
||||
|
||||
input_signal.next = update_val
|
||||
|
Loading…
x
Reference in New Issue
Block a user