merkat
Newbie level 2
- Joined
- Dec 1, 2012
- Messages
- 2
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,292
Hello,
I'm new here on the forum and generally in vhdl programming.
I have to write a code for a 4-bit binary adder and subtractor, but subtraction need to be performed only if the minuend has greater value than subtrahend. Input combinations are supposed to be set via switches on SPARTAN 3. And then the result of adding and subtracting need to be shown on 7 segment display of SPARTAN 3 board.
Can anybody help me to write a code for that?
I'm new here on the forum and generally in vhdl programming.
I have to write a code for a 4-bit binary adder and subtractor, but subtraction need to be performed only if the minuend has greater value than subtrahend. Input combinations are supposed to be set via switches on SPARTAN 3. And then the result of adding and subtracting need to be shown on 7 segment display of SPARTAN 3 board.
Can anybody help me to write a code for that?