RegistersΒΆ
SR-type latches are represented by $sr cells. These cells have input ports
SET and CLR and an output port Q. They have the following
parameters:
WIDTHThe width of inputs
SETandCLRand outputQ.SET_POLARITYThe set input bits are active-high if this parameter has the value
1'b1and active-low if this parameter is1'b0.CLR_POLARITYThe reset input bits are active-high if this parameter has the value
1'b1and active-low if this parameter is1'b0.
Both set and reset inputs have separate bits for every output bit. When both the
set and reset inputs of an $sr cell are active for a given bit index, the
reset input takes precedence.
D-type flip-flops are represented by $dff cells. These cells have a clock port
CLK, an input port D and an output port Q. The following parameters
are available for $dff cells:
WIDTHThe width of input
Dand outputQ.CLK_POLARITYClock is active on the positive edge if this parameter has the value
1'b1and on the negative edge if this parameter is1'b0.
D-type flip-flops with asynchronous reset are represented by $adff cells. As
the $dff cells they have CLK, D and Q ports. In addition they also
have a single-bit ARST input port for the reset pin and the following
additional two parameters:
ARST_POLARITYThe asynchronous reset is active-high if this parameter has the value
1'b1and active-low if this parameter is1'b0.ARST_VALUEThe state of
Qwill be set to this value when the reset is active.
Usually these cells are generated by the proc pass using the information in
the designs RTLIL::Process objects.
D-type flip-flops with synchronous reset are represented by $sdff cells. As
the $dff cells they have CLK, D and Q ports. In addition they also
have a single-bit SRST input port for the reset pin and the following
additional two parameters:
SRST_POLARITYThe synchronous reset is active-high if this parameter has the value
1'b1and active-low if this parameter is1'b0.SRST_VALUEThe state of
Qwill be set to this value when the reset is active.
Note that the $adff and $sdff cells can only be used when the reset value is
constant.
D-type flip-flops with asynchronous load are represented by $aldff cells. As
the $dff cells they have CLK, D and Q ports. In addition they also
have a single-bit ALOAD input port for the async load enable pin, a AD
input port with the same width as data for the async load data, and the
following additional parameter:
ALOAD_POLARITYThe asynchronous load is active-high if this parameter has the value
1'b1and active-low if this parameter is1'b0.
D-type flip-flops with asynchronous set and reset are represented by $dffsr
cells. As the $dff cells they have CLK, D and Q ports. In addition
they also have multi-bit SET and CLR input ports and the corresponding
polarity parameters, like $sr cells.
D-type flip-flops with enable are represented by $dffe, $adffe, $aldffe,
$dffsre, $sdffe, and $sdffce cells, which are enhanced variants of $dff,
$adff, $aldff, $dffsr, $sdff (with reset over enable) and $sdff (with
enable over reset) cells, respectively. They have the same ports and parameters
as their base cell. In addition they also have a single-bit EN input port
for the enable pin and the following parameter:
EN_POLARITYThe enable input is active-high if this parameter has the value
1'b1and active-low if this parameter is1'b0.
D-type latches are represented by $dlatch cells. These cells have an enable
port EN, an input port D, and an output port Q. The following
parameters are available for $dlatch cells:
WIDTHThe width of input
Dand outputQ.EN_POLARITYThe enable input is active-high if this parameter has the value
1'b1and active-low if this parameter is1'b0.
The latch is transparent when the EN input is active.
D-type latches with reset are represented by $adlatch cells. In addition to
$dlatch ports and parameters, they also have a single-bit ARST input port
for the reset pin and the following additional parameters:
ARST_POLARITYThe asynchronous reset is active-high if this parameter has the value
1'b1and active-low if this parameter is1'b0.ARST_VALUEThe state of
Qwill be set to this value when the reset is active.
D-type latches with set and reset are represented by $dlatchsr cells. In
addition to $dlatch ports and parameters, they also have multi-bit SET and
CLR input ports and the corresponding polarity parameters, like $sr cells.