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

Architecture is based on just a single process. More...

Detailed Description

Architecture is based on just a single process.

An assertion has also been added to check that ACTIVE_VALUE is set to a non-ambiguous strong value (either '0' or '1').

Definition at line 34 of file led_emu.vhd.

Processes

PROCESS_1  ( led_input )
 Report led state each time there is an event in led_input.

Member Function Documentation

◆ PROCESS_1()

PROCESS_1 (   led_input  
)
Process

Report led state each time there is an event in led_input.

We don't actually need to check for led_input'event, since putting led_input in the sensitivity list of the process does it for us. We use the report statement to print a string to the simulation log, and the slv2string function in the vhdl_verification package to convert the std_logic_vector value to a printable string.

Definition at line 50 of file led_emu.vhd.

process (led_input)
50  begin
51  report "led_emu: current state of leds: " & slv2string(led_input);
52  end process;
53 
in led_inputstd_logic_vector( NUM_LEDS- 1 downto 0)
Connect here the signal that drives the leds.
Definition: led_emu.vhd:27

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