PlTbUtils
1.3
PlTbUtils is a collection of functions, procedures and components for easily creating stimuli and checking response in automatic self-checking testbenches.
|
Creates a clock for use in a testbench. More...
Entities | |
bhv | architecture |
Generics | |
G_PERIOD | time := 10 ns |
Clock period. | |
G_INITVALUE | std_logic := ' 0 ' |
Initial value of the clock. |
Ports | ||
clk_o | out | std_logic |
Clock output. | ||
clk_n_o | out | std_logic |
Inverted clock for differential clocks. | ||
stop_sim_i | in | std_logic |
Stops the clock when '1'. |
Creates a clock for use in a testbench.
A non-inverted as well as an inverted output is available, use one or both depending on if you need a single-ended or differential clock. The clock stops when input port stop_sim goes '1'. This makes the simulator stop (unless there are other infinite processes running in the simulation).
Instantiation template
(copy to your own file and remove the comment characters):
Definition at line 62 of file pltbutils_comp.vhd.
|
Port |
Inverted clock for differential clocks.
Definition at line 69 of file pltbutils_comp.vhd.
|
Port |
Clock output.
Definition at line 68 of file pltbutils_comp.vhd.
|
Generic |
Initial value of the clock.
Definition at line 66 of file pltbutils_comp.vhd.
|
Generic |
Clock period.
Definition at line 64 of file pltbutils_comp.vhd.
|
Port |
Stops the clock when '1'.
Definition at line 71 of file pltbutils_comp.vhd.