summaryrefslogtreecommitdiff
path: root/hdl/util.svh
diff options
context:
space:
mode:
authorJulian Blake Kongslie2021-04-07 17:02:03 -0700
committerJulian Blake Kongslie2021-04-07 17:02:03 -0700
commit238a43e587bfbe6574d34ef36553619249797260 (patch)
treee1b3b0c0c4c6254d2d4a851a2eb1bf2cac2169a2 /hdl/util.svh
parentDon't rebuild verilator just for memory file changes. (diff)
downloadnoncpu-238a43e587bfbe6574d34ef36553619249797260.tar.xz
Switch back to $past-based scheduling; my clever idea wasn't clever enough.
Diffstat (limited to 'hdl/util.svh')
-rw-r--r--hdl/util.svh7
1 files changed, 5 insertions, 2 deletions
diff --git a/hdl/util.svh b/hdl/util.svh
index fa6ddc5..012e2ed 100644
--- a/hdl/util.svh
+++ b/hdl/util.svh
@@ -1,2 +1,5 @@
1`define input(x) type(x) x``_; assign x``_ = x; 1`ifdef SYNTHESIS
2`define output(x) type(x) x``_; assign x = x``_; 2`define lag(x) x
3`else
4`define lag(x) $past(x)
5`endif