TERM PROJECT 1 : CALCULATOR Martinet Lee & Steve Chung.
Transcript of TERM PROJECT 1 : CALCULATOR Martinet Lee & Steve Chung.
![Page 1: TERM PROJECT 1 : CALCULATOR Martinet Lee & Steve Chung.](https://reader036.fdocuments.in/reader036/viewer/2022082611/56649ec55503460f94bcf507/html5/thumbnails/1.jpg)
TERM PROJECT 1 : CALCULATOR
Martinet Lee & Steve Chung
![Page 2: TERM PROJECT 1 : CALCULATOR Martinet Lee & Steve Chung.](https://reader036.fdocuments.in/reader036/viewer/2022082611/56649ec55503460f94bcf507/html5/thumbnails/2.jpg)
OUR “FINAL” GOAL : THE CALCULATOR Sequential: Has memory Has different modes
Combinational: Various calculation functions Human understandable output
Combinational
Memory Unit
FSM
![Page 3: TERM PROJECT 1 : CALCULATOR Martinet Lee & Steve Chung.](https://reader036.fdocuments.in/reader036/viewer/2022082611/56649ec55503460f94bcf507/html5/thumbnails/3.jpg)
PROJECT TARGET : A COMBINATIONAL CALCULATOR (1) Arithmetic Logic Unit
(2) Binary to Decimal Converter
(3) Seven-Segment Display controller
(4) The combinational calculator
![Page 4: TERM PROJECT 1 : CALCULATOR Martinet Lee & Steve Chung.](https://reader036.fdocuments.in/reader036/viewer/2022082611/56649ec55503460f94bcf507/html5/thumbnails/4.jpg)
ALU : ARITHMETIC LOGIC UNIT Addition
Subtraction
Multiplication
Division
controlled by op
Hint: Use behavioral ! (+-*/ are all synthesizable)
![Page 5: TERM PROJECT 1 : CALCULATOR Martinet Lee & Steve Chung.](https://reader036.fdocuments.in/reader036/viewer/2022082611/56649ec55503460f94bcf507/html5/thumbnails/5.jpg)
BINARY TO DECIMAL CONVERTER Converts a binary input into decimal digits.
Ex. input 7’b1000001(= 7’d65) digten = 4’d6, digone = 4’d5
(1) Use logical method to “calculate” the result.
(2) This can also be implemented as ROM,note that we require you to use logical method.
Hint:
Figure out the arithmetic logic, plan & place them in order
![Page 6: TERM PROJECT 1 : CALCULATOR Martinet Lee & Steve Chung.](https://reader036.fdocuments.in/reader036/viewer/2022082611/56649ec55503460f94bcf507/html5/thumbnails/6.jpg)
SEVEN SEGMENT DISPLAY CONTROLLER Converts decimal number to SSDisp output
Hint:
input and output acts as a direct mapping,
hmm, doesn’t it look familiar?
![Page 7: TERM PROJECT 1 : CALCULATOR Martinet Lee & Steve Chung.](https://reader036.fdocuments.in/reader036/viewer/2022082611/56649ec55503460f94bcf507/html5/thumbnails/7.jpg)
THE COMBINATIONAL CALCULATOR … Connect the above module all together,
then you’ll get the combinational calculator!
Hint:
Wait, I think you won’t need any hint for this one, eh?
![Page 8: TERM PROJECT 1 : CALCULATOR Martinet Lee & Steve Chung.](https://reader036.fdocuments.in/reader036/viewer/2022082611/56649ec55503460f94bcf507/html5/thumbnails/8.jpg)
![Page 9: TERM PROJECT 1 : CALCULATOR Martinet Lee & Steve Chung.](https://reader036.fdocuments.in/reader036/viewer/2022082611/56649ec55503460f94bcf507/html5/thumbnails/9.jpg)
Project Due is 5/14Do it early!