Answered step by step
Verified Expert Solution
Link Copied!

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 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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems On GPUs In Databases

Authors: Johns Paul ,Shengliang Lu ,Bingsheng He

1st Edition

1680838482, 978-1680838480

More Books

Students also viewed these Databases questions