Question: Write a verilog code that implements the following funtions: E = A / 2 ^ i + B * 2 ^ j F = E
Write a verilog code that implements the following funtions:
E A i B j
F E C
Where:
A B C and E are bit unsigned numbers
i and j are bit unsigned numbers.
F is bit unsigned number
Design Specification:
Implement the design using Verilog language. Do not use the following math operations:
shiftrotate You need to implement them yourself.
The top design name is mydesign and the port definition is illustrated below. You must
use the below testbench and template in your design.
timescale nsps
module mydesigntb;
reg : A;
reg : B;
reg : C;
reg : i j;
wire : F;
Mydesign one round in hardware
mydesign mydesign
A A
B B
C C
i i
j j
F F
;
initial begin
$monitor values are in HEX Ah Bh Ch ih jh Fh A B C
i j F;
Ah; Bh; Ch ; ih; jh;
#;
Ah; Bh; Ch ; ih; jh;
#;
AhFF; BhFF; ChFF ; ih; jh;
#;
AhFF; BhFF; ChFF ; ih; jh;
#;
$stop;
end
endmodul
Use your own choice of multiplier algorithm to implement the multiplier.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
