Setting up simulation, Changing between serial and pipe simulation, Viewing the important pipe interface signals – Altera Arria 10 Avalon-ST User Manual
Page 257: Setting up simulation -57, Changing between serial and pipe simulation -57, Viewing the important pipe interface signals -57

Related Information
BFM Log and Message Procedures
on page 17-42
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
serial_sim_hwtcl
and
enable_pipe32_phyip_ser_driver_hwtcl
parameters control whether
simulation is in serial mode or PIPE simulation mode. The parameters are defined in the top-level
testbench,
.
Table 17-22: Controlling Serial and PIPE Simulations
Data Rates
Parameter Settings
serial_sim_hwtcl
enable_pipe32_phyip_ser_driver_hwtcl
Serial simulation
1
0
PIPE simulation
0
1
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
.
Viewing the Important PIPE Interface Signals
You can view the most important PIPE interface signals,
txdata
,
txdatak
,
rxdata
, and
rxdatak
at the
following level of the design hierarchy:
altpcie_
twentynm_hssi_
.
Disabling the Scrambler for Gen1 and Gen2 Simulations
The encoding scheme implemented by the scrambler applies a binary polynomial to the data stream to
ensure enough data transitions between 0 and 1 to prevent clock drift. The data is decoded at the other
end of the link by running the inverse polynomial.
UG-01145_avst
2015.05.04
Setting Up Simulation
17-57
Testbench and Design Example
Altera Corporation