mirror of
https://github.com/alexforencich/verilog-ethernet.git
synced 2025-01-28 07:03:08 +08:00
Pass parameters to model
This commit is contained in:
parent
8cb0a5e06e
commit
4e49dbcf3d
@ -72,7 +72,7 @@ def bench():
|
||||
output_pps = Signal(bool(0))
|
||||
|
||||
# PTP clock
|
||||
ptp_clock = ptp.PtpClock()
|
||||
ptp_clock = ptp.PtpClock(period_ns=INPUT_PERIOD_NS, period_fns=INPUT_PERIOD_FNS)
|
||||
|
||||
ptp_logic = ptp_clock.create_logic(
|
||||
input_clk,
|
||||
|
@ -72,7 +72,7 @@ def bench():
|
||||
output_pps = Signal(bool(0))
|
||||
|
||||
# PTP clock
|
||||
ptp_clock = ptp.PtpClock()
|
||||
ptp_clock = ptp.PtpClock(period_ns=INPUT_PERIOD_NS, period_fns=INPUT_PERIOD_FNS)
|
||||
|
||||
ptp_logic = ptp_clock.create_logic(
|
||||
input_clk,
|
||||
|
Loading…
x
Reference in New Issue
Block a user