Question: The aim of this task is to implement a Carry - Lookahead Adder ( CLA ) in SystemVerilog. The CLA is to add two n

The aim of this task is to implement a Carry-Lookahead Adder (CLA) in SystemVerilog. The CLA is to add two n bit numbers together. It consists of blocks for k columns each so that n =- k.
Except for the testbench, it is not allowed to use addition operators, comparison operators or similar, use only operators from Boolean algebra (Boolean reduction operators are allowed).
Note: You can also receive points for later parts of the task if you were unable to solve previous parts.
A CLA block for k columns is constructed as follows from the blocks RCA, GP and CARRY:
Now implement the parameterized SystemVerilog module cla_block for a k-column block of the CLA. Use instances of the modules carry, gp and rca. An implementation of rca is already provided here, you only need to instantiate it.
Note: You can compile and test your code with the following command:
Windows: ./sim.bat cla_block, Otherwise: ./sim.sh cla_block
Note: If you do not solve this task, you can use cla_block_filler.sv as an implementation of cla_block for the following tasks. To do this, copy it to cla_block.sv This implementation is correct, but uses addition operators internally and is therefore not a valid solution for this subtask. this subtask.'timescale 1ns /1ns
module cla_block
#(parameter K=4// Number of columns per CLA block
( input logic [K-1:0]A,?? Operand A
input logic K-1:0 B,// Operand B
input logic C_IN,// Carry-In
output logic [K-1:0] SUM, // Sum
output logic C_OUT); // Carry-Out
/
endmodule
 The aim of this task is to implement a Carry-Lookahead Adder

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!