Nov 5, 2012 #1 A 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
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
Mar 3, 2013 #2 C coolasic Newbie level 5 Joined Feb 27, 2013 Messages 8 Helped 2 Reputation 4 Reaction score 2 Trophy points 1,283 Activity points 1,345 I think its syntax error : assign t = a;