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.

Verilog-a cyclically dependent error

Status
Not open for further replies.

heba_saleh

Newbie level 2
Joined
Mar 15, 2018
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
17
Dear all

I am new to verilog-a and symicaDe tool .. I want to write and read data from a file so I copied a simple veriloga code from the manual.


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
`include "disciplines.vams"
`include "constants.vams"
 
module fileexample;
 
integer mcd1 ;
integer mcd2 ;
 
integer mcd ;
analog begin 
@(initial_step) begin
mcd1 = $fopen("file11.txt","a") ;
mcd2 = $fopen("file2.txt","a") ;
end
 
mcd = mcd1 | mcd2 ; 
$fstrobe(mcd, "This is written to both files") ;
 
 
 
   $fclose(mcd1); 
   $fclose(mcd2);
 
end
endmodule


However, i am getting as error ---->

cyclically dependent cells found: FileTest(I0) - FileTest(I0)
1 error(s), 0 warning(s)

I would be grateful if someone told me how to solve this problem
thank you in advance
 

Code:
@(final_step) begin
   $fclose(mcd1); 
   $fclose(mcd2);
end //final_step

Show me netlist which call this verilog-A module.
 

Code:
simulator lang=local


parameters 

I0 out x0 x1 nand2 

subckt nand2 out in1 in2 
V6 n3_1 gnd vsource type=dc dc=1.3 
M7 out in1 n4_4 gnd n w=0.0001 l=1.3e-007 
M9 out in2 n3_1 n3_1 p w=0.0001 l=1.3e-007 
M10 out in1 n3_1 n3_1 p w=0.0001 l=1.3e-007 
M8 n4_4 in2 gnd gnd n w=0.0001 l=1.3e-007 
ends


TimeSweep tran start=0.000000e+000 stop=5.000000e-003 lteratio=3.500000e+000 

save x1 x0 out 

saveOptions options save=all currents=selected 

DEFAULT_OPTIONS options tnom=2.700000e+001 temp=2.700000e+001  acout=0 fast_spice=0 reltol=1.000000e-003

this is the netlist
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top