mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-19 21:55:48 +00:00
dlatchlibmap: making a copy of test files dfflibmap* to dlatchlibmap*
This commit is contained in:
parent
6b1d5dedbf
commit
69df81756c
13 changed files with 843 additions and 0 deletions
47
tests/techmap/dlatchlibmap_dlatchn.lib
Normal file
47
tests/techmap/dlatchlibmap_dlatchn.lib
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
library(test) {
|
||||
cell (dffn) {
|
||||
area : 6;
|
||||
ff("IQ", "IQN") {
|
||||
next_state : "D";
|
||||
clocked_on : "!CLK";
|
||||
}
|
||||
pin(D) {
|
||||
direction : input;
|
||||
}
|
||||
pin(CLK) {
|
||||
direction : input;
|
||||
}
|
||||
pin(Q) {
|
||||
direction: output;
|
||||
function : "IQ";
|
||||
}
|
||||
pin(QN) {
|
||||
direction: output;
|
||||
function : "IQN";
|
||||
}
|
||||
}
|
||||
cell (dffe) {
|
||||
area : 6;
|
||||
ff("IQ", "IQN") {
|
||||
next_state : "(D&EN) | (IQ&!EN)";
|
||||
clocked_on : "!CLK";
|
||||
}
|
||||
pin(D) {
|
||||
direction : input;
|
||||
}
|
||||
pin(EN) {
|
||||
direction : input;
|
||||
}
|
||||
pin(CLK) {
|
||||
direction : input;
|
||||
}
|
||||
pin(Q) {
|
||||
direction: output;
|
||||
function : "IQ";
|
||||
}
|
||||
pin(QN) {
|
||||
direction: output;
|
||||
function : "IQN";
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue