Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| learn:programmable-logic:tutorials:nexys-4-abacus-demo:start [2016/07/08 21:15] – created Sam K | learn:programmable-logic:tutorials:nexys-4-abacus-demo:start [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| {{: | {{: | ||
| ===== Overview ===== | ===== Overview ===== | ||
| + | |||
| + | ==== Description ==== | ||
| + | |||
| + | Abacus demonstration project that implements several arithmetic operations using the Nexys4' | ||
| + | |||
| ==== Features Used ==== | ==== Features Used ==== | ||
| Line 19: | Line 24: | ||
| ^ USB HID Host with mouse | ^ USB HID Host with mouse | ||
| ^ USB HID Host with keyboard | ^ USB HID Host with keyboard | ||
| - | |||
| - | ==== Description ==== | ||
| - | |||
| - | Abacus demonstration project that implements several arithmetic operations using the Nexys4' | ||
| ------- | ------- | ||
| ===== Prerequisites ===== | ===== Prerequisites ===== | ||
| - | |||
| - | ===Skills=== | ||
| - | * **Basic familiarity with Vivado** | ||
| - | * //This experience can be found by walking through our " | ||
| ===Hardware=== | ===Hardware=== | ||
| Line 37: | Line 34: | ||
| ===Software=== | ===Software=== | ||
| - | * **Vivado Design Suite 2015.X** | + | * **Vivado Design Suite 2016.4** |
| - | * //Newer/ | + | * //Newer versions can be used, but the procedure may vary slightly// |
| + | * **Digilent Board Support Files for Vivado** | ||
| + | * Follow the [[vivado: | ||
| ----- | ----- | ||
| ===== Downloads ===== | ===== Downloads ===== | ||
| - | Nexys4 | + | Nexys4 |
| ------- | ------- | ||
| - | ===== How to... ===== | ||
| + | ===== Download and Launch the Nexys 4 Abacus Demo ===== | ||
| + | >Follow the [[: | ||
| - | ==== 1. Generate | + | ===== Using the Nexys 4 Abacus Demo ===== |
| - | >1.1) Download | + | To run all the features of this demo, all you will need is your programmed Nexys4. The abacus can perform 4 arithmetic functions on two 8-bit numbers. Switches 15-8 represent input A. Switches 7-0 represent input B. The abacus works by setting |
| - | >1.2) Generate the **Abacus** project in the Projects folder by following this guide before continuing: [[vivado: | + | ==== 1. No Operation ==== |
| - | ==== 2. Build the Project ==== | + | >On startup and as long as no button is pressed, each four digit section of the 7-segment display |
| - | + | ||
| - | >2.1) Click **Generate Bitstream** on the left hand menu towards the bottom. Vivado | + | |
| > | > | ||
| - | >Note: If you want, you can click each step by itself in the order of **Run Synthesis**, | + | >{{:nexys: |
| - | > | + | |
| - | >{{:basys3:buildflow.png?600|}} | + | |
| - | ==== 3. Program the Board ==== | ||
| - | >3.1) Once you have generated your bit file, Click on the hardware manager and connect to your board by choosing the local server option. | + | ==== 2. Subtraction (BTNU) ==== |
| - | > | + | |
| - | > | + | |
| - | >3.2) Click program to load the project onto your Nexys4. | + | > |
| - | + | ||
| - | ==== 4. Run the Project ==== | + | |
| - | + | ||
| - | To run all the features of this demo, all you will need is your programmed Nexys4. | + | |
| - | + | ||
| - | >4.1) On startup, the display will read whatever the input switches values are set to. | + | |
| - | > | + | |
| - | > | + | |
| - | > | + | |
| - | + | ||
| - | + | ||
| - | >4.2) Subraction (BTNU) | + | |
| - | > | + | |
| - | > | + | |
| > | > | ||
| > | > | ||
| Line 92: | Line 71: | ||
| > | > | ||
| - | >4.3) Multiplication (BTND) | + | ==== 3. Multiplication (BTND) |
| - | > | + | |
| - | >When BTND is pressed | + | >The multiplication operation is activated while BTND is held down. This function uses the formula A * B. The display will show the product |
| > | > | ||
| > | > | ||
| Line 102: | Line 81: | ||
| > | > | ||
| - | >4.4) Division (BTNR) | + | ==== 4. Division (BTNR) |
| - | > | + | |
| - | >When BTNR is pressed | + | >The division operation is activated while BTNR is held down. This function uses the formula A / B. The display will show the quotient. |
| > | > | ||
| > | > | ||
| > | > | ||
| - | >4.5) Modulo/ | + | ==== 5. Modulo/ |
| - | > | + | |
| - | >When BTNL is pressed | + | >The modulo operation is activated while BTNL is held down. This function uses the formula A % B. The display will show the remainder. |
| > | > | ||
| > | > | ||
| > | > | ||
| - | >4.6) Addition (BTNC) | + | ==== 6. Addition (BTNC) |
| - | > | + | |
| - | >When BTNC is pressed | + | >The addtion operation is activated while BTNC is held down. This function uses the formula A + B. The display will show the sum of the two inputs. |
| > | > | ||
| > | > | ||
| > | > | ||
| - | {{tag> | + | {{tag> |

