XESS XStend Manual page 22

Board
Table of Contents

Advertisement

• Download the EXP3.BIT file into the XS40/XStend combination with the command:
XSLOAD EXP3.BIT.
• Press keys on the keyboard and observe the results on the LED displays.
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 EXP3.ABL for an XC95108 CPLD.
• Compile the synthesized netlist using the EXP3_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 to enable the LEDs. Place a shunt on jumper J11 to keep the XStend
codec disabled. Attach a keyboard to the PS/2 connector of the XStend Board.
• Download the EXP3.SVF file into the XS95/XStend combination with the command:
XSLOAD EXP3.SVF.
• Press keys on the keyboard and observe the results on the LED displays.
Listing 19: ABEL code for testing the XStend PS/2 example.
001- MODULE EXP3
002- TITLE 'EXP3'
003-
004- DECLARATIONS
005-
006- RST PIN;
007- OE_ PIN;
008- KB_DATA PIN;
009- KB_CLK PIN;
010- D_8..D_1 PIN;
011- D_ = [D_8..D_1];
012- RS_6..RS_0 PIN ISTYPE 'COM';
013- RS_ = [RS_6..RS_0];
014- [MASTER9..MASTER0] NODE ISTYPE 'REG';
015- MASTER = [MASTER9..MASTER0];
016- [SLAVE9..SLAVE0] NODE ISTYPE 'REG';
017- SLAVE = [SLAVE9..SLAVE0];
018-
019- EQUATIONS
020-
021- RST = 1;
022- OE_ = 1;
023-
024- // Scan codes from the keyboard arrive LSB-first on the falling
025- // edge of the clock.
026- // master register.
027- // slave contents shifted right by one bit.
// disable uC
// disable RAM outputs
Each bit is shifted into the MSB of the
The lower bits of the master are filled with
// uC reset control
// RAM output enable
// serial data from PS/2 keyboard
// clock from PS/2 keyboard
// LED string on XStend Board
// right LED display on XStend Board
// master register for
// storing keyboard data
// slave register for
// storing keyboard data
Then the updated

Advertisement

Table of Contents
loading

Related Products for XESS XStend

Table of Contents