Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write a verilog code to implement the following function without using > > , < < , + , * , operators: E =
write a verilog code to implement the following function without using operators:
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.
Use your own choice of multiplier algorithm to implement the multiplier
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
endmodule
write a verilog code to implement the following function without using :
E A i Bj
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.
Use your own choice of multiplier algorithm to implement the multiplier
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
endmodule
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