TERM PROJECT 1 : CALCULATOR Martinet Lee & Steve Chung.

9
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.

TERM PROJECT 1 : CALCULATOR

Martinet Lee & Steve Chung

Page 2: TERM PROJECT 1 : CALCULATOR Martinet Lee & Steve Chung.

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.

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.

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.

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.

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.

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.
Page 9: TERM PROJECT 1 : CALCULATOR Martinet Lee & Steve Chung.

Project Due is 5/14Do it early!