Motion FPGA
Motion FPGA for the MachX02-7000HE Breakout Board
tb Architecture Reference

Architecture tb of gpio_device_tb entity. More...

Functions

string   to_string ( vector: in std_logic_vector )
 Function to create string from std_logic_vector.

Processes

pr_clock  ( )
 Clock generator process.
pr_stimulus  ( )
 Stimulus process to drive PWM unit under test.

Use Clauses

rst 
 Reset input to gpio_device.
gpio_in 
 GPIO inputs.
gpio_out 
 Expected GPIO outputs.

Constants

c_clk_period  time := 10 ns
 Test bench clock period.
c_stimulus  t_stimulus_array := ( ( name = > " Reset " , rst = > ' 1 ' , data_wr = > X " 00000000 " , data_rd = > X " 00000000 " , gpio_in = > X " 00000000 " , gpio_out = > X " 00000000 " ) , ( name = > " Transfer " , rst = > ' 0 ' , data_wr = > X " DEADBEEF " , data_rd = > X " AA550011 " , gpio_in = > X " AA550011 " , gpio_out = > X " DEADBEEF " ) )
 Test stimulus.

Types

t_stimulus_array array ( natural range <> ) of t_stimulus
 Stimulus array type.

Signals

clk  std_logic
 Clock input to uut.
dat_wr_done  std_logic
 Data write done input to uut.
dat_wr_reg  std_logic_vector ( 31 DOWNTO 0 )
 Data write register input to uut.
dat_rd_reg  std_logic_vector ( 31 DOWNTO 0 )
 Data read register output from uut.

Records

t_stimulus  
 Stimulus record type.
name  string ( 1 TO 30 )
 Stimulus name.
data_wr  std_logic_vector ( 31 DOWNTO 0 )
 Write data to gpio_device.
data_rd  std_logic_vector ( 31 DOWNTO 0 )
 Expected read data from gpio_device.

Instantiations

i_uut  gpio_device <Entity gpio_device>
 Instantiate GPIO device as uut.

Detailed Description

Architecture tb of gpio_device_tb entity.

Definition at line 17 of file gpio_device_tb.vhd.

Member Function Documentation

§ pr_clock()

pr_clock ( )

Clock generator process.

This generates the clk signal and the adv signal

Definition at line 99 of file gpio_device_tb.vhd.

99  pr_clock : PROCESS IS
100  BEGIN
101 
102  clk <= '0';
103  WAIT FOR c_clk_period / 2;
104 
105  clk <= '1';
106  WAIT FOR c_clk_period / 2;
107 
108  END PROCESS pr_clock;

Member Data Documentation

§ gpio_out

gpio_out
Package

Expected GPIO outputs.

GPIO outputs.

Definition at line 29 of file gpio_device_tb.vhd.

§ rst

rst
Package

Reset input to gpio_device.

Reset input to uut.

Definition at line 25 of file gpio_device_tb.vhd.


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