Latch cells¶
The cell types $_DLATCH_N_ and $_DLATCH_P_ represent d-type latches.
Verilog |
Cell Type |
|---|---|
|
|
|
|
The cell types $_DLATCH_[NP][NP][01]_ implement d-type latches with reset.
The values in the table for these cell types relate to the following Verilog
code template:
always @*
if (R == RST_LVL)
Q <= RST_VAL;
else if (E == EN_LVL)
Q <= D;
\(EnLvl\) |
\(RstLvl\) |
\(RstVal\) |
Cell Type |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The cell types $_DLATCHSR_[NP][NP][NP]_ implement d-type latches with set
and reset. The values in the table for these cell types relate to the following
Verilog code template:
always @*
if (R == RST_LVL)
Q <= 0;
else if (S == SET_LVL)
Q <= 1;
else if (E == EN_LVL)
Q <= D;
\(EnLvl\) |
\(SetLvl\) |
\(RstLvl\) |
Cell Type |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The cell types $_SR_[NP][NP]_ implement sr-type latches. The values in the
table for these cell types relate to the following Verilog code template:
always @*
if (R == RST_LVL)
Q <= 0;
else if (S == SET_LVL)
Q <= 1;
\(SetLvl\) |
\(RstLvl\) |
Cell Type |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|