Question: working on vivado, tasked to write a testbench for my 2 - 1 MUX but the compiler keeps saying my syntax is bad on line
working on vivado, tasked to write a testbench for my MUX but the compiler keeps saying my syntax is bad on line by 'reg'. what am i missing?
mux code
timescale s s
module MuxxY I I S;
input IIS;
output Y;
wire sb a b;
notsbS;
andasbI;
andbSI;
orYab;
endmodule
muxtb code
timescale ns ps
module Muxxtb
reg I I S;
wire Y;
Muxx uutI I S Y;
initial begin
S ; I; I;
#
S ; I; I;
#
S ; I; I;
#
S ; I; I;
#
$finish;
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
