diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-01-29 12:15:38 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-01-29 12:15:38 +0100 |
commit | cbe77bf84465ea0c4120e865189b07329b862468 (patch) | |
tree | 17728929b55a1ea72fb62b40b7d22a3989ab6de7 /manual/PRESENTATION_Intro/mycells.lib | |
parent | aceab5fc08ccba493b81cced8f24406ae76ac7bc (diff) | |
download | yosys-cbe77bf84465ea0c4120e865189b07329b862468.tar.gz yosys-cbe77bf84465ea0c4120e865189b07329b862468.tar.bz2 yosys-cbe77bf84465ea0c4120e865189b07329b862468.zip |
presentation progress
Diffstat (limited to 'manual/PRESENTATION_Intro/mycells.lib')
-rw-r--r-- | manual/PRESENTATION_Intro/mycells.lib | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/manual/PRESENTATION_Intro/mycells.lib b/manual/PRESENTATION_Intro/mycells.lib new file mode 100644 index 000000000..a0204d7e1 --- /dev/null +++ b/manual/PRESENTATION_Intro/mycells.lib @@ -0,0 +1,38 @@ +library(demo) { + cell(BUF) { + area: 6; + pin(A) { direction: input; } + pin(Y) { direction: output; + function: "A"; } + } + cell(NOT) { + area: 3; + pin(A) { direction: input; } + pin(Y) { direction: output; + function: "A'"; } + } + cell(NAND) { + area: 4; + pin(A) { direction: input; } + pin(B) { direction: input; } + pin(Y) { direction: output; + function: "(A*B)'"; } + } + cell(NOR) { + area: 4; + pin(A) { direction: input; } + pin(B) { direction: input; } + pin(Y) { direction: output; + function: "(A+B)'"; } + } + cell(DFF) { + area: 18; + ff(IQ, IQN) { clocked_on: C; + next_state: D; } + pin(C) { direction: input; + clock: true; } + pin(D) { direction: input; } + pin(Q) { direction: output; + function: "IQ"; } + } +} |