mirror of https://github.com/YosysHQ/yosys.git
Added $tribuf and $_TBUF_ sim models
This commit is contained in:
parent
9c33172ece
commit
d5b1a90b33
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue