summaryrefslogtreecommitdiff
path: root/techlibs/common/simcells.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/simcells.v
parent9c33172ece6969dbca8656789fda8135619ce615 (diff)
Added $tribuf and $_TBUF_ sim models
Diffstat (limited to 'techlibs/common/simcells.v')
-rw-r--r--techlibs/common/simcells.v6
1 files changed, 6 insertions, 0 deletions
diff --git a/techlibs/common/simcells.v b/techlibs/common/simcells.v
index 9a820f71..3b7d55c6 100644
--- a/techlibs/common/simcells.v
+++ b/techlibs/common/simcells.v
@@ -132,6 +132,12 @@ output Y;
assign Y = ~((A | B) & (C | D));
endmodule
+module \$_TBUF_ (A, E, Y);
+input A, E;
+output Y;
+assign Y = E ? A : 1'bz;
+endmodule
+
module \$_SR_NN_ (S, R, Q);
input S, R;
output reg Q;