Module Andd Notes
Module Andd Notes
module andd(
output reg y,
input a,b
);
always @(a&&b)begin
y=1'b1;
end
else begin
y=1'b0;
end
end
endmodule
--------------
module tb;
reg a,b;
wire y;
andd andd1(y,a,b);
initial
begin
$dumpfile("file.vcd");
$dumpvars(1);
a=0;b=0;
#5
a=0;b=1;
#5
a=1;b=0;
#5
a=1;b=1;
#5
$finish;
end
endmodule
module Barrel_Shifter (
);
endmodule