029- OE_ = 1;
// disable the outputs from all the RAMs
030-
031- // the state of the pushbuttons will select which LED display will
032- // show the settings of the DIP switches. A bright LED corresponds
033- // to a DIP switch which is set to '1'.
034-
035- // When both pushbuttons are pressed, the DIP switch settings are
036- // shown on the LED display of the XS Board.
037- WHEN ((PUSH_SPARE_==0) & (PUSH_RESET_==0)) THEN {
038-
S = [DIPSW7..DIPSW1];
039-
[LDP_,RS_6..RS_0] = ^B11111111;
040-
[RDP_,LS_6..LS_0] = ^B11111111;
041-
D_ = ^B11111111;
042-
}
043- // When only the RESET pushbutton is pressed, the DIP switch settings
044- // are shown on the left LED display on the XStend Board.
045- ELSE WHEN ((PUSH_SPARE_==1) & (PUSH_RESET_==0)) THEN {
046-
S = ^B0000000;
047-
[LDP_,LS_6..LS_0] = !(DIPSW);
048-
[RDP_,RS_6..RS_0] = ^B11111111;
049-
D_ = ^B11111111;
050-
}
051- // When only the SPARE pushbutton is pressed, the DIP switch settings
052- // are shown on the right LED display on the XStend Board.
053- ELSE WHEN ((PUSH_SPARE_==0) & (PUSH_RESET_==1)) THEN {
054-
S = ^B0000000;
055-
[LDP_,LS_6..LS_0] = ^B11111111;
056-
[RDP_,RS_6..RS_0] = !(DIPSW);
057-
D_ = ^B11111111;
058-
}
059- // When neither pushbuttons is pressed, the DIP switch settings are
060- // shown on the string of LEDs of the XStend Board.
061- ELSE WHEN ((PUSH_SPARE_==1) & (PUSH_RESET_==1)) THEN {
062-
S = ^B0000000;
063-
[LDP_,LS_6..LS_0] = ^B11111111;
064-
[RDP_,RS_6..RS_0] = ^B11111111;
065-
D_ = !(DIPSW);
066-
}
067-
068- END EXP1
Listing 14:
UCF file for LED/switch XStend example with XS40.
001- # XS40 BOARD LED CONNECTIONS (ACTIVE_HIGH)
002- NET S0
LOC=P25;
003- NET S1
LOC=P26;
004- NET S2
LOC=P24;
005- NET S3
LOC=P20;
006- NET S4
LOC=P23;
007- NET S5
LOC=P18;
008- NET S6
LOC=P19;
009- #
010- # MICROCONTROLLER PINS
011- NET RST
LOC=P36; # ACTIVE-HIGH RESET
012- #
013- # XS40 BOARD RAM CONTROL PINS
014- NET OE_
LOC=P61; # ACTIVE-LOW OUTPUT ENABLE
015- #
016- #
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...