Documente Academic
Documente Profesional
Documente Cultură
Synchronous sequential circuits usually events change on either the positive or negative edge of
a particular signal: the clock.
In VHDL, these events (positive and negative edges) are modelled in two possible ways. We can
use either a VHDL attribute or VHDL functions.
1
Example 1
Write the behavioral VHDL code of a D-FF described by the logic symbol of Figure 1.
D Q
D-FF
Clk Qn
2
Example 2
Write the behavioral VHDL code to synthesize the JK-FF describes by the logic symbol of
Figure 2. We assume the CLR overrides PR.
PR
J Q
JK-FF
Clk
Qn
K
CLR
3
Example 3
Write the behavioral VHDL code to synthesize the T-FF describes by the logic symbol of
Figure 3. We assume this time that PR overrides CLR. PR
T Q
T-FF
Clk
Qn
CLR
4
12. Timing consideration in edge-triggered devices
To insure proper operation of an edge-triggered device, the excitation inputs (D; J,K , T …)
should not change at the time the active edge occurs.
Clk
D Stable
D changing D changing
• Setup time (tsu) : The time interval that the D input signal must be stable at the input of
the FF prior to the active edge of the Clk signal
• Hold time (thd) : The time interval that the D signal must remain stable after the active
edge of the Clk signal.
Values of tsu and thd depend on the technology in which these devices are fabricated. Typical
values for CMOS technology are
tsu = 3 ns
thd = 2 ns