summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2020-07-03 02:24:13 -0700
committer couriersud <couriersud@gmx.org>2020-07-03 20:36:59 +0200
commit0718a20df23aa377663ce6e90d98b35ae33f1225 (patch)
tree04a087fe39aeb5f65f5a163ec2850a4e3281616a /src
parentfa54fa1b658be057b5c04188a69bbecab06e5a67 (diff)
netlist: Align design VARCLOCK to AFUNC.
Diffstat (limited to 'src')
-rw-r--r--src/lib/netlist/devices/nld_system.cpp2
-rw-r--r--src/lib/netlist/devices/nld_system.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/netlist/devices/nld_system.cpp b/src/lib/netlist/devices/nld_system.cpp
index 547581ec590..c987ef7065a 100644
--- a/src/lib/netlist/devices/nld_system.cpp
+++ b/src/lib/netlist/devices/nld_system.cpp
@@ -63,7 +63,7 @@ namespace devices
NETLIB_DEVICE_IMPL(function, "AFUNC", "N,FUNC")
NETLIB_DEVICE_IMPL(analog_input, "ANALOG_INPUT", "IN")
NETLIB_DEVICE_IMPL(clock, "CLOCK", "FREQ")
- NETLIB_DEVICE_IMPL(varclock, "VARCLOCK", "FUNC")
+ NETLIB_DEVICE_IMPL(varclock, "VARCLOCK", "N,FUNC")
NETLIB_DEVICE_IMPL(extclock, "EXTCLOCK", "FREQ,PATTERN")
NETLIB_DEVICE_IMPL(sys_dsw1, "SYS_DSW", "+I,+1,+2")
NETLIB_DEVICE_IMPL(sys_dsw2, "SYS_DSW2", "")
diff --git a/src/lib/netlist/devices/nld_system.h b/src/lib/netlist/devices/nld_system.h
index aedf171afcd..36317a6b1b9 100644
--- a/src/lib/netlist/devices/nld_system.h
+++ b/src/lib/netlist/devices/nld_system.h
@@ -40,8 +40,9 @@
NET_REGISTER_DEV(CLOCK, name) \
PARAM(name.FREQ, freq)
-#define VARCLOCK(name, func) \
+#define VARCLOCK(name, n, func) \
NET_REGISTER_DEV(VARCLOCK, name) \
+ PARAM(name.N, n) \
PARAM(name.FUNC, func)
#define EXTCLOCK(name, freq, pattern) \