summaryrefslogtreecommitdiff
path: root/techlibs/common/simlib.v
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-08-16 13:05:32 +0200
committerClifford Wolf <clifford@clifford.at>2015-08-16 13:05:32 +0200
commitd5b1a90b33458616c9c002062330c5420335ed31 (patch)
treec6a2b56cbfd5a7bc30c6ea175f4d8c0991e8fb0e /techlibs/common/simlib.v
parent9c33172ece6969dbca8656789fda8135619ce615 (diff)
Added $tribuf and $_TBUF_ sim models
Diffstat (limited to 'techlibs/common/simlib.v')
-rw-r--r--techlibs/common/simlib.v14
1 files changed, 14 insertions, 0 deletions
diff --git a/techlibs/common/simlib.v b/techlibs/common/simlib.v
index 275c469b..2a56b3a1 100644
--- a/techlibs/common/simlib.v
+++ b/techlibs/common/simlib.v
@@ -1156,6 +1156,20 @@ endmodule
`endif
// --------------------------------------------------------
+module \$tribuf (A, EN, Y);
+
+parameter WIDTH = 0;
+
+input [WIDTH-1:0] A;
+input EN;
+output [WIDTH-1:0] Y;
+
+assign Y = EN ? A : 'bz;
+
+endmodule
+
+// --------------------------------------------------------
+
module \$assert (A, EN);
input A, EN;