diff options
| author | Julian Blake Kongslie | 2021-04-07 17:02:03 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2021-04-07 17:02:03 -0700 |
| commit | 238a43e587bfbe6574d34ef36553619249797260 (patch) | |
| tree | e1b3b0c0c4c6254d2d4a851a2eb1bf2cac2169a2 /hdl/util.svh | |
| parent | Don't rebuild verilator just for memory file changes. (diff) | |
| download | noncpu-238a43e587bfbe6574d34ef36553619249797260.tar.xz | |
Switch back to $past-based scheduling; my clever idea wasn't clever enough.
Diffstat (limited to '')
| -rw-r--r-- | hdl/util.svh | 7 |
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 | ||
