Question: PLEASE could you HAND - DRAW the hardware out for me ! ! Show the hardware that will be synthesized for the below code solution.
PLEASE could you HANDDRAW the hardware out for me
Show the hardware that will be synthesized for the below code solution.
module dotseq # int w wi
output logic w: dp output logic wi: firstid lastid
input uwire w: a b input uwire wi: inid
input uwire reset, first, last, input uwire clk ;
logic w: pla: plb:; Arriving vector elements.
logic w: plprod:; Vector products.
logic w: plsum:; Dot prod of element segment.
logic wi: plid:; ID
logic : plfl:; The first and last signals.
logic wi: accid;
logic w: accsum;
alwaysff @ posedge clk begin
Stage
pla a; This copies both elements of a
plb b;
plid inid;
plfl reset b : lastfirst;
Stage
for int i; i; i plprodi plai plbi;
plid plid;
plfl reset d : plfl;
Stage
plsum plprod plprod;
plid plid;
plfl reset h : plfl;
Stage
begin
automatic logic sfirst plfl; For readability.
automatic logic slast plfl; For readability.
automatic logic w: ssum sfirst plsum : plsum accsum;
accsum ssum;
if reset begin
firstid ;
lastid ;
end else begin
if sfirst accid plid;
if slast begin
firstid sfirst plid : accid;
lastid plid;
dp ssum;
end
end
end
end
endmodule
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
