mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-22 22:03:40 +00:00
initial import
This commit is contained in:
commit
7764d0ba1d
481 changed files with 54634 additions and 0 deletions
22
tests/asicworld/code_hdl_models_misc1.v
Normal file
22
tests/asicworld/code_hdl_models_misc1.v
Normal file
|
@ -0,0 +1,22 @@
|
|||
module misc1 (a,b,c,d,y);
|
||||
input a, b,c,d;
|
||||
output y;
|
||||
|
||||
wire net1,net2,net3;
|
||||
|
||||
supply1 vdd;
|
||||
supply0 vss;
|
||||
|
||||
// y = !((a+b+c).d)
|
||||
|
||||
pmos p1 (vdd,net1,a);
|
||||
pmos p2 (net1,net2,b);
|
||||
pmos p3 (net2,y,c);
|
||||
pmos p4 (vdd,y,d);
|
||||
|
||||
nmos n1 (vss,net3,a);
|
||||
nmos n2 (vss,net3,b);
|
||||
nmos n3 (vss,net3,c);
|
||||
nmos n4 (net3,y,d);
|
||||
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue