Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top