•
Set the DIP switches and press the SPARE and RESET pushbuttons. Observe the results on
the LEDs.
The steps for compiling and testing the design using an XS95 combined with an XStend Board
are as follows:
•
Synthesize the ABEL code in the EXP1.ABL for an XC95108 CPLD.
•
Compile the synthesized netlist using the EXP1_95.UCF constraint file.
•
Generate an SVF file for the design.
•
Mount an XS95 Board in the XStend Board and attach the downloading cable from the
XS95 to the PC parallel port. Apply 9VDC though jack J9 of the XS95. Place shunts on
jumpers J4, J7, and J8 of the XStend Board to enable the LED displays. Place a shunt on
jumper J11 to keep the XStend codec disabled.
•
Download the EXP1.SVF file into the XS95/XStend combination with the command:
XSLOAD EXP1.SVF
.
•
Set the DIP switches and press the SPARE and RESET pushbuttons. Observe the results on
the LEDs.
Listing 13:
ABEL code for testing the XStend LEDs and switches.
001- MODULE EXP1
002- TITLE 'EXP1'
003-
004- // This example shows the settings of the DIP switches using each
005- // of the LED displays as selected by the SPARE and RESET pushbuttons
006-
007- DECLARATIONS
008-
009- OE_ PIN;
// output enable for the RAMs
010- RST PIN;
// uC reset
011- DIPSW8..DIPSW1 PIN;
// DIP switch inputs
012- DIPSW = [DIPSW8..DIPSW1];
013- PUSH_SPARE_ PIN;
// SPARE pushbutton input
014- PUSH_RESET_ PIN;
// RESET pushbutton input
015- S6..S0 PIN;
// LED display on XS Board
016- S = [S6..S0];
017- LS_6..LS_0 PIN;
// left LED display on XStend Board
018- LS_ = [LS_6..LS_0];
019- LDP_ PIN;
// decimal point on left LED display
020- RS_6..RS_0 PIN;
// right LED display on Xstend board
021- RS_ = [RS_6..RS_0];
022- RDP_ PIN;
// decimal point on right LED display
023- D_8..D_1 PIN;
// string of LEDs on XStend Board
024- D_ = [D_8..D_1];
025-
026- EQUATIONS
027-
028- RST = 1;
// keep the uC in the reset state
Summary of Contents for XStend
Page 29: ...XStend Bus Connections...
Page 30: ...XStend RAMs...
Page 31: ...XStend Analog I O...
Page 32: ...XStend Stereo Codec...
Page 33: ...XStend Switches LEDs VGA Interface and PS 2 Interface...
Page 34: ...XStend Board Layout...