jiraiya
Newbie level 1
- Joined
- Feb 12, 2015
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 13
I am new to verilog.
I wrote this small code where i am calling the add function in counter program. I get the following error when i try to simulate it-
# Region: /tb/DUT/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1
# ** Error: (vsim-3036) Instantiation depth of '/tb/DUT/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1' is 76. Assuming recursive instantiation.
May I know the reason for this error?Thank you.
I wrote this small code where i am calling the add function in counter program. I get the following error when i try to simulate it-
# Region: /tb/DUT/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1
# ** Error: (vsim-3036) Instantiation depth of '/tb/DUT/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1/u1' is 76. Assuming recursive instantiation.
Code Verilog - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 add.v - module add (a,b,c); input a,b; output c assign c=a+b; endmodule counter.v - module counter (a,b,c,d,e,f); input a,b,d,e; output c,f; add u1 (a,b,c); add u2 (d,e,f); endmodule counter_tb.v- module tb; reg a,b,d,e; wire c,f; counter DUT (a,b,c,d,e,f); initial begin #0 a=1;b=1; #5 d=0;e=1; #10 $finish; end initial begin $monitor("Time = %g a =%b,b=%b,c=%b,d=%b,e=%b,f=%b", $time, a,b,c,d,e,f); end endmodule
May I know the reason for this error?Thank you.
Last edited by a moderator: