AXI Bridge for PCI Express v2.4
94
PG055 June 4, 2014
Appendix B:
Debugging
Simulation Debug
The simulation debug flow for Mentor Graphics Questa® SIM is illustrated in
. A
similar approach can be used with other simulators.
X-Ref Target - Figure B-3
Figure B-3:
Questa SIM Simulation Debug Flow
1UESTA3)-
3IMULATION$EBUG
$OYOUGETERRORSREFERRINGTO
FAILINGTOACCESSLIBRARY
.O
.O
9ES
$OYOUGETERRORSINDICATING
0#)%??OROTHERELEMENTSLIKE
"5&'NOTDEFINED
!REYOUABLETORECEIVEPACKETS
ONTHE!8)28INTERFACEANDTRANSMIT
PACKETSONTHE!8)48INTERFACE
.O
.O
3ECURE)0MODELSAREUSEDTO
SIMULATETHEINTEGRATEDBLOCK
FOR0#)%XPRESSANDTHETRANSCEIVERS
4OUSETHESEMODELSA6ERILOG
,2-)%%%ENCRYPTION
COMPLIANTSIMULATORISREQUIRED
!6ERILOGLICENSEISREQUIREDTO
SIMULATEWITHTHE3ECURE)0MODELS
)FTHEUSERDESIGNUSES6($,A
MIXEDMODESIMULATIONLICENSEIS
REQUIRED
9ES
.EEDTOCOMPILEANDMAPTHE
PROPERLIBRARIES3EE#OMPILING
3IMULATION,IBRARIES3ECTION
9ES
!DDTHE,SWITCHWITHTHEAPPROPRIATE
LIBRARYREFERENCETOTHEVSIMCOMMAND
LINE&OREXAMPLE,SECUREIPOR
,UNISIMS?VER
)FTHELIBRARIESARENOTCOMPILEDAND
MAPPEDCORRECTLYITCAUSESERRORS
SUCHAS
%RRORVOPT &AILEDTOACCESS
LIBRARYgSECUREIPgATSECUREIP
.OSUCHFILEORDIRECTORY
ERRNO%./%.4
%RROREXAMPLE?DESIGN
XILINX?PCIE???EP?XV
,IBRARYSECUREIPNOTFOUND
4OMODELTHE)NTEGRATED"LOCKFOR
0#)%XPRESSANDTHETRANSCEIVERSTHE
3ECURE)0MODELSAREUSED4HESE
MODELSMUSTBEREFERENCEDDURING
THEVSIMCALL!LSOITISNECESSARYTO
REFERENCETHEUNISIMSLIBRARYAND
POSSIBLYXILINXCORELIBDEPENDING
ONTHEDESIGN
.O
7RITETOTHE0#)#OMMANDREGISTER
AT$7/2$ADDRESSOFFSET
X
AND
SETBITS;=TO
B
/NEOFTHEMOSTCOMMONMISTAKESIN
SIMULATIONOFAN%NDPOINTISFORGETTING
TOSETTHE-EMORY)/AND"US-ASTER
%NABLEBITSTOAINTHE0#)#OMMAND
REGISTERINTHECONFIGURATIONSPACE
9ES
)FTHEISSUEISMOREDESIGNSPECIFICOPEN
ACASEWITH8ILINX4ECHNICAL3UPPORT
ANDINCLUDEAWLFFILEDUMPOFTHESIMULATION
&ORTHEBESTRESULTSDUMPTHEENTIREDESIGN
HIERARCHY
!REYOUUSING1UESTA3)-VERSIONA
ORLATER
5PDATE1UESTA3)-TO
VERSIONAORLATER
)FUSING6($,DOYOUHAVEA
MIXEDMODESIMULATIONLICENSE
/BTAINAMIXEDMODE
SIMULATIONLICENSE
9ES
8