Verilog User Testbench Procedures
F
Following is a list of the supported tasks in the Verilog user testbench. Actel recommends that you examine the
testbench.v file to understand how to use these tasks.
// PCI configuration cycles
config_write (SLOT,CADDRESS,COUNT);
config_read (SLOT,CADDRESS,COUNT);
// PCI memory cycles
memory_write (ADDRESS,COUNT,PCI64);
memory_read (ADDRESS,COUNT,PCI64);
compare_data (ERRCOUNT,COUNT);
// Writes and reads to and from the core backend interface
be_write (BADDRESS,WDATA, BYTEEN);
be_read (BADDRESS,RDATA);
The parameters to the above tasks are described in Table F-1 and Table F-2 on page 145 . Data for the PCI
configuration and PCI memory read and write cycles is passed in the pciwdata and pcirdata global arrays rather than
through the task parameters.
Table F-1 · Global Descriptions
Globals
pciwdata
pcirdata
Type
reg [31:0] [0:31]
reg [31:0] [0:31]
Description
This is an array in which the user sets up the data that will be written before calling the memory_write or
config_write tasks. For 64-bit operations, the lower DWORD is specified in the odd addresses and the
upper DWORD in the even addresses.
This is an array by which the memory_read and config_read functions return data. For 64-bit operations,
the lower DWORD is specified in the odd addresses and the upper DWORD in the even addresses.
Table F-2 · Parameter Descriptions
Parameters
SLOT
CADDRESS
COUNT
ADDRESS
PCI64
ERRCOUNT
Type
reg [2:0]
reg [7:0]
reg [7:0]
reg [31:0]
reg
inout reg [31:0]
Description
PCI slot number to use for configuration cycles. When 0, will set the eight upper address bits to
01h. When 1, will set the eight upper address bits to 02h, etc. The testbench connects address bit 25
to the core IDSEL input; therefore, the slot number should be set to 1.
Configuration space address
Number of DWORDs to be written, read, or compared. If 64-bit operation is enabled, this must be
an even number. The maximum count is thirty-two 32-bit transfers or sixteen 64-bit transfers.
Memory space address
When 1, the testbench will request a 64-bit transfer.
The compare routine will increment this value if it detects any errors. At the end of a test sequence,
it can indicate the total number of errors.
v4.0
145
相关PDF资料
COREU1LL-AR IP MODULE COREU1LL
COREU1PHY-AR IP MODULE COREU1PHY
CORR-8BIT-XM-UT2 SITE LICENSE IP CORRELATOR XP
CP2-GSA-L CONN SHIELD LOWER TYPE A 22
CP2-HSA110-1 CONN SHROUD CPCI 2MM TYPE A 22
CP2-HSC055-4 CONN SHROUD CPCI 2MM TYPE C 11
CP2-K3567-SR-F COMPACT PCI - MISC
CP2105EK KIT EVAL FOR CP2105
相关代理商/技术参数
COREPCIF-RMFL 功能描述:IP MODULE 制造商:microsemi corporation 系列:- 零件状态:在售 类型:许可证 应用:- 版本:- 许可长度:- 许可 - 用户明细:- 操作系统:- 配套使用产品/相关产品:Microsemi 器件 媒体分发类型:- 标准包装:1
COREPCIF-UR 功能描述:HW/SW/OTHER 制造商:microsemi corporation 系列:* 零件状态:在售 标准包装:1
COREPCI-SN 制造商:ACTEL 制造商全称:Actel Corporation 功能描述:CorePCI v5.41
COREPCI-SR 制造商:ACTEL 制造商全称:Actel Corporation 功能描述:CorePCI v5.41
COREPCI-UR 制造商:ACTEL 制造商全称:Actel Corporation 功能描述:CorePCI v5.41
COREPCI-XX 制造商:ACTEL 制造商全称:Actel Corporation 功能描述:CorePCI v5.41
COREPRO LEDBULB 10.5-60W B 制造商:Philips Lumileds 功能描述:
COREPRO LEDBULB 10.5-60W E 制造商:Philips Lumileds 功能描述: