mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-10 21:20:53 +00:00
Added digital (xspice) example code to examples/cmos/
This commit is contained in:
parent
5547fae4cf
commit
b0ac32bc03
4 changed files with 70 additions and 1 deletions
31
examples/cmos/cmos_cells_digital.sp
Normal file
31
examples/cmos/cmos_cells_digital.sp
Normal file
|
@ -0,0 +1,31 @@
|
|||
|
||||
.SUBCKT BUF A Y
|
||||
.model buffer1 d_buffer
|
||||
Abuf A Y buffer1
|
||||
.ENDS NOT
|
||||
|
||||
.SUBCKT NOT A Y
|
||||
.model not1 d_inverter
|
||||
Anot A Y not1
|
||||
.ENDS NOT
|
||||
|
||||
.SUBCKT NAND A B Y
|
||||
.model nand1 d_nand
|
||||
Anand [A B] Y nand1
|
||||
.ENDS NAND
|
||||
|
||||
.SUBCKT NOR A B Y
|
||||
.model nor1 d_nor
|
||||
Anand [A B] Y nor1
|
||||
.ENDS NOR
|
||||
|
||||
.SUBCKT DLATCH E D Q
|
||||
.model latch1 d_latch
|
||||
Alatch D E null null Q nQ latch1
|
||||
.ENDS DLATCH
|
||||
|
||||
.SUBCKT DFF C D Q
|
||||
.model dff1 d_dff
|
||||
Adff D C null null Q nQ dff1
|
||||
.ENDS DFF
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue