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:
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
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

Intelligent Image Databases Towards Advanced Image Retrieval

Authors: Yihong Gong

1st Edition

1461375037, 978-1461375036

More Books

Students also viewed these Databases questions