Question: Functional specification: This design could be used as a simple 4-bit Arithmetic Logic Unit (ALU) within a CPU. The operations are addition and subtraction with

Functional specification:\ This design could be used as a simple 4-bit Arithmetic Logic Unit (ALU) within a CPU. The operations are addition and subtraction with and without carry in; multiplication; bit operations of "and", "or", "inv", "xor", and "mask"; rotate left and right either without carry or through carry; and shift left and right. Four switches control the 4 bit operation, determining which of the 16 functions are implemented in the combinational logic. Nine other slide switches are used to set a Carry-in bit and two four bit operands. The function output is on two of the eight 7-segment displays, and three of the decimal points are used to display a Carry-out bit, a bit that indicates the function result is zero, and a bit that compares the magnitude of the two operands.\ For the below table,\

a=SW[15:12],b=SW[11:8]

, Cin = SW[7], opcode = SW[3:0]; Switch up = 1, switch down

=0

.\

f=a+b+C

in is a 5-bit sum displayed as two hexadecimal digits from 00 to

1F

.\ For multiplication and comparison, treat

a,b

, and

f

as unsigned integers.\

f=a**b

is an 8-bit product displayed as two hexadecimal digits from 00 to E1.\ Complete and implement the missing rows for Digit0.\ Digit7dp, Digit5, Digit5dp, Digit4dp, Digit3, Digit2, and Digit1dp should be off.

 Functional specification:\ This design could be used as a simple 4-bit

runctional specitication: This design could be used as a simple 4-bit Arithmetic Logic Unit (ALU) within a CPU. The operations are addition and subtraction with and without carry in; multiplication; bit operations of "and", "or", "inv", "xor", and "mask"; rotate left and right either without carry or through carry; and shift left and right. Four switches control the 4 bit operation, determining which of the 16 functions are implemented in the combinational logic. Nine other slide switches are used to set a Carry-in bit and two four bit operands. The function output is on two of the eight 7-segment displays, and three of the decimal points are used to display a Carry-out bit, a bit that indicates the function result is zero, and a bit that compares the magnitude of the two operands. For the below table, - a= SW[15:12], b = SW[11:8], Cin = SW[7], opcode = SW[3:0]; Switch up = 1, switch down =0. - f=a+b+C in is a 5-bit sum displayed as two hexadecimal digits from 00 to 1F. - For multiplication and comparison, treat a,b, and f as unsigned integers. - f=ab is an 8-bit product displayed as two hexadecimal digits from 00 to E1. - Complete and implement the missing rows for Digit0. - Digit7dp, Digit5, Digit5dp, Digit4dp, Digit3, Digit2, and Digit1dp should be off

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!