Setting up simulation, Changing between serial and pipe simulation, Reducing counter values for serial simulations – Altera Arria V GZ Avalon-ST User Manual
Page 269
•
•
•
Setting Up Simulation
Changing the simulation parameters reduces simulation time and provides greater visibility.
Changing Between Serial and PIPE Simulation
By default, the Altera testbench runs a serial simulation. You can change between serial and PIPE
simulation by editing the top-level testbench file.
The
hip_ctrl_simu_mode_pipe
signal and
enable_pipe32_sim_hwtcl
parameter, specify serial or PIPE
simulation. When both are set to 1'b0, the simulation runs in serial mode. When both are set to 1'b1, the
simulation runs in PIPE mode. Complete the following steps to enable PIPE simulation. These steps
assume that the actual testbench is Gen3 x8 with an Avalon-ST 256-bit interface.:
1. In the top-level testbench, which is
tb.v
, change the signal,
hip_ctrl_simu_mode_pipe
to 1'b1 as shown:
pcie_de_gen3_x8_ast256 pcie_de_gen3_x8_ast256_inst (.hip_ctrl_simu_mode_pipe
( 1'b1 ),
2. In the top-level HDL module for the Hard IP which is
simulation/submodules/
change the parameter
enable_pipe32_sim_hwtcl
parameter to 1'b1
as shown:
altpcie_
Using the PIPE Interface for Gen1 and Gen2 Variants
Running the simulation in PIPE mode reduces simulation time and provides greater visibility.
Complete the following steps to simulate using the PIPE interface:
1. Change to your simulation directory,
2. Open
.
3. Search for the string,
serial_sim_hwtcl
. Set the value of this parameter to 0 if it is 1.
4. Save
.
Reducing Counter Values for Serial Simulations
You can accelerate simulation by reducing the value of counters whose default values are set for hardware,
not simulation.
Complete the following steps to reduce counter values for simulation:
1. Open
.
2. Search for the string,
test_in
.
3. To reduce the value of several counters, set
test_in[0] = 1
.
4. Save
altpcietb_bfm_top_rp.v
.
UG-01127_avst
2014.12.15
Setting Up Simulation
18-7
Debugging
Altera Corporation