3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-24 13:18:56 +00:00

Added $tribuf and $_TBUF_ sim models

This commit is contained in:
Clifford Wolf 2015-08-16 13:05:32 +02:00
parent 9c33172ece
commit d5b1a90b33
2 changed files with 20 additions and 0 deletions

View file

@ -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;