2015-09-18 05:00:37 -05:00
|
|
|
library(gp_dff) {
|
2016-03-23 02:46:10 -05:00
|
|
|
cell(GP_DFF) {
|
2015-09-18 05:00:37 -05:00
|
|
|
area: 1;
|
|
|
|
ff("IQ", "IQN") { clocked_on: CLK;
|
2016-03-29 06:44:14 -05:00
|
|
|
next_state: D; }
|
2015-09-18 05:00:37 -05:00
|
|
|
pin(CLK) { direction: input;
|
2016-03-29 06:44:14 -05:00
|
|
|
clock: true; }
|
2015-09-18 05:00:37 -05:00
|
|
|
pin(D) { direction: input; }
|
|
|
|
pin(Q) { direction: output;
|
|
|
|
function: "IQ"; }
|
|
|
|
}
|
2016-03-23 02:46:10 -05:00
|
|
|
cell(GP_DFFS) {
|
2015-09-18 05:00:37 -05:00
|
|
|
area: 1;
|
|
|
|
ff("IQ", "IQN") { clocked_on: CLK;
|
|
|
|
next_state: D;
|
2016-03-23 02:46:10 -05:00
|
|
|
preset: "nSET'"; }
|
2015-09-18 05:00:37 -05:00
|
|
|
pin(CLK) { direction: input;
|
|
|
|
clock: true; }
|
|
|
|
pin(D) { direction: input; }
|
|
|
|
pin(Q) { direction: output;
|
|
|
|
function: "IQ"; }
|
2016-03-23 02:46:10 -05:00
|
|
|
pin(nSET) { direction: input; }
|
|
|
|
}
|
|
|
|
cell(GP_DFFR) {
|
|
|
|
area: 1;
|
|
|
|
ff("IQ", "IQN") { clocked_on: CLK;
|
2016-03-29 06:44:14 -05:00
|
|
|
next_state: D;
|
|
|
|
clear: "nRST'"; }
|
2016-03-23 02:46:10 -05:00
|
|
|
pin(CLK) { direction: input;
|
2016-03-29 06:44:14 -05:00
|
|
|
clock: true; }
|
2016-03-23 02:46:10 -05:00
|
|
|
pin(D) { direction: input; }
|
|
|
|
pin(Q) { direction: output;
|
|
|
|
function: "IQ"; }
|
|
|
|
pin(nRST) { direction: input; }
|
2015-09-18 05:00:37 -05:00
|
|
|
}
|
|
|
|
}
|