mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-15 03:35:40 +00:00
52 lines
899 B
Text
52 lines
899 B
Text
library(test) {
|
|
cell (bad_dff) {
|
|
area : 1;
|
|
ff("IQ", "IQN") {
|
|
next_state : "!D"; // Look here
|
|
clocked_on : "CLK";
|
|
preset : "!RST"; // Look here
|
|
}
|
|
pin(D) {
|
|
direction : input;
|
|
}
|
|
pin(CLK) {
|
|
direction : input;
|
|
}
|
|
pin(RST) {
|
|
direction : input;
|
|
}
|
|
pin(Q) {
|
|
direction: output;
|
|
function : "IQ";
|
|
}
|
|
pin(QN) {
|
|
direction: output;
|
|
function : "IQN";
|
|
}
|
|
}
|
|
cell (good_dff) {
|
|
area : 1;
|
|
ff("IQ", "IQN") {
|
|
next_state : "D"; // Look here
|
|
clocked_on : "CLK";
|
|
clear : "RST"; // Look here
|
|
}
|
|
pin(D) {
|
|
direction : input;
|
|
}
|
|
pin(CLK) {
|
|
direction : input;
|
|
}
|
|
pin(RST) {
|
|
direction : input;
|
|
}
|
|
pin(Q) {
|
|
direction: output;
|
|
function : "IQ";
|
|
}
|
|
pin(QN) {
|
|
direction: output;
|
|
function : "IQN";
|
|
}
|
|
}
|
|
}
|