Question: Please use the EDAplayground to finish this program, and the code is available in this website: https://www.edaplayground.com/x/3aGb Part 1: The ALU The ALU is a

 Please use the EDAplayground to finish this program, and the codeis available in this website: https://www.edaplayground.com/x/3aGb Part 1: The ALU The ALU

Please use the EDAplayground to finish this program, and the code is available in this website: https://www.edaplayground.com/x/3aGb

Part 1: The ALU The ALU is a relatively straightforward construction in Verilog, if you make use of operators available to Verilog. The ALU has three main components: A register called A, which stores the first operand. A connection to the bus, which will contain the second operand, and a register C, to output the result. Between all of these components is a combinational circuit which will perform the desired operations. Note that in the following diagram, the star (*) represents a logical subsection of the module, and not another actual module. Arithmetic and Logic Unit (ALU) bus c out Arithmetic Processing 0 G in The important part here is how the control logic is performed so that the CPU can make use of it. There are three distinct steps to performing an operation on the ALU (these may vary for certain operations): A value is loaded into register A using the bus, and the a_in input. Once a_in is set to 1, A should contain the value on the bus. The value B is loaded onto the bus, to act as the second operand The operator line (add, sub, etc.) is set to 1, and the result is stored by setting the c_in input to 1. 2. 3. 4. Finally, the bus is cleared and the c_out pin is set to 1. Part 1: The ALU The ALU is a relatively straightforward construction in Verilog, if you make use of operators available to Verilog. The ALU has three main components: A register called A, which stores the first operand. A connection to the bus, which will contain the second operand, and a register C, to output the result. Between all of these components is a combinational circuit which will perform the desired operations. Note that in the following diagram, the star (*) represents a logical subsection of the module, and not another actual module. Arithmetic and Logic Unit (ALU) bus c out Arithmetic Processing 0 G in The important part here is how the control logic is performed so that the CPU can make use of it. There are three distinct steps to performing an operation on the ALU (these may vary for certain operations): A value is loaded into register A using the bus, and the a_in input. Once a_in is set to 1, A should contain the value on the bus. The value B is loaded onto the bus, to act as the second operand The operator line (add, sub, etc.) is set to 1, and the result is stored by setting the c_in input to 1. 2. 3. 4. Finally, the bus is cleared and the c_out pin is set to 1

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!