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.

VerilogA $fopen error message

Status
Not open for further replies.

maurits

Newbie level 1
Newbie level 1
Joined
Jun 9, 2009
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,288
Hi all,

I am trying to check in VerilogA, if a file exists.
Reason: if it exists, I dont want to overwrite it, but create a new one.

I was trying to teach VerilogA
- to try to open the file in read mode.
- if that fails, then the file would not exist and I would open it in write mode.
- otherwise the file would exist and I create a new one.

The problem, which I am facing, is that opening a file for read-only will generate a fatal error in the cadence simulator, which stops the simulation.
Is there a way to circumvent this?

Any help is welcome.

BR

Maurits
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top