VHDL-verification
Package to ease directed testing of HDL entities
Processes
two_simulation_processes Architecture Reference

Architecture is based on two different non-synthesizable processes to manage clk and rst. More...

Detailed Description

Architecture is based on two different non-synthesizable processes to manage clk and rst.

A process is dedicated to toggle clk while endsim is not '1', and another one manages rst

Definition at line 33 of file clkmanager.vhd.

Processes

clk_process  ( )
 Manage clk.
rst_process  ( )
 Manage reset.

Member Function Documentation

◆ clk_process()

clk_process ( )
Process

Manage clk.

To stop the simulation without a failure message, stop toggling the clk when endsim = '1',

Definition at line 56 of file clkmanager.vhd.

clk_process: process
56  begin
57  if(endsim /= '1') then
58  clk <= '0';
59  wait for CLK_PERIOD/2;
60  clk <= '1';
61  wait for CLK_PERIOD/2;
62  else
63  wait;
64  end if;
65  end process;
66 
out clkstd_logic
Generated clock.
Definition: clkmanager.vhd:25
in endsimstd_logic
clk stops changing when endsim=&#39;1&#39;, which effectively stops the simulation
Definition: clkmanager.vhd:24
CLK_PERIODtime := 10 ns
Period of generated clock.
Definition: clkmanager.vhd:19

◆ rst_process()

rst_process ( )
Process

Manage reset.

Sets rst to RST_ACTIVE_VALUE for CLK_PERIOD*RST_CYCLES and toggles it to NOT RST_ACTIVE_VALUE after that time

Definition at line 72 of file clkmanager.vhd.

rst_process: process
72  begin
74  wait for CLK_PERIOD*RST_CYCLES;
75  rst <= NOT RST_ACTIVE_VALUE;
76  wait;
77  end process;
78 
RST_ACTIVE_VALUEstd_logic := '0'
Reset polarity.
Definition: clkmanager.vhd:20
out rststd_logic
Generated reset.
Definition: clkmanager.vhd:27
RST_CYCLESinteger := 10
Number of cycles that reset will be asserted at the beginning of the simulation.
Definition: clkmanager.vhd:22
CLK_PERIODtime := 10 ns
Period of generated clock.
Definition: clkmanager.vhd:19

The documentation for this class was generated from the following file: