aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ice40/tribuf.v
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ice40/tribuf.v')
-rw-r--r--tests/ice40/tribuf.v6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ice40/tribuf.v b/tests/ice40/tribuf.v
index b2b5e37d6..870a02584 100644
--- a/tests/ice40/tribuf.v
+++ b/tests/ice40/tribuf.v
@@ -1,10 +1,10 @@
module tristate (en, i, o);
input en;
input i;
- output reg o;
+ output o;
+
+ assign o = en ? i : 1'bz;
- always @(en or i)
- o <= (en)? i : 1'bZ;
endmodule