You are on page 1of 3

Computer Architecture Text of the project

Assignment 2013

Design a synchronous sequential circuit and implement it on the CoolRunner-II board. The circuit will perform the functionalities of a simple calculator able to execute the sum and another operation. The circuit is characterized by 8 input signals: Operand selector : A / B Increment selected operand Decrement selected operand Selector: result / operands Selector of the operation Initial reset condition selector: normal / student id number Reset signal Clock signal

The circuit must report the result of the current selected state on the 7-segments display of 4 numbers using the hexadecimal code. The input operands are represented as unsigned pure binary numbers. Recommendations 1) The increment and decrement of the operands are managed by 2 push-buttons. A single operand is incremented or decremented of a single unit each 0.5 seconds while pressing the correspondent push-button. 2) The operand selector A/B is linked to the switch SW0 3) The increase of an operand is linked to the push-button BTN0 4) The decrement of an operand is linked to the push-button BTN1 5) The selector result / operand is linked to the switch SW1 6) The selector of the sum and difference operation is linked to the switch SW2 7) The selector of the initial reset condition is linked to the switch SW3 8) The reset signal is linked to the push-button BTN2 9) The clock signal is linked to the oscillator mounted on the used board. Control switches and display modalities
0 SW0 SW1 SW2 SW3 Operand A visualization Operands visualization Operation 1 execution Reset student id 1 Operand B visualization Results visualization Operation 2 execution Reset standard

Computer Architecture Operative modalities

Assignment 2013

1) The circuit reset is performed by pushing the push-button BTN2. There are two reset modalities: a. Standard reset in the case SW3 = 1. Both the operands A and B are initialized to 0. b. In the case SW3 = 0, the two operands A and B are initialized with the student id number assuming that the numbers have a hexadecimal codification. The 4 least significant id numbers must be copied in A the remaining numbers in B. Example: Id Number 127032 Operand A : Operand B : 7 0 0 0 3 1 2 2

2) The loading of the two operands is performed in the case SW1 = 0. When SW0 = 0 it is shown the increment / decrement of the A operand. In the case SW0 = 1 it is shown the increment / decrement of the operand B. The increment and the decrement is managed by pressing the push-buttons BTN0 and BTN1. Example: SW0 = 0 and SW1 = 0, BTN1 pressed for 2 seconds Display : SW0 = 1 and SW1 = 0 Display : Display : 0 0 0 0 0 0 0 8 SW0 = 1 e SW1 = 0, BTN0 pressed for 4 seconds 3) The result is shown with the SW1 = 1. In the case SW2 = 0 the display will show the sum between A and B, vice versa in the case SW2 = 1 the display will show the difference between A and B. SW1 = 1 and SW2 = 0 Display : SW1 = 1 and SW2 = 1 Display : F F F 6 0 0 0 6 F F F C

Computer Architecture Groups information

Assignment 2013

Group ID Group 1 Group 2 Group 3 Group 5

Operation 1 Sin Cos Tan Atan

Operation 2 Add (2nd operand with 2 decimals) Mul (2nd operand with 2 decimals) Div (2nd operand with 3 decimals) Sub (2nd operand with 2 decimals)

On the lab of Tuesday, 30 April, 2013 will be provided a Tutorial on the usage and interconnection to the switch and push-button on the board.

You might also like