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:
Implement the parameterized SystemVerilog module gp, which implements the GP block of a kcolumn CLA block.
Note: Among other things, a generate block is required to calculate the output G. The task can be solved by using the module carry in the generate block. To do this, try replacing parts of the GP circuit with CARRY.
Note: You can compile and test your code with the following command:
Windows: ./sim.bat gp, Otherwise: ./sim.sh gp
Note: If you do not solve this task, you can use gp_filler.sv as an implementation of gp for the following tasks. implementation of gp for the following tasks. To do this, copy it to gp.sv This implementation is correct, but uses addition operators and comparisons internally and is therefore not a valid solution for this subtask.'timescale 1ns /1ns
module gp
#(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
output logic G,// Generate of whole block (G_{x:x-k+1})
output logic P); // Propagate of whole block (P_{x:x-k+1})
/P
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!