mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-01 07:40:42 +00:00
Add tests for Xilinx UG901 examples
This commit is contained in:
parent
0d037bf9d8
commit
2ae7dec530
89 changed files with 2962 additions and 0 deletions
17
tests/xilinx_ug901/tristates_1.v
Normal file
17
tests/xilinx_ug901/tristates_1.v
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Tristate Description Using Combinatorial Always Block
|
||||
// File: tristates_1.v
|
||||
//
|
||||
module tristates_1 (T, I, O);
|
||||
input T, I;
|
||||
output O;
|
||||
reg O;
|
||||
|
||||
always @(T or I)
|
||||
begin
|
||||
if (~T)
|
||||
O = I;
|
||||
else
|
||||
O = 1'bZ;
|
||||
end
|
||||
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue