Aritra Mukherjee
Newbie level 1
Please anyone please help me. I am stuck with the following codes n i don't know why it is not running.....
`timescale 1ns / 1ps
module SWT(input [1:0] a, output reg [1:0] b);
integer i=0;
wire [1:0] t;
assign t <= a;
always @(t)
begin
for (i = 0;i <= 10;i = i+1)
begin
#9000;
t<=t+2'b01;
b<=t;
end
end
endmodule
`timescale 1ns / 1ps
module SWT(input [1:0] a, output reg [1:0] b);
integer i=0;
wire [1:0] t;
assign t <= a;
always @(t)
begin
for (i = 0;i <= 10;i = i+1)
begin
#9000;
t<=t+2'b01;
b<=t;
end
end
endmodule