This is a simple design example that takes two four-bit numbers entered through the DIP switch of the XST-3.0 Board and displays their sum or difference on the LED digits.
DIPSW
1 2 3 4 5 6 7 8
| | | | | | | |
A3 A2 A1 A0 B3 B2 B1 B0
DIPSW1: A3 (most-significant bit of A)
DIPSW2: A2
DIPSW3: A1
DIPSW4: A0 (least-significant bit of A)
DIPSW5: B3 (most-significant bit of B)
DIPSW6: B2
DIPSW7: B1
DIPSW8: B0 (least-significant bit of B)
The sum of A and B will be displayed on LED1 and LED2.
Press pushbutton PB1 and the difference (A-B) will be displayed on LED1 and LED2.
This example design was developed using the following version of software:
Xilinx WebPACK : 6.3.03i
You can download the source files for this example design from the XESS website at /projects/xst3_switches_leds.zip .
Dave Vanden Bout, X Engineering Software Systems Corp.
Send bug reports to bugs@xess.com.
Copyright 2006 by X Engineering Software Systems Corporation.
These applications can be freely distributed and modified as long as you do not remove the attributions to the author or his employer.
01/28/2006 - Initial release.