mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-17 18:06:41 +00:00
Added GP_DFFS, GP_DFFR, and GP_DFFSR
This commit is contained in:
parent
456c10f16e
commit
b4bf787f10
4 changed files with 76 additions and 21 deletions
|
@ -1,5 +1,5 @@
|
|||
library(gp_dff) {
|
||||
cell(GP_DFF_NOSR) {
|
||||
cell(GP_DFF) {
|
||||
area: 1;
|
||||
ff("IQ", "IQN") { clocked_on: CLK;
|
||||
next_state: D; }
|
||||
|
@ -9,18 +9,28 @@ library(gp_dff) {
|
|||
pin(Q) { direction: output;
|
||||
function: "IQ"; }
|
||||
}
|
||||
cell(GP_DFF_SR) {
|
||||
cell(GP_DFFS) {
|
||||
area: 1;
|
||||
ff("IQ", "IQN") { clocked_on: CLK;
|
||||
next_state: D;
|
||||
preset: "nSETZ'";
|
||||
clear: "nRSTZ'"; }
|
||||
preset: "nSET'"; }
|
||||
pin(CLK) { direction: input;
|
||||
clock: true; }
|
||||
pin(D) { direction: input; }
|
||||
pin(Q) { direction: output;
|
||||
function: "IQ"; }
|
||||
pin(nRSTZ) { direction: input; }
|
||||
pin(nSETZ) { direction: input; }
|
||||
pin(nSET) { direction: input; }
|
||||
}
|
||||
cell(GP_DFFR) {
|
||||
area: 1;
|
||||
ff("IQ", "IQN") { clocked_on: CLK;
|
||||
next_state: D;
|
||||
clear: "nRST'"; }
|
||||
pin(CLK) { direction: input;
|
||||
clock: true; }
|
||||
pin(D) { direction: input; }
|
||||
pin(Q) { direction: output;
|
||||
function: "IQ"; }
|
||||
pin(nRST) { direction: input; }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue