Error Detection

Status
Not open for further replies.

Aritra Mukherjee

Newbie level 1
Joined
Nov 4, 2012
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Chennai
Activity points
1,284
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
 

I think its syntax error :

assign t = a;
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…