Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 CarryLookahead 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 cla, which creates a CLA from several modules clablock for the individual CLA blocks. To do this, again use a generate block.
Note: You can assemble several CLA blocks in a similar way to how they are assembled in a RippleCarryAdder full adder. However, you must suitably divide the n bits into blocks of length length k bits, so that each CLA block receives k bits each as A and B
Note: If for example, you want to divide A into blocks of length k the lowest block is AK: the next block AK:K and so on You could also divide specific values here by eg the loop variable of the generate block.
Note: To test your code, you will have to design a testbench yourself in the next task. However, you can already compile your code now with the following command in order to test in with the empty testbench to check for correct syntax: Windows: simbat cla, otherwise: simsh cla'timescale ns ns
module cla
# parameter
you may assume here that is a multiple of iedots
input logic : Operand
input logic : Operand B
input logic CIN CarryIn
output logic : SUM, Sum
output logic COUT; CarryOut
localparam L N K; L instances of clablock needed
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started