22
046- -- DIP switches if neither pushbutton is pressed
047- -- these LED segments are active low.
048- db <= NOT(dipsw) WHEN (spareb='1' AND resetb='1') ELSE
049-
"11111111"; -- otherwise keep the bargraph LED dark
050- END switches_arch;
•
Listing 14:
XS40 UCF file for the LED/switch example.
001- net s<0>
loc=p25;
// XS40 board led digit segments
002- net s<1>
loc=p26;
003- net s<2>
loc=p24;
004- net s<3>
loc=p20;
005- net s<4>
loc=p23;
006- net s<5>
loc=p18;
007- net s<6>
loc=p19;
008- net rst
loc=p36;
// microcontroller reset
009- net oeb
loc=p61;
// RAM output enable
010- net dipsw<1> loc=p7;
// DIP switch inputs
011- net dipsw<2> loc=p8;
012- net dipsw<3> loc=p9;
013- net dipsw<4> loc=p6;
014- net dipsw<5> loc=p77;
015- net dipsw<6> loc=p70;
016- net dipsw<7> loc=p66;
017- net dipsw<8> loc=p69;
018- net spareb
loc=p67;
// SPARE pushbutton input
019- net resetb
loc=p37;
// RESET pushbutton input
020- net lsb<0>
loc=p3;
// XStend left led digit segments
021- net lsb<1>
loc=p4;
022- net lsb<2>
loc=p5;
023- net lsb<3>
loc=p78;
024- net lsb<4>
loc=p79;
025- net lsb<5>
loc=p82;
026- net lsb<6>
loc=p83;
027- net lsb<7>
loc=p84;
028- net rsb<0>
loc=p59;
// XStend right led digit segments
029- net rsb<1>
loc=p57;
030- net rsb<2>
loc=p51;
031- net rsb<3>
loc=p56;
032- net rsb<4>
loc=p50;
033- net rsb<5>
loc=p58;
034- net rsb<6>
loc=p60;
035- net rsb<7>
loc=p28;
036- net db<1>
loc=p41;
// XStend bargraph led segments
037- net db<2>
loc=p40;
038- net db<3>
loc=p39;
039- net db<4>
loc=p38;
040- net db<5>
loc=p35;
041- net db<6>
loc=p81;
042- net db<7>
loc=p80;
043- net db<8>
loc=p10;
•
Listing 15:
XS95 UCF file for the LED/switch example.
001- net s<0>
loc=p21;
// XS Board LED digit segments
002- net s<1>
loc=p23;
Summary of Contents for XStend XS40
Page 17: ...16 Figure 5 Programmer s model of the XS40 XStend Board combination...
Page 18: ...17...
Page 20: ......
Page 31: ......
Page 33: ......
Page 41: ......
Page 58: ...Appendix A XStend Schematics...
Page 59: ...XStend V1 3 XS Board Connectors...
Page 60: ...XStend V1 3 RAM...
Page 61: ......
Page 62: ...XStend V1 3 Stereo Codec...
Page 63: ......