ADM-XRC SDK 2.4.0 User Guide (Linux)
© Copyright 2001-2004 Alpha Data


Simple sample VHDL FPGA design

Model support

Location

Synopsis

FPGA space usage

Source files

Project Navigator files

Modelsim scripts

Model support

XRC XRC-P XRCII-Lite XRCII XRCIIPro-Lite XRCIIPro WRCII DRCII

Location
$ADMXRC_SDK4/fpga/vhdl/simple
Synopsis

The Simple FPGA design demonstrates how to implement host-accessible registers in an FPGA design. The registers can be accessed via the ADMXRC2_Read and ADMXRC2_Write API calls, or via a memory-mapped region. The latter method is demonstrated by the Simple sample application.

FPGA Space Usage

Nibble-reversed data register (REVDATA, local bus address 0x0)
Bits Mnemonic Type Function
31:0 VAL R/W When read, this register returns the nibble-reversed version of the last value written to it.

Nibble-reversed data register (DATA, local bus address 0x4)
Bits Mnemonic Type Function
31:0 VAL R/W When read, this register returns the last value written to it.

Source files

For a list of the VHDL source files, refer to the appropriate XST project file, as referenced in the following table:

Model XST script file XST project file UCF file
XRC with Virtex simple-xrc-v.scr simple-xrc-v.prj simple-xrc.ucf
XRC with Virtex-E simple-xrc-ve.scr simple-xrc-ve.prj simple-xrc.ucf
XRC-P with Virtex simple-xrcp-v.scr simple-xrcp-v.prj simple-xrcp.ucf
XRC-P with Virtex-E simple-xrcp-ve.scr simple-xrcp-ve.prj simple-xrcp.ucf
XRCII-Lite simple-xrc2l-v2.scr simple-xrc2l-v2.prj simple-xrc2l.ucf
XRCII simple-xrc2-v2.scr simple-xrc2-v2.prj simple-xrc2.ucf
XRCIIPro-Lite simple-xrc2pl-v2p.scr simple-xrc2pl-v2p.prj simple-xrc2pl.ucf
WRCII simple-wrc2-v2.scr simple-wrc2-v2.prj simple-wrc2.ucf
DRCII simple-drc2-v2.scr simple-drc2-v2.prj simple-drc2.ucf

Project Navigator files

Project Navigator projects can be found in the projnav directory as follows:

Model Project Navigator project file
XRC projnav/xrc/<device>
XRC-P projnav/xrcp/<device>
XRCII-Lite projnav/xrc2l/<device>
XRCII projnav/xrc2/<device>
XRCIIPro-Lite projnav/xrc2pl/<device>
WRCII projnav/wrc2/<device>
DRCII projnav/drc2/<device>

Modelsim scripts

Example Modelsim-compatible script files simulating this design are provided. Refer to the following table for the appropriate command line for a particular model:

Model Shell command
XRC vsim -do "do simple.do"
XRC-P vsim -do "do simple.do"
XRCII-Lite vsim -do "do simple.do"
XRCII vsim -do "do simple.do"
XRCIIPro-Lite vsim -do "do simple-xrc2pl.do"
WRCII vsim -do "do simple-wrc2.do"
DRCII vsim -do "do simple-wrc2.do"

 


 Top of page