Flip-flop cells¶
The cell types $_DFF_N_
and $_DFF_P_
represent d-type flip-flops.
The cell types $_DFFE_[NP][NP]_
implement d-type flip-flops with enable. The
values in the table for these cell types relate to the following Verilog code
template.
always @(CLK_EDGE C)
if (EN == EN_LVL)
Q <= D;
\(ClkEdge\) |
\(EnLvl\) |
Cell Type |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
The cell types $_DFF_[NP][NP][01]_
implement d-type flip-flops with
asynchronous reset. The values in the table for these cell types relate to the
following Verilog code template, where RST_EDGE
is posedge
if
RST_LVL
if 1
, and negedge
otherwise.
always @(CLK_EDGE C, RST_EDGE R)
if (R == RST_LVL)
Q <= RST_VAL;
else
Q <= D;
The cell types $_SDFF_[NP][NP][01]_
implement d-type flip-flops with
synchronous reset. The values in the table for these cell types relate to the
following Verilog code template:
always @(CLK_EDGE C)
if (R == RST_LVL)
Q <= RST_VAL;
else
Q <= D;
\(ClkEdge\) |
\(RstLvl\) |
\(RstVal\) |
Cell Type |
---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The cell types $_DFFE_[NP][NP][01][NP]_
implement d-type flip-flops with
asynchronous reset and enable. The values in the table for these cell types
relate to the following Verilog code template, where RST_EDGE
is posedge
if RST_LVL
if 1
, and negedge
otherwise.
always @(CLK_EDGE C, RST_EDGE R)
if (R == RST_LVL)
Q <= RST_VAL;
else if (EN == EN_LVL)
Q <= D;
The cell types $_SDFFE_[NP][NP][01][NP]_
implement d-type flip-flops with
synchronous reset and enable, with reset having priority over enable. The values
in the table for these cell types relate to the following Verilog code template:
always @(CLK_EDGE C)
if (R == RST_LVL)
Q <= RST_VAL;
else if (EN == EN_LVL)
Q <= D;
The cell types $_SDFFCE_[NP][NP][01][NP]_
implement d-type flip-flops with
synchronous reset and enable, with enable having priority over reset. The values
in the table for these cell types relate to the following Verilog code template:
always @(CLK_EDGE C)
if (EN == EN_LVL)
if (R == RST_LVL)
Q <= RST_VAL;
else
Q <= D;
\(ClkEdge\) |
\(RstLvl\) |
\(RstVal\) |
\(EnLvl\) |
Cell Type |
---|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The cell types $_DFFSR_[NP][NP][NP]_
implement d-type flip-flops with
asynchronous set and reset. The values in the table for these cell types relate
to the following Verilog code template, where RST_EDGE
is posedge
if
RST_LVL
if 1
, negedge
otherwise, and SET_EDGE
is posedge
if
SET_LVL
if 1
, negedge
otherwise.
always @(CLK_EDGE C, RST_EDGE R, SET_EDGE S)
if (R == RST_LVL)
Q <= 0;
else if (S == SET_LVL)
Q <= 1;
else
Q <= D;
\(ClkEdge\) |
\(SetLvl\) |
\(RstLvl\) |
Cell Type |
---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The cell types $_DFFSRE_[NP][NP][NP][NP]_
implement d-type flip-flops with
asynchronous set and reset and enable. The values in the table for these cell
types relate to the following Verilog code template, where RST_EDGE
is
posedge
if RST_LVL
if 1
, negedge
otherwise, and SET_EDGE
is
posedge
if SET_LVL
if 1
, negedge
otherwise.
always @(CLK_EDGE C, RST_EDGE R, SET_EDGE S)
if (R == RST_LVL)
Q <= 0;
else if (S == SET_LVL)
Q <= 1;
else if (E == EN_LVL)
Q <= D;
\(ClkEdge\) |
\(SetLvl\) |
\(RstLvl\) |
\(EnLvl\) |
Cell Type |
---|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- yosys> help $_ALDFFE_NNN_¶
A negative edge D-type flip-flop with negative polarity async load and negative polarity clock enable.
Truth table: D C L AD E | Q ------------+--- - - 0 a - | a d \ - - 0 | d - - - - - | q
- Simulation model (verilog)¶
1420module \$_ALDFFE_NNN_ (D, C, L, AD, E, Q); 1421 input D, C, L, AD, E; 1422 output reg Q; 1423 always @(negedge C or negedge L) begin 1424 if (L == 0) 1425 Q <= AD; 1426 else if (E == 0) 1427 Q <= D; 1428 end 1429endmodule
- yosys> help $_ALDFFE_NNP_¶
A negative edge D-type flip-flop with negative polarity async load and positive polarity clock enable.
Truth table: D C L AD E | Q ------------+--- - - 0 a - | a d \ - - 1 | d - - - - - | q
- Simulation model (verilog)¶
1445module \$_ALDFFE_NNP_ (D, C, L, AD, E, Q); 1446 input D, C, L, AD, E; 1447 output reg Q; 1448 always @(negedge C or negedge L) begin 1449 if (L == 0) 1450 Q <= AD; 1451 else if (E == 1) 1452 Q <= D; 1453 end 1454endmodule
- yosys> help $_ALDFFE_NPN_¶
A negative edge D-type flip-flop with positive polarity async load and negative polarity clock enable.
Truth table: D C L AD E | Q ------------+--- - - 1 a - | a d \ - - 0 | d - - - - - | q
- Simulation model (verilog)¶
1470module \$_ALDFFE_NPN_ (D, C, L, AD, E, Q); 1471 input D, C, L, AD, E; 1472 output reg Q; 1473 always @(negedge C or posedge L) begin 1474 if (L == 1) 1475 Q <= AD; 1476 else if (E == 0) 1477 Q <= D; 1478 end 1479endmodule
- yosys> help $_ALDFFE_NPP_¶
A negative edge D-type flip-flop with positive polarity async load and positive polarity clock enable.
Truth table: D C L AD E | Q ------------+--- - - 1 a - | a d \ - - 1 | d - - - - - | q
- Simulation model (verilog)¶
1495module \$_ALDFFE_NPP_ (D, C, L, AD, E, Q); 1496 input D, C, L, AD, E; 1497 output reg Q; 1498 always @(negedge C or posedge L) begin 1499 if (L == 1) 1500 Q <= AD; 1501 else if (E == 1) 1502 Q <= D; 1503 end 1504endmodule
- yosys> help $_ALDFFE_PNN_¶
A positive edge D-type flip-flop with negative polarity async load and negative polarity clock enable.
Truth table: D C L AD E | Q ------------+--- - - 0 a - | a d / - - 0 | d - - - - - | q
- Simulation model (verilog)¶
1520module \$_ALDFFE_PNN_ (D, C, L, AD, E, Q); 1521 input D, C, L, AD, E; 1522 output reg Q; 1523 always @(posedge C or negedge L) begin 1524 if (L == 0) 1525 Q <= AD; 1526 else if (E == 0) 1527 Q <= D; 1528 end 1529endmodule
- yosys> help $_ALDFFE_PNP_¶
A positive edge D-type flip-flop with negative polarity async load and positive polarity clock enable.
Truth table: D C L AD E | Q ------------+--- - - 0 a - | a d / - - 1 | d - - - - - | q
- Simulation model (verilog)¶
1545module \$_ALDFFE_PNP_ (D, C, L, AD, E, Q); 1546 input D, C, L, AD, E; 1547 output reg Q; 1548 always @(posedge C or negedge L) begin 1549 if (L == 0) 1550 Q <= AD; 1551 else if (E == 1) 1552 Q <= D; 1553 end 1554endmodule
- yosys> help $_ALDFFE_PPN_¶
A positive edge D-type flip-flop with positive polarity async load and negative polarity clock enable.
Truth table: D C L AD E | Q ------------+--- - - 1 a - | a d / - - 0 | d - - - - - | q
- Simulation model (verilog)¶
1570module \$_ALDFFE_PPN_ (D, C, L, AD, E, Q); 1571 input D, C, L, AD, E; 1572 output reg Q; 1573 always @(posedge C or posedge L) begin 1574 if (L == 1) 1575 Q <= AD; 1576 else if (E == 0) 1577 Q <= D; 1578 end 1579endmodule
- yosys> help $_ALDFFE_PPP_¶
A positive edge D-type flip-flop with positive polarity async load and positive polarity clock enable.
Truth table: D C L AD E | Q ------------+--- - - 1 a - | a d / - - 1 | d - - - - - | q
- Simulation model (verilog)¶
1595module \$_ALDFFE_PPP_ (D, C, L, AD, E, Q); 1596 input D, C, L, AD, E; 1597 output reg Q; 1598 always @(posedge C or posedge L) begin 1599 if (L == 1) 1600 Q <= AD; 1601 else if (E == 1) 1602 Q <= D; 1603 end 1604endmodule
- yosys> help $_ALDFF_NN_¶
A negative edge D-type flip-flop with negative polarity async load.
Truth table: D C L AD | Q ----------+--- - - 0 a | a d \ - - | d - - - - | q
- Simulation model (verilog)¶
1323module \$_ALDFF_NN_ (D, C, L, AD, Q); 1324 input D, C, L, AD; 1325 output reg Q; 1326 always @(negedge C or negedge L) begin 1327 if (L == 0) 1328 Q <= AD; 1329 else 1330 Q <= D; 1331 end 1332endmodule
- yosys> help $_ALDFF_NP_¶
A negative edge D-type flip-flop with positive polarity async load.
Truth table: D C L AD | Q ----------+--- - - 1 a | a d \ - - | d - - - - | q
- Simulation model (verilog)¶
1347module \$_ALDFF_NP_ (D, C, L, AD, Q); 1348 input D, C, L, AD; 1349 output reg Q; 1350 always @(negedge C or posedge L) begin 1351 if (L == 1) 1352 Q <= AD; 1353 else 1354 Q <= D; 1355 end 1356endmodule
- yosys> help $_ALDFF_PN_¶
A positive edge D-type flip-flop with negative polarity async load.
Truth table: D C L AD | Q ----------+--- - - 0 a | a d / - - | d - - - - | q
- Simulation model (verilog)¶
1371module \$_ALDFF_PN_ (D, C, L, AD, Q); 1372 input D, C, L, AD; 1373 output reg Q; 1374 always @(posedge C or negedge L) begin 1375 if (L == 0) 1376 Q <= AD; 1377 else 1378 Q <= D; 1379 end 1380endmodule
- yosys> help $_ALDFF_PP_¶
A positive edge D-type flip-flop with positive polarity async load.
Truth table: D C L AD | Q ----------+--- - - 1 a | a d / - - | d - - - - | q
- Simulation model (verilog)¶
1395module \$_ALDFF_PP_ (D, C, L, AD, Q); 1396 input D, C, L, AD; 1397 output reg Q; 1398 always @(posedge C or posedge L) begin 1399 if (L == 1) 1400 Q <= AD; 1401 else 1402 Q <= D; 1403 end 1404endmodule
- yosys> help $_DFFE_NN0N_¶
A negative edge D-type flip-flop with negative polarity reset and negative polarity clock enable.
Truth table: D C R E | Q ---------+--- - - 0 - | 0 d \ - 0 | d - - - - | q
- Simulation model (verilog)¶
924module \$_DFFE_NN0N_ (D, C, R, E, Q); 925 input D, C, R, E; 926 output reg Q; 927 always @(negedge C or negedge R) begin 928 if (R == 0) 929 Q <= 0; 930 else if (E == 0) 931 Q <= D; 932 end 933endmodule
- yosys> help $_DFFE_NN0P_¶
A negative edge D-type flip-flop with negative polarity reset and positive polarity clock enable.
Truth table: D C R E | Q ---------+--- - - 0 - | 0 d \ - 1 | d - - - - | q
- Simulation model (verilog)¶
949module \$_DFFE_NN0P_ (D, C, R, E, Q); 950 input D, C, R, E; 951 output reg Q; 952 always @(negedge C or negedge R) begin 953 if (R == 0) 954 Q <= 0; 955 else if (E == 1) 956 Q <= D; 957 end 958endmodule
- yosys> help $_DFFE_NN1N_¶
A negative edge D-type flip-flop with negative polarity set and negative polarity clock enable.
Truth table: D C R E | Q ---------+--- - - 0 - | 1 d \ - 0 | d - - - - | q
- Simulation model (verilog)¶
974module \$_DFFE_NN1N_ (D, C, R, E, Q); 975 input D, C, R, E; 976 output reg Q; 977 always @(negedge C or negedge R) begin 978 if (R == 0) 979 Q <= 1; 980 else if (E == 0) 981 Q <= D; 982 end 983endmodule
- yosys> help $_DFFE_NN1P_¶
A negative edge D-type flip-flop with negative polarity set and positive polarity clock enable.
Truth table: D C R E | Q ---------+--- - - 0 - | 1 d \ - 1 | d - - - - | q
- Simulation model (verilog)¶
999module \$_DFFE_NN1P_ (D, C, R, E, Q); 1000 input D, C, R, E; 1001 output reg Q; 1002 always @(negedge C or negedge R) begin 1003 if (R == 0) 1004 Q <= 1; 1005 else if (E == 1) 1006 Q <= D; 1007 end 1008endmodule
- yosys> help $_DFFE_NN_¶
A negative edge D-type flip-flop with negative polarity enable.
Truth table: D C E | Q -------+--- d \ 0 | d - - - | q
- Simulation model (verilog)¶
650module \$_DFFE_NN_ (D, C, E, Q); 651 input D, C, E; 652 output reg Q; 653 always @(negedge C) begin 654 if (!E) Q <= D; 655 end 656endmodule
- yosys> help $_DFFE_NP0N_¶
A negative edge D-type flip-flop with positive polarity reset and negative polarity clock enable.
Truth table: D C R E | Q ---------+--- - - 1 - | 0 d \ - 0 | d - - - - | q
- Simulation model (verilog)¶
1024module \$_DFFE_NP0N_ (D, C, R, E, Q); 1025 input D, C, R, E; 1026 output reg Q; 1027 always @(negedge C or posedge R) begin 1028 if (R == 1) 1029 Q <= 0; 1030 else if (E == 0) 1031 Q <= D; 1032 end 1033endmodule
- yosys> help $_DFFE_NP0P_¶
A negative edge D-type flip-flop with positive polarity reset and positive polarity clock enable.
Truth table: D C R E | Q ---------+--- - - 1 - | 0 d \ - 1 | d - - - - | q
- Simulation model (verilog)¶
1049module \$_DFFE_NP0P_ (D, C, R, E, Q); 1050 input D, C, R, E; 1051 output reg Q; 1052 always @(negedge C or posedge R) begin 1053 if (R == 1) 1054 Q <= 0; 1055 else if (E == 1) 1056 Q <= D; 1057 end 1058endmodule
- yosys> help $_DFFE_NP1N_¶
A negative edge D-type flip-flop with positive polarity set and negative polarity clock enable.
Truth table: D C R E | Q ---------+--- - - 1 - | 1 d \ - 0 | d - - - - | q
- Simulation model (verilog)¶
1074module \$_DFFE_NP1N_ (D, C, R, E, Q); 1075 input D, C, R, E; 1076 output reg Q; 1077 always @(negedge C or posedge R) begin 1078 if (R == 1) 1079 Q <= 1; 1080 else if (E == 0) 1081 Q <= D; 1082 end 1083endmodule
- yosys> help $_DFFE_NP1P_¶
A negative edge D-type flip-flop with positive polarity set and positive polarity clock enable.
Truth table: D C R E | Q ---------+--- - - 1 - | 1 d \ - 1 | d - - - - | q
- Simulation model (verilog)¶
1099module \$_DFFE_NP1P_ (D, C, R, E, Q); 1100 input D, C, R, E; 1101 output reg Q; 1102 always @(negedge C or posedge R) begin 1103 if (R == 1) 1104 Q <= 1; 1105 else if (E == 1) 1106 Q <= D; 1107 end 1108endmodule
- yosys> help $_DFFE_NP_¶
A negative edge D-type flip-flop with positive polarity enable.
Truth table: D C E | Q -------+--- d \ 1 | d - - - | q
- Simulation model (verilog)¶
670module \$_DFFE_NP_ (D, C, E, Q); 671 input D, C, E; 672 output reg Q; 673 always @(negedge C) begin 674 if (E) Q <= D; 675 end 676endmodule
- yosys> help $_DFFE_PN0N_¶
A positive edge D-type flip-flop with negative polarity reset and negative polarity clock enable.
Truth table: D C R E | Q ---------+--- - - 0 - | 0 d / - 0 | d - - - - | q
- Simulation model (verilog)¶
1124module \$_DFFE_PN0N_ (D, C, R, E, Q); 1125 input D, C, R, E; 1126 output reg Q; 1127 always @(posedge C or negedge R) begin 1128 if (R == 0) 1129 Q <= 0; 1130 else if (E == 0) 1131 Q <= D; 1132 end 1133endmodule
- yosys> help $_DFFE_PN0P_¶
A positive edge D-type flip-flop with negative polarity reset and positive polarity clock enable.
Truth table: D C R E | Q ---------+--- - - 0 - | 0 d / - 1 | d - - - - | q
- Simulation model (verilog)¶
1149module \$_DFFE_PN0P_ (D, C, R, E, Q); 1150 input D, C, R, E; 1151 output reg Q; 1152 always @(posedge C or negedge R) begin 1153 if (R == 0) 1154 Q <= 0; 1155 else if (E == 1) 1156 Q <= D; 1157 end 1158endmodule
- yosys> help $_DFFE_PN1N_¶
A positive edge D-type flip-flop with negative polarity set and negative polarity clock enable.
Truth table: D C R E | Q ---------+--- - - 0 - | 1 d / - 0 | d - - - - | q
- Simulation model (verilog)¶
1174module \$_DFFE_PN1N_ (D, C, R, E, Q); 1175 input D, C, R, E; 1176 output reg Q; 1177 always @(posedge C or negedge R) begin 1178 if (R == 0) 1179 Q <= 1; 1180 else if (E == 0) 1181 Q <= D; 1182 end 1183endmodule
- yosys> help $_DFFE_PN1P_¶
A positive edge D-type flip-flop with negative polarity set and positive polarity clock enable.
Truth table: D C R E | Q ---------+--- - - 0 - | 1 d / - 1 | d - - - - | q
- Simulation model (verilog)¶
1199module \$_DFFE_PN1P_ (D, C, R, E, Q); 1200 input D, C, R, E; 1201 output reg Q; 1202 always @(posedge C or negedge R) begin 1203 if (R == 0) 1204 Q <= 1; 1205 else if (E == 1) 1206 Q <= D; 1207 end 1208endmodule
- yosys> help $_DFFE_PN_¶
A positive edge D-type flip-flop with negative polarity enable.
Truth table: D C E | Q -------+--- d / 0 | d - - - | q
- Simulation model (verilog)¶
690module \$_DFFE_PN_ (D, C, E, Q); 691 input D, C, E; 692 output reg Q; 693 always @(posedge C) begin 694 if (!E) Q <= D; 695 end 696endmodule
- yosys> help $_DFFE_PP0N_¶
A positive edge D-type flip-flop with positive polarity reset and negative polarity clock enable.
Truth table: D C R E | Q ---------+--- - - 1 - | 0 d / - 0 | d - - - - | q
- Simulation model (verilog)¶
1224module \$_DFFE_PP0N_ (D, C, R, E, Q); 1225 input D, C, R, E; 1226 output reg Q; 1227 always @(posedge C or posedge R) begin 1228 if (R == 1) 1229 Q <= 0; 1230 else if (E == 0) 1231 Q <= D; 1232 end 1233endmodule
- yosys> help $_DFFE_PP0P_¶
A positive edge D-type flip-flop with positive polarity reset and positive polarity clock enable.
Truth table: D C R E | Q ---------+--- - - 1 - | 0 d / - 1 | d - - - - | q
- Simulation model (verilog)¶
1249module \$_DFFE_PP0P_ (D, C, R, E, Q); 1250 input D, C, R, E; 1251 output reg Q; 1252 always @(posedge C or posedge R) begin 1253 if (R == 1) 1254 Q <= 0; 1255 else if (E == 1) 1256 Q <= D; 1257 end 1258endmodule
- yosys> help $_DFFE_PP1N_¶
A positive edge D-type flip-flop with positive polarity set and negative polarity clock enable.
Truth table: D C R E | Q ---------+--- - - 1 - | 1 d / - 0 | d - - - - | q
- Simulation model (verilog)¶
1274module \$_DFFE_PP1N_ (D, C, R, E, Q); 1275 input D, C, R, E; 1276 output reg Q; 1277 always @(posedge C or posedge R) begin 1278 if (R == 1) 1279 Q <= 1; 1280 else if (E == 0) 1281 Q <= D; 1282 end 1283endmodule
- yosys> help $_DFFE_PP1P_¶
A positive edge D-type flip-flop with positive polarity set and positive polarity clock enable.
Truth table: D C R E | Q ---------+--- - - 1 - | 1 d / - 1 | d - - - - | q
- Simulation model (verilog)¶
1299module \$_DFFE_PP1P_ (D, C, R, E, Q); 1300 input D, C, R, E; 1301 output reg Q; 1302 always @(posedge C or posedge R) begin 1303 if (R == 1) 1304 Q <= 1; 1305 else if (E == 1) 1306 Q <= D; 1307 end 1308endmodule
- yosys> help $_DFFE_PP_¶
A positive edge D-type flip-flop with positive polarity enable.
Truth table: D C E | Q -------+--- d / 1 | d - - - | q
- Simulation model (verilog)¶
710module \$_DFFE_PP_ (D, C, E, Q); 711 input D, C, E; 712 output reg Q; 713 always @(posedge C) begin 714 if (E) Q <= D; 715 end 716endmodule
- yosys> help $_DFFSRE_NNNN_¶
A negative edge D-type flip-flop with negative polarity set, negative polarity reset and negative polarity clock enable.
Truth table: C S R E D | Q -----------+--- - - 0 - - | 0 - 0 - - - | 1 \ - - 0 d | d - - - - - | q
- Simulation model (verilog)¶
1845module \$_DFFSRE_NNNN_ (C, S, R, E, D, Q); 1846 input C, S, R, E, D; 1847 output reg Q; 1848 always @(negedge C, negedge S, negedge R) begin 1849 if (R == 0) 1850 Q <= 0; 1851 else if (S == 0) 1852 Q <= 1; 1853 else if (E == 0) 1854 Q <= D; 1855 end 1856endmodule
- yosys> help $_DFFSRE_NNNP_¶
A negative edge D-type flip-flop with negative polarity set, negative polarity reset and positive polarity clock enable.
Truth table: C S R E D | Q -----------+--- - - 0 - - | 0 - 0 - - - | 1 \ - - 1 d | d - - - - - | q
- Simulation model (verilog)¶
1873module \$_DFFSRE_NNNP_ (C, S, R, E, D, Q); 1874 input C, S, R, E, D; 1875 output reg Q; 1876 always @(negedge C, negedge S, negedge R) begin 1877 if (R == 0) 1878 Q <= 0; 1879 else if (S == 0) 1880 Q <= 1; 1881 else if (E == 1) 1882 Q <= D; 1883 end 1884endmodule
- yosys> help $_DFFSRE_NNPN_¶
A negative edge D-type flip-flop with negative polarity set, positive polarity reset and negative polarity clock enable.
Truth table: C S R E D | Q -----------+--- - - 1 - - | 0 - 0 - - - | 1 \ - - 0 d | d - - - - - | q
- Simulation model (verilog)¶
1901module \$_DFFSRE_NNPN_ (C, S, R, E, D, Q); 1902 input C, S, R, E, D; 1903 output reg Q; 1904 always @(negedge C, negedge S, posedge R) begin 1905 if (R == 1) 1906 Q <= 0; 1907 else if (S == 0) 1908 Q <= 1; 1909 else if (E == 0) 1910 Q <= D; 1911 end 1912endmodule
- yosys> help $_DFFSRE_NNPP_¶
A negative edge D-type flip-flop with negative polarity set, positive polarity reset and positive polarity clock enable.
Truth table: C S R E D | Q -----------+--- - - 1 - - | 0 - 0 - - - | 1 \ - - 1 d | d - - - - - | q
- Simulation model (verilog)¶
1929module \$_DFFSRE_NNPP_ (C, S, R, E, D, Q); 1930 input C, S, R, E, D; 1931 output reg Q; 1932 always @(negedge C, negedge S, posedge R) begin 1933 if (R == 1) 1934 Q <= 0; 1935 else if (S == 0) 1936 Q <= 1; 1937 else if (E == 1) 1938 Q <= D; 1939 end 1940endmodule
- yosys> help $_DFFSRE_NPNN_¶
A negative edge D-type flip-flop with positive polarity set, negative polarity reset and negative polarity clock enable.
Truth table: C S R E D | Q -----------+--- - - 0 - - | 0 - 1 - - - | 1 \ - - 0 d | d - - - - - | q
- Simulation model (verilog)¶
1957module \$_DFFSRE_NPNN_ (C, S, R, E, D, Q); 1958 input C, S, R, E, D; 1959 output reg Q; 1960 always @(negedge C, posedge S, negedge R) begin 1961 if (R == 0) 1962 Q <= 0; 1963 else if (S == 1) 1964 Q <= 1; 1965 else if (E == 0) 1966 Q <= D; 1967 end 1968endmodule
- yosys> help $_DFFSRE_NPNP_¶
A negative edge D-type flip-flop with positive polarity set, negative polarity reset and positive polarity clock enable.
Truth table: C S R E D | Q -----------+--- - - 0 - - | 0 - 1 - - - | 1 \ - - 1 d | d - - - - - | q
- Simulation model (verilog)¶
1985module \$_DFFSRE_NPNP_ (C, S, R, E, D, Q); 1986 input C, S, R, E, D; 1987 output reg Q; 1988 always @(negedge C, posedge S, negedge R) begin 1989 if (R == 0) 1990 Q <= 0; 1991 else if (S == 1) 1992 Q <= 1; 1993 else if (E == 1) 1994 Q <= D; 1995 end 1996endmodule
- yosys> help $_DFFSRE_NPPN_¶
A negative edge D-type flip-flop with positive polarity set, positive polarity reset and negative polarity clock enable.
Truth table: C S R E D | Q -----------+--- - - 1 - - | 0 - 1 - - - | 1 \ - - 0 d | d - - - - - | q
- Simulation model (verilog)¶
2013module \$_DFFSRE_NPPN_ (C, S, R, E, D, Q); 2014 input C, S, R, E, D; 2015 output reg Q; 2016 always @(negedge C, posedge S, posedge R) begin 2017 if (R == 1) 2018 Q <= 0; 2019 else if (S == 1) 2020 Q <= 1; 2021 else if (E == 0) 2022 Q <= D; 2023 end 2024endmodule
- yosys> help $_DFFSRE_NPPP_¶
A negative edge D-type flip-flop with positive polarity set, positive polarity reset and positive polarity clock enable.
Truth table: C S R E D | Q -----------+--- - - 1 - - | 0 - 1 - - - | 1 \ - - 1 d | d - - - - - | q
- Simulation model (verilog)¶
2041module \$_DFFSRE_NPPP_ (C, S, R, E, D, Q); 2042 input C, S, R, E, D; 2043 output reg Q; 2044 always @(negedge C, posedge S, posedge R) begin 2045 if (R == 1) 2046 Q <= 0; 2047 else if (S == 1) 2048 Q <= 1; 2049 else if (E == 1) 2050 Q <= D; 2051 end 2052endmodule
- yosys> help $_DFFSRE_PNNN_¶
A positive edge D-type flip-flop with negative polarity set, negative polarity reset and negative polarity clock enable.
Truth table: C S R E D | Q -----------+--- - - 0 - - | 0 - 0 - - - | 1 / - - 0 d | d - - - - - | q
- Simulation model (verilog)¶
2069module \$_DFFSRE_PNNN_ (C, S, R, E, D, Q); 2070 input C, S, R, E, D; 2071 output reg Q; 2072 always @(posedge C, negedge S, negedge R) begin 2073 if (R == 0) 2074 Q <= 0; 2075 else if (S == 0) 2076 Q <= 1; 2077 else if (E == 0) 2078 Q <= D; 2079 end 2080endmodule
- yosys> help $_DFFSRE_PNNP_¶
A positive edge D-type flip-flop with negative polarity set, negative polarity reset and positive polarity clock enable.
Truth table: C S R E D | Q -----------+--- - - 0 - - | 0 - 0 - - - | 1 / - - 1 d | d - - - - - | q
- Simulation model (verilog)¶
2097module \$_DFFSRE_PNNP_ (C, S, R, E, D, Q); 2098 input C, S, R, E, D; 2099 output reg Q; 2100 always @(posedge C, negedge S, negedge R) begin 2101 if (R == 0) 2102 Q <= 0; 2103 else if (S == 0) 2104 Q <= 1; 2105 else if (E == 1) 2106 Q <= D; 2107 end 2108endmodule
- yosys> help $_DFFSRE_PNPN_¶
A positive edge D-type flip-flop with negative polarity set, positive polarity reset and negative polarity clock enable.
Truth table: C S R E D | Q -----------+--- - - 1 - - | 0 - 0 - - - | 1 / - - 0 d | d - - - - - | q
- Simulation model (verilog)¶
2125module \$_DFFSRE_PNPN_ (C, S, R, E, D, Q); 2126 input C, S, R, E, D; 2127 output reg Q; 2128 always @(posedge C, negedge S, posedge R) begin 2129 if (R == 1) 2130 Q <= 0; 2131 else if (S == 0) 2132 Q <= 1; 2133 else if (E == 0) 2134 Q <= D; 2135 end 2136endmodule
- yosys> help $_DFFSRE_PNPP_¶
A positive edge D-type flip-flop with negative polarity set, positive polarity reset and positive polarity clock enable.
Truth table: C S R E D | Q -----------+--- - - 1 - - | 0 - 0 - - - | 1 / - - 1 d | d - - - - - | q
- Simulation model (verilog)¶
2153module \$_DFFSRE_PNPP_ (C, S, R, E, D, Q); 2154 input C, S, R, E, D; 2155 output reg Q; 2156 always @(posedge C, negedge S, posedge R) begin 2157 if (R == 1) 2158 Q <= 0; 2159 else if (S == 0) 2160 Q <= 1; 2161 else if (E == 1) 2162 Q <= D; 2163 end 2164endmodule
- yosys> help $_DFFSRE_PPNN_¶
A positive edge D-type flip-flop with positive polarity set, negative polarity reset and negative polarity clock enable.
Truth table: C S R E D | Q -----------+--- - - 0 - - | 0 - 1 - - - | 1 / - - 0 d | d - - - - - | q
- Simulation model (verilog)¶
2181module \$_DFFSRE_PPNN_ (C, S, R, E, D, Q); 2182 input C, S, R, E, D; 2183 output reg Q; 2184 always @(posedge C, posedge S, negedge R) begin 2185 if (R == 0) 2186 Q <= 0; 2187 else if (S == 1) 2188 Q <= 1; 2189 else if (E == 0) 2190 Q <= D; 2191 end 2192endmodule
- yosys> help $_DFFSRE_PPNP_¶
A positive edge D-type flip-flop with positive polarity set, negative polarity reset and positive polarity clock enable.
Truth table: C S R E D | Q -----------+--- - - 0 - - | 0 - 1 - - - | 1 / - - 1 d | d - - - - - | q
- Simulation model (verilog)¶
2209module \$_DFFSRE_PPNP_ (C, S, R, E, D, Q); 2210 input C, S, R, E, D; 2211 output reg Q; 2212 always @(posedge C, posedge S, negedge R) begin 2213 if (R == 0) 2214 Q <= 0; 2215 else if (S == 1) 2216 Q <= 1; 2217 else if (E == 1) 2218 Q <= D; 2219 end 2220endmodule
- yosys> help $_DFFSRE_PPPN_¶
A positive edge D-type flip-flop with positive polarity set, positive polarity reset and negative polarity clock enable.
Truth table: C S R E D | Q -----------+--- - - 1 - - | 0 - 1 - - - | 1 / - - 0 d | d - - - - - | q
- Simulation model (verilog)¶
2237module \$_DFFSRE_PPPN_ (C, S, R, E, D, Q); 2238 input C, S, R, E, D; 2239 output reg Q; 2240 always @(posedge C, posedge S, posedge R) begin 2241 if (R == 1) 2242 Q <= 0; 2243 else if (S == 1) 2244 Q <= 1; 2245 else if (E == 0) 2246 Q <= D; 2247 end 2248endmodule
- yosys> help $_DFFSRE_PPPP_¶
A positive edge D-type flip-flop with positive polarity set, positive polarity reset and positive polarity clock enable.
Truth table: C S R E D | Q -----------+--- - - 1 - - | 0 - 1 - - - | 1 / - - 1 d | d - - - - - | q
- Simulation model (verilog)¶
2265module \$_DFFSRE_PPPP_ (C, S, R, E, D, Q); 2266 input C, S, R, E, D; 2267 output reg Q; 2268 always @(posedge C, posedge S, posedge R) begin 2269 if (R == 1) 2270 Q <= 0; 2271 else if (S == 1) 2272 Q <= 1; 2273 else if (E == 1) 2274 Q <= D; 2275 end 2276endmodule
- yosys> help $_DFFSR_NNN_¶
A negative edge D-type flip-flop with negative polarity set and negative polarity reset.
Truth table: C S R D | Q ---------+--- - - 0 - | 0 - 0 - - | 1 \ - - d | d - - - - | q
- Simulation model (verilog)¶
1621module \$_DFFSR_NNN_ (C, S, R, D, Q); 1622 input C, S, R, D; 1623 output reg Q; 1624 always @(negedge C, negedge S, negedge R) begin 1625 if (R == 0) 1626 Q <= 0; 1627 else if (S == 0) 1628 Q <= 1; 1629 else 1630 Q <= D; 1631 end 1632endmodule
- yosys> help $_DFFSR_NNP_¶
A negative edge D-type flip-flop with negative polarity set and positive polarity reset.
Truth table: C S R D | Q ---------+--- - - 1 - | 0 - 0 - - | 1 \ - - d | d - - - - | q
- Simulation model (verilog)¶
1649module \$_DFFSR_NNP_ (C, S, R, D, Q); 1650 input C, S, R, D; 1651 output reg Q; 1652 always @(negedge C, negedge S, posedge R) begin 1653 if (R == 1) 1654 Q <= 0; 1655 else if (S == 0) 1656 Q <= 1; 1657 else 1658 Q <= D; 1659 end 1660endmodule
- yosys> help $_DFFSR_NPN_¶
A negative edge D-type flip-flop with positive polarity set and negative polarity reset.
Truth table: C S R D | Q ---------+--- - - 0 - | 0 - 1 - - | 1 \ - - d | d - - - - | q
- Simulation model (verilog)¶
1677module \$_DFFSR_NPN_ (C, S, R, D, Q); 1678 input C, S, R, D; 1679 output reg Q; 1680 always @(negedge C, posedge S, negedge R) begin 1681 if (R == 0) 1682 Q <= 0; 1683 else if (S == 1) 1684 Q <= 1; 1685 else 1686 Q <= D; 1687 end 1688endmodule
- yosys> help $_DFFSR_NPP_¶
A negative edge D-type flip-flop with positive polarity set and positive polarity reset.
Truth table: C S R D | Q ---------+--- - - 1 - | 0 - 1 - - | 1 \ - - d | d - - - - | q
- Simulation model (verilog)¶
1705module \$_DFFSR_NPP_ (C, S, R, D, Q); 1706 input C, S, R, D; 1707 output reg Q; 1708 always @(negedge C, posedge S, posedge R) begin 1709 if (R == 1) 1710 Q <= 0; 1711 else if (S == 1) 1712 Q <= 1; 1713 else 1714 Q <= D; 1715 end 1716endmodule
- yosys> help $_DFFSR_PNN_¶
A positive edge D-type flip-flop with negative polarity set and negative polarity reset.
Truth table: C S R D | Q ---------+--- - - 0 - | 0 - 0 - - | 1 / - - d | d - - - - | q
- Simulation model (verilog)¶
1733module \$_DFFSR_PNN_ (C, S, R, D, Q); 1734 input C, S, R, D; 1735 output reg Q; 1736 always @(posedge C, negedge S, negedge R) begin 1737 if (R == 0) 1738 Q <= 0; 1739 else if (S == 0) 1740 Q <= 1; 1741 else 1742 Q <= D; 1743 end 1744endmodule
- yosys> help $_DFFSR_PNP_¶
A positive edge D-type flip-flop with negative polarity set and positive polarity reset.
Truth table: C S R D | Q ---------+--- - - 1 - | 0 - 0 - - | 1 / - - d | d - - - - | q
- Simulation model (verilog)¶
1761module \$_DFFSR_PNP_ (C, S, R, D, Q); 1762 input C, S, R, D; 1763 output reg Q; 1764 always @(posedge C, negedge S, posedge R) begin 1765 if (R == 1) 1766 Q <= 0; 1767 else if (S == 0) 1768 Q <= 1; 1769 else 1770 Q <= D; 1771 end 1772endmodule
- yosys> help $_DFFSR_PPN_¶
A positive edge D-type flip-flop with positive polarity set and negative polarity reset.
Truth table: C S R D | Q ---------+--- - - 0 - | 0 - 1 - - | 1 / - - d | d - - - - | q
- Simulation model (verilog)¶
1789module \$_DFFSR_PPN_ (C, S, R, D, Q); 1790 input C, S, R, D; 1791 output reg Q; 1792 always @(posedge C, posedge S, negedge R) begin 1793 if (R == 0) 1794 Q <= 0; 1795 else if (S == 1) 1796 Q <= 1; 1797 else 1798 Q <= D; 1799 end 1800endmodule
- yosys> help $_DFFSR_PPP_¶
A positive edge D-type flip-flop with positive polarity set and positive polarity reset.
Truth table: C S R D | Q ---------+--- - - 1 - | 0 - 1 - - | 1 / - - d | d - - - - | q
- Simulation model (verilog)¶
1817module \$_DFFSR_PPP_ (C, S, R, D, Q); 1818 input C, S, R, D; 1819 output reg Q; 1820 always @(posedge C, posedge S, posedge R) begin 1821 if (R == 1) 1822 Q <= 0; 1823 else if (S == 1) 1824 Q <= 1; 1825 else 1826 Q <= D; 1827 end 1828endmodule
- yosys> help $_DFF_NN0_¶
A negative edge D-type flip-flop with negative polarity reset.
Truth table: D C R | Q -------+--- - - 0 | 0 d \ - | d - - - | q
- Simulation model (verilog)¶
731module \$_DFF_NN0_ (D, C, R, Q); 732 input D, C, R; 733 output reg Q; 734 always @(negedge C or negedge R) begin 735 if (R == 0) 736 Q <= 0; 737 else 738 Q <= D; 739 end 740endmodule
- yosys> help $_DFF_NN1_¶
A negative edge D-type flip-flop with negative polarity set.
Truth table: D C R | Q -------+--- - - 0 | 1 d \ - | d - - - | q
- Simulation model (verilog)¶
755module \$_DFF_NN1_ (D, C, R, Q); 756 input D, C, R; 757 output reg Q; 758 always @(negedge C or negedge R) begin 759 if (R == 0) 760 Q <= 1; 761 else 762 Q <= D; 763 end 764endmodule
- yosys> help $_DFF_NP0_¶
A negative edge D-type flip-flop with positive polarity reset.
Truth table: D C R | Q -------+--- - - 1 | 0 d \ - | d - - - | q
- Simulation model (verilog)¶
779module \$_DFF_NP0_ (D, C, R, Q); 780 input D, C, R; 781 output reg Q; 782 always @(negedge C or posedge R) begin 783 if (R == 1) 784 Q <= 0; 785 else 786 Q <= D; 787 end 788endmodule
- yosys> help $_DFF_NP1_¶
A negative edge D-type flip-flop with positive polarity set.
Truth table: D C R | Q -------+--- - - 1 | 1 d \ - | d - - - | q
- Simulation model (verilog)¶
803module \$_DFF_NP1_ (D, C, R, Q); 804 input D, C, R; 805 output reg Q; 806 always @(negedge C or posedge R) begin 807 if (R == 1) 808 Q <= 1; 809 else 810 Q <= D; 811 end 812endmodule
- yosys> help $_DFF_N_¶
A negative edge D-type flip-flop.
Truth table: D C | Q -----+--- d \ | d - - | q
- Simulation model (verilog)¶
610module \$_DFF_N_ (D, C, Q); 611 input D, C; 612 output reg Q; 613 always @(negedge C) begin 614 Q <= D; 615 end 616endmodule
- yosys> help $_DFF_PN0_¶
A positive edge D-type flip-flop with negative polarity reset.
Truth table: D C R | Q -------+--- - - 0 | 0 d / - | d - - - | q
- Simulation model (verilog)¶
827module \$_DFF_PN0_ (D, C, R, Q); 828 input D, C, R; 829 output reg Q; 830 always @(posedge C or negedge R) begin 831 if (R == 0) 832 Q <= 0; 833 else 834 Q <= D; 835 end 836endmodule
- yosys> help $_DFF_PN1_¶
A positive edge D-type flip-flop with negative polarity set.
Truth table: D C R | Q -------+--- - - 0 | 1 d / - | d - - - | q
- Simulation model (verilog)¶
851module \$_DFF_PN1_ (D, C, R, Q); 852 input D, C, R; 853 output reg Q; 854 always @(posedge C or negedge R) begin 855 if (R == 0) 856 Q <= 1; 857 else 858 Q <= D; 859 end 860endmodule
- yosys> help $_DFF_PP0_¶
A positive edge D-type flip-flop with positive polarity reset.
Truth table: D C R | Q -------+--- - - 1 | 0 d / - | d - - - | q
- Simulation model (verilog)¶
875module \$_DFF_PP0_ (D, C, R, Q); 876 input D, C, R; 877 output reg Q; 878 always @(posedge C or posedge R) begin 879 if (R == 1) 880 Q <= 0; 881 else 882 Q <= D; 883 end 884endmodule
- yosys> help $_DFF_PP1_¶
A positive edge D-type flip-flop with positive polarity set.
Truth table: D C R | Q -------+--- - - 1 | 1 d / - | d - - - | q
- Simulation model (verilog)¶
899module \$_DFF_PP1_ (D, C, R, Q); 900 input D, C, R; 901 output reg Q; 902 always @(posedge C or posedge R) begin 903 if (R == 1) 904 Q <= 1; 905 else 906 Q <= D; 907 end 908endmodule
- yosys> help $_DFF_P_¶
A positive edge D-type flip-flop.
Truth table: D C | Q -----+--- d / | d - - | q
- Simulation model (verilog)¶
630module \$_DFF_P_ (D, C, Q); 631 input D, C; 632 output reg Q; 633 always @(posedge C) begin 634 Q <= D; 635 end 636endmodule
- yosys> help $_FF_¶
A D-type flip-flop that is clocked from the implicit global clock. (This cell type is usually only used in netlists for formal verification.)
- Simulation model (verilog)¶
589module \$_FF_ (D, Q); 590 input D; 591 output reg Q; 592 always @($global_clock) begin 593 Q <= D; 594 end 595endmodule
- yosys> help $_SDFFCE_NN0N_¶
A negative edge D-type flip-flop with negative polarity synchronous reset and negative polarity clock enable (with clock enable having priority).
Truth table: D C R E | Q ---------+--- - \ 0 0 | 0 d \ - 0 | d - - - - | q
- Simulation model (verilog)¶
2884module \$_SDFFCE_NN0N_ (D, C, R, E, Q); 2885 input D, C, R, E; 2886 output reg Q; 2887 always @(negedge C) begin 2888 if (E == 0) begin 2889 if (R == 0) 2890 Q <= 0; 2891 else 2892 Q <= D; 2893 end 2894 end 2895endmodule
- yosys> help $_SDFFCE_NN0P_¶
A negative edge D-type flip-flop with negative polarity synchronous reset and positive polarity clock enable (with clock enable having priority).
Truth table: D C R E | Q ---------+--- - \ 0 1 | 0 d \ - 1 | d - - - - | q
- Simulation model (verilog)¶
2911module \$_SDFFCE_NN0P_ (D, C, R, E, Q); 2912 input D, C, R, E; 2913 output reg Q; 2914 always @(negedge C) begin 2915 if (E == 1) begin 2916 if (R == 0) 2917 Q <= 0; 2918 else 2919 Q <= D; 2920 end 2921 end 2922endmodule
- yosys> help $_SDFFCE_NN1N_¶
A negative edge D-type flip-flop with negative polarity synchronous set and negative polarity clock enable (with clock enable having priority).
Truth table: D C R E | Q ---------+--- - \ 0 0 | 1 d \ - 0 | d - - - - | q
- Simulation model (verilog)¶
2938module \$_SDFFCE_NN1N_ (D, C, R, E, Q); 2939 input D, C, R, E; 2940 output reg Q; 2941 always @(negedge C) begin 2942 if (E == 0) begin 2943 if (R == 0) 2944 Q <= 1; 2945 else 2946 Q <= D; 2947 end 2948 end 2949endmodule
- yosys> help $_SDFFCE_NN1P_¶
A negative edge D-type flip-flop with negative polarity synchronous set and positive polarity clock enable (with clock enable having priority).
Truth table: D C R E | Q ---------+--- - \ 0 1 | 1 d \ - 1 | d - - - - | q
- Simulation model (verilog)¶
2965module \$_SDFFCE_NN1P_ (D, C, R, E, Q); 2966 input D, C, R, E; 2967 output reg Q; 2968 always @(negedge C) begin 2969 if (E == 1) begin 2970 if (R == 0) 2971 Q <= 1; 2972 else 2973 Q <= D; 2974 end 2975 end 2976endmodule
- yosys> help $_SDFFCE_NP0N_¶
A negative edge D-type flip-flop with positive polarity synchronous reset and negative polarity clock enable (with clock enable having priority).
Truth table: D C R E | Q ---------+--- - \ 1 0 | 0 d \ - 0 | d - - - - | q
- Simulation model (verilog)¶
2992module \$_SDFFCE_NP0N_ (D, C, R, E, Q); 2993 input D, C, R, E; 2994 output reg Q; 2995 always @(negedge C) begin 2996 if (E == 0) begin 2997 if (R == 1) 2998 Q <= 0; 2999 else 3000 Q <= D; 3001 end 3002 end 3003endmodule
- yosys> help $_SDFFCE_NP0P_¶
A negative edge D-type flip-flop with positive polarity synchronous reset and positive polarity clock enable (with clock enable having priority).
Truth table: D C R E | Q ---------+--- - \ 1 1 | 0 d \ - 1 | d - - - - | q
- Simulation model (verilog)¶
3019module \$_SDFFCE_NP0P_ (D, C, R, E, Q); 3020 input D, C, R, E; 3021 output reg Q; 3022 always @(negedge C) begin 3023 if (E == 1) begin 3024 if (R == 1) 3025 Q <= 0; 3026 else 3027 Q <= D; 3028 end 3029 end 3030endmodule
- yosys> help $_SDFFCE_NP1N_¶
A negative edge D-type flip-flop with positive polarity synchronous set and negative polarity clock enable (with clock enable having priority).
Truth table: D C R E | Q ---------+--- - \ 1 0 | 1 d \ - 0 | d - - - - | q
- Simulation model (verilog)¶
3046module \$_SDFFCE_NP1N_ (D, C, R, E, Q); 3047 input D, C, R, E; 3048 output reg Q; 3049 always @(negedge C) begin 3050 if (E == 0) begin 3051 if (R == 1) 3052 Q <= 1; 3053 else 3054 Q <= D; 3055 end 3056 end 3057endmodule
- yosys> help $_SDFFCE_NP1P_¶
A negative edge D-type flip-flop with positive polarity synchronous set and positive polarity clock enable (with clock enable having priority).
Truth table: D C R E | Q ---------+--- - \ 1 1 | 1 d \ - 1 | d - - - - | q
- Simulation model (verilog)¶
3073module \$_SDFFCE_NP1P_ (D, C, R, E, Q); 3074 input D, C, R, E; 3075 output reg Q; 3076 always @(negedge C) begin 3077 if (E == 1) begin 3078 if (R == 1) 3079 Q <= 1; 3080 else 3081 Q <= D; 3082 end 3083 end 3084endmodule
- yosys> help $_SDFFCE_PN0N_¶
A positive edge D-type flip-flop with negative polarity synchronous reset and negative polarity clock enable (with clock enable having priority).
Truth table: D C R E | Q ---------+--- - / 0 0 | 0 d / - 0 | d - - - - | q
- Simulation model (verilog)¶
3100module \$_SDFFCE_PN0N_ (D, C, R, E, Q); 3101 input D, C, R, E; 3102 output reg Q; 3103 always @(posedge C) begin 3104 if (E == 0) begin 3105 if (R == 0) 3106 Q <= 0; 3107 else 3108 Q <= D; 3109 end 3110 end 3111endmodule
- yosys> help $_SDFFCE_PN0P_¶
A positive edge D-type flip-flop with negative polarity synchronous reset and positive polarity clock enable (with clock enable having priority).
Truth table: D C R E | Q ---------+--- - / 0 1 | 0 d / - 1 | d - - - - | q
- Simulation model (verilog)¶
3127module \$_SDFFCE_PN0P_ (D, C, R, E, Q); 3128 input D, C, R, E; 3129 output reg Q; 3130 always @(posedge C) begin 3131 if (E == 1) begin 3132 if (R == 0) 3133 Q <= 0; 3134 else 3135 Q <= D; 3136 end 3137 end 3138endmodule
- yosys> help $_SDFFCE_PN1N_¶
A positive edge D-type flip-flop with negative polarity synchronous set and negative polarity clock enable (with clock enable having priority).
Truth table: D C R E | Q ---------+--- - / 0 0 | 1 d / - 0 | d - - - - | q
- Simulation model (verilog)¶
3154module \$_SDFFCE_PN1N_ (D, C, R, E, Q); 3155 input D, C, R, E; 3156 output reg Q; 3157 always @(posedge C) begin 3158 if (E == 0) begin 3159 if (R == 0) 3160 Q <= 1; 3161 else 3162 Q <= D; 3163 end 3164 end 3165endmodule
- yosys> help $_SDFFCE_PN1P_¶
A positive edge D-type flip-flop with negative polarity synchronous set and positive polarity clock enable (with clock enable having priority).
Truth table: D C R E | Q ---------+--- - / 0 1 | 1 d / - 1 | d - - - - | q
- Simulation model (verilog)¶
3181module \$_SDFFCE_PN1P_ (D, C, R, E, Q); 3182 input D, C, R, E; 3183 output reg Q; 3184 always @(posedge C) begin 3185 if (E == 1) begin 3186 if (R == 0) 3187 Q <= 1; 3188 else 3189 Q <= D; 3190 end 3191 end 3192endmodule
- yosys> help $_SDFFCE_PP0N_¶
A positive edge D-type flip-flop with positive polarity synchronous reset and negative polarity clock enable (with clock enable having priority).
Truth table: D C R E | Q ---------+--- - / 1 0 | 0 d / - 0 | d - - - - | q
- Simulation model (verilog)¶
3208module \$_SDFFCE_PP0N_ (D, C, R, E, Q); 3209 input D, C, R, E; 3210 output reg Q; 3211 always @(posedge C) begin 3212 if (E == 0) begin 3213 if (R == 1) 3214 Q <= 0; 3215 else 3216 Q <= D; 3217 end 3218 end 3219endmodule
- yosys> help $_SDFFCE_PP0P_¶
A positive edge D-type flip-flop with positive polarity synchronous reset and positive polarity clock enable (with clock enable having priority).
Truth table: D C R E | Q ---------+--- - / 1 1 | 0 d / - 1 | d - - - - | q
- Simulation model (verilog)¶
3235module \$_SDFFCE_PP0P_ (D, C, R, E, Q); 3236 input D, C, R, E; 3237 output reg Q; 3238 always @(posedge C) begin 3239 if (E == 1) begin 3240 if (R == 1) 3241 Q <= 0; 3242 else 3243 Q <= D; 3244 end 3245 end 3246endmodule
- yosys> help $_SDFFCE_PP1N_¶
A positive edge D-type flip-flop with positive polarity synchronous set and negative polarity clock enable (with clock enable having priority).
Truth table: D C R E | Q ---------+--- - / 1 0 | 1 d / - 0 | d - - - - | q
- Simulation model (verilog)¶
3262module \$_SDFFCE_PP1N_ (D, C, R, E, Q); 3263 input D, C, R, E; 3264 output reg Q; 3265 always @(posedge C) begin 3266 if (E == 0) begin 3267 if (R == 1) 3268 Q <= 1; 3269 else 3270 Q <= D; 3271 end 3272 end 3273endmodule
- yosys> help $_SDFFCE_PP1P_¶
A positive edge D-type flip-flop with positive polarity synchronous set and positive polarity clock enable (with clock enable having priority).
Truth table: D C R E | Q ---------+--- - / 1 1 | 1 d / - 1 | d - - - - | q
- Simulation model (verilog)¶
3289module \$_SDFFCE_PP1P_ (D, C, R, E, Q); 3290 input D, C, R, E; 3291 output reg Q; 3292 always @(posedge C) begin 3293 if (E == 1) begin 3294 if (R == 1) 3295 Q <= 1; 3296 else 3297 Q <= D; 3298 end 3299 end 3300endmodule
- yosys> help $_SDFFE_NN0N_¶
A negative edge D-type flip-flop with negative polarity synchronous reset and negative polarity clock enable (with reset having priority).
Truth table: D C R E | Q ---------+--- - \ 0 - | 0 d \ - 0 | d - - - - | q
- Simulation model (verilog)¶
2484module \$_SDFFE_NN0N_ (D, C, R, E, Q); 2485 input D, C, R, E; 2486 output reg Q; 2487 always @(negedge C) begin 2488 if (R == 0) 2489 Q <= 0; 2490 else if (E == 0) 2491 Q <= D; 2492 end 2493endmodule
- yosys> help $_SDFFE_NN0P_¶
A negative edge D-type flip-flop with negative polarity synchronous reset and positive polarity clock enable (with reset having priority).
Truth table: D C R E | Q ---------+--- - \ 0 - | 0 d \ - 1 | d - - - - | q
- Simulation model (verilog)¶
2509module \$_SDFFE_NN0P_ (D, C, R, E, Q); 2510 input D, C, R, E; 2511 output reg Q; 2512 always @(negedge C) begin 2513 if (R == 0) 2514 Q <= 0; 2515 else if (E == 1) 2516 Q <= D; 2517 end 2518endmodule
- yosys> help $_SDFFE_NN1N_¶
A negative edge D-type flip-flop with negative polarity synchronous set and negative polarity clock enable (with set having priority).
Truth table: D C R E | Q ---------+--- - \ 0 - | 1 d \ - 0 | d - - - - | q
- Simulation model (verilog)¶
2534module \$_SDFFE_NN1N_ (D, C, R, E, Q); 2535 input D, C, R, E; 2536 output reg Q; 2537 always @(negedge C) begin 2538 if (R == 0) 2539 Q <= 1; 2540 else if (E == 0) 2541 Q <= D; 2542 end 2543endmodule
- yosys> help $_SDFFE_NN1P_¶
A negative edge D-type flip-flop with negative polarity synchronous set and positive polarity clock enable (with set having priority).
Truth table: D C R E | Q ---------+--- - \ 0 - | 1 d \ - 1 | d - - - - | q
- Simulation model (verilog)¶
2559module \$_SDFFE_NN1P_ (D, C, R, E, Q); 2560 input D, C, R, E; 2561 output reg Q; 2562 always @(negedge C) begin 2563 if (R == 0) 2564 Q <= 1; 2565 else if (E == 1) 2566 Q <= D; 2567 end 2568endmodule
- yosys> help $_SDFFE_NP0N_¶
A negative edge D-type flip-flop with positive polarity synchronous reset and negative polarity clock enable (with reset having priority).
Truth table: D C R E | Q ---------+--- - \ 1 - | 0 d \ - 0 | d - - - - | q
- Simulation model (verilog)¶
2584module \$_SDFFE_NP0N_ (D, C, R, E, Q); 2585 input D, C, R, E; 2586 output reg Q; 2587 always @(negedge C) begin 2588 if (R == 1) 2589 Q <= 0; 2590 else if (E == 0) 2591 Q <= D; 2592 end 2593endmodule
- yosys> help $_SDFFE_NP0P_¶
A negative edge D-type flip-flop with positive polarity synchronous reset and positive polarity clock enable (with reset having priority).
Truth table: D C R E | Q ---------+--- - \ 1 - | 0 d \ - 1 | d - - - - | q
- Simulation model (verilog)¶
2609module \$_SDFFE_NP0P_ (D, C, R, E, Q); 2610 input D, C, R, E; 2611 output reg Q; 2612 always @(negedge C) begin 2613 if (R == 1) 2614 Q <= 0; 2615 else if (E == 1) 2616 Q <= D; 2617 end 2618endmodule
- yosys> help $_SDFFE_NP1N_¶
A negative edge D-type flip-flop with positive polarity synchronous set and negative polarity clock enable (with set having priority).
Truth table: D C R E | Q ---------+--- - \ 1 - | 1 d \ - 0 | d - - - - | q
- Simulation model (verilog)¶
2634module \$_SDFFE_NP1N_ (D, C, R, E, Q); 2635 input D, C, R, E; 2636 output reg Q; 2637 always @(negedge C) begin 2638 if (R == 1) 2639 Q <= 1; 2640 else if (E == 0) 2641 Q <= D; 2642 end 2643endmodule
- yosys> help $_SDFFE_NP1P_¶
A negative edge D-type flip-flop with positive polarity synchronous set and positive polarity clock enable (with set having priority).
Truth table: D C R E | Q ---------+--- - \ 1 - | 1 d \ - 1 | d - - - - | q
- Simulation model (verilog)¶
2659module \$_SDFFE_NP1P_ (D, C, R, E, Q); 2660 input D, C, R, E; 2661 output reg Q; 2662 always @(negedge C) begin 2663 if (R == 1) 2664 Q <= 1; 2665 else if (E == 1) 2666 Q <= D; 2667 end 2668endmodule
- yosys> help $_SDFFE_PN0N_¶
A positive edge D-type flip-flop with negative polarity synchronous reset and negative polarity clock enable (with reset having priority).
Truth table: D C R E | Q ---------+--- - / 0 - | 0 d / - 0 | d - - - - | q
- Simulation model (verilog)¶
2684module \$_SDFFE_PN0N_ (D, C, R, E, Q); 2685 input D, C, R, E; 2686 output reg Q; 2687 always @(posedge C) begin 2688 if (R == 0) 2689 Q <= 0; 2690 else if (E == 0) 2691 Q <= D; 2692 end 2693endmodule
- yosys> help $_SDFFE_PN0P_¶
A positive edge D-type flip-flop with negative polarity synchronous reset and positive polarity clock enable (with reset having priority).
Truth table: D C R E | Q ---------+--- - / 0 - | 0 d / - 1 | d - - - - | q
- Simulation model (verilog)¶
2709module \$_SDFFE_PN0P_ (D, C, R, E, Q); 2710 input D, C, R, E; 2711 output reg Q; 2712 always @(posedge C) begin 2713 if (R == 0) 2714 Q <= 0; 2715 else if (E == 1) 2716 Q <= D; 2717 end 2718endmodule
- yosys> help $_SDFFE_PN1N_¶
A positive edge D-type flip-flop with negative polarity synchronous set and negative polarity clock enable (with set having priority).
Truth table: D C R E | Q ---------+--- - / 0 - | 1 d / - 0 | d - - - - | q
- Simulation model (verilog)¶
2734module \$_SDFFE_PN1N_ (D, C, R, E, Q); 2735 input D, C, R, E; 2736 output reg Q; 2737 always @(posedge C) begin 2738 if (R == 0) 2739 Q <= 1; 2740 else if (E == 0) 2741 Q <= D; 2742 end 2743endmodule
- yosys> help $_SDFFE_PN1P_¶
A positive edge D-type flip-flop with negative polarity synchronous set and positive polarity clock enable (with set having priority).
Truth table: D C R E | Q ---------+--- - / 0 - | 1 d / - 1 | d - - - - | q
- Simulation model (verilog)¶
2759module \$_SDFFE_PN1P_ (D, C, R, E, Q); 2760 input D, C, R, E; 2761 output reg Q; 2762 always @(posedge C) begin 2763 if (R == 0) 2764 Q <= 1; 2765 else if (E == 1) 2766 Q <= D; 2767 end 2768endmodule
- yosys> help $_SDFFE_PP0N_¶
A positive edge D-type flip-flop with positive polarity synchronous reset and negative polarity clock enable (with reset having priority).
Truth table: D C R E | Q ---------+--- - / 1 - | 0 d / - 0 | d - - - - | q
- Simulation model (verilog)¶
2784module \$_SDFFE_PP0N_ (D, C, R, E, Q); 2785 input D, C, R, E; 2786 output reg Q; 2787 always @(posedge C) begin 2788 if (R == 1) 2789 Q <= 0; 2790 else if (E == 0) 2791 Q <= D; 2792 end 2793endmodule
- yosys> help $_SDFFE_PP0P_¶
A positive edge D-type flip-flop with positive polarity synchronous reset and positive polarity clock enable (with reset having priority).
Truth table: D C R E | Q ---------+--- - / 1 - | 0 d / - 1 | d - - - - | q
- Simulation model (verilog)¶
2809module \$_SDFFE_PP0P_ (D, C, R, E, Q); 2810 input D, C, R, E; 2811 output reg Q; 2812 always @(posedge C) begin 2813 if (R == 1) 2814 Q <= 0; 2815 else if (E == 1) 2816 Q <= D; 2817 end 2818endmodule
- yosys> help $_SDFFE_PP1N_¶
A positive edge D-type flip-flop with positive polarity synchronous set and negative polarity clock enable (with set having priority).
Truth table: D C R E | Q ---------+--- - / 1 - | 1 d / - 0 | d - - - - | q
- Simulation model (verilog)¶
2834module \$_SDFFE_PP1N_ (D, C, R, E, Q); 2835 input D, C, R, E; 2836 output reg Q; 2837 always @(posedge C) begin 2838 if (R == 1) 2839 Q <= 1; 2840 else if (E == 0) 2841 Q <= D; 2842 end 2843endmodule
- yosys> help $_SDFFE_PP1P_¶
A positive edge D-type flip-flop with positive polarity synchronous set and positive polarity clock enable (with set having priority).
Truth table: D C R E | Q ---------+--- - / 1 - | 1 d / - 1 | d - - - - | q
- Simulation model (verilog)¶
2859module \$_SDFFE_PP1P_ (D, C, R, E, Q); 2860 input D, C, R, E; 2861 output reg Q; 2862 always @(posedge C) begin 2863 if (R == 1) 2864 Q <= 1; 2865 else if (E == 1) 2866 Q <= D; 2867 end 2868endmodule
- yosys> help $_SDFF_NN0_¶
A negative edge D-type flip-flop with negative polarity synchronous reset.
Truth table: D C R | Q -------+--- - \ 0 | 0 d \ - | d - - - | q
- Simulation model (verilog)¶
2291module \$_SDFF_NN0_ (D, C, R, Q); 2292 input D, C, R; 2293 output reg Q; 2294 always @(negedge C) begin 2295 if (R == 0) 2296 Q <= 0; 2297 else 2298 Q <= D; 2299 end 2300endmodule
- yosys> help $_SDFF_NN1_¶
A negative edge D-type flip-flop with negative polarity synchronous set.
Truth table: D C R | Q -------+--- - \ 0 | 1 d \ - | d - - - | q
- Simulation model (verilog)¶
2315module \$_SDFF_NN1_ (D, C, R, Q); 2316 input D, C, R; 2317 output reg Q; 2318 always @(negedge C) begin 2319 if (R == 0) 2320 Q <= 1; 2321 else 2322 Q <= D; 2323 end 2324endmodule
- yosys> help $_SDFF_NP0_¶
A negative edge D-type flip-flop with positive polarity synchronous reset.
Truth table: D C R | Q -------+--- - \ 1 | 0 d \ - | d - - - | q
- Simulation model (verilog)¶
2339module \$_SDFF_NP0_ (D, C, R, Q); 2340 input D, C, R; 2341 output reg Q; 2342 always @(negedge C) begin 2343 if (R == 1) 2344 Q <= 0; 2345 else 2346 Q <= D; 2347 end 2348endmodule
- yosys> help $_SDFF_NP1_¶
A negative edge D-type flip-flop with positive polarity synchronous set.
Truth table: D C R | Q -------+--- - \ 1 | 1 d \ - | d - - - | q
- Simulation model (verilog)¶
2363module \$_SDFF_NP1_ (D, C, R, Q); 2364 input D, C, R; 2365 output reg Q; 2366 always @(negedge C) begin 2367 if (R == 1) 2368 Q <= 1; 2369 else 2370 Q <= D; 2371 end 2372endmodule
- yosys> help $_SDFF_PN0_¶
A positive edge D-type flip-flop with negative polarity synchronous reset.
Truth table: D C R | Q -------+--- - / 0 | 0 d / - | d - - - | q
- Simulation model (verilog)¶
2387module \$_SDFF_PN0_ (D, C, R, Q); 2388 input D, C, R; 2389 output reg Q; 2390 always @(posedge C) begin 2391 if (R == 0) 2392 Q <= 0; 2393 else 2394 Q <= D; 2395 end 2396endmodule
- yosys> help $_SDFF_PN1_¶
A positive edge D-type flip-flop with negative polarity synchronous set.
Truth table: D C R | Q -------+--- - / 0 | 1 d / - | d - - - | q
- Simulation model (verilog)¶
2411module \$_SDFF_PN1_ (D, C, R, Q); 2412 input D, C, R; 2413 output reg Q; 2414 always @(posedge C) begin 2415 if (R == 0) 2416 Q <= 1; 2417 else 2418 Q <= D; 2419 end 2420endmodule
- yosys> help $_SDFF_PP0_¶
A positive edge D-type flip-flop with positive polarity synchronous reset.
Truth table: D C R | Q -------+--- - / 1 | 0 d / - | d - - - | q
- Simulation model (verilog)¶
2435module \$_SDFF_PP0_ (D, C, R, Q); 2436 input D, C, R; 2437 output reg Q; 2438 always @(posedge C) begin 2439 if (R == 1) 2440 Q <= 0; 2441 else 2442 Q <= D; 2443 end 2444endmodule
- yosys> help $_SDFF_PP1_¶
A positive edge D-type flip-flop with positive polarity synchronous set.
Truth table: D C R | Q -------+--- - / 1 | 1 d / - | d - - - | q
- Simulation model (verilog)¶
2459module \$_SDFF_PP1_ (D, C, R, Q); 2460 input D, C, R; 2461 output reg Q; 2462 always @(posedge C) begin 2463 if (R == 1) 2464 Q <= 1; 2465 else 2466 Q <= D; 2467 end 2468endmodule