VerilogA $fopen error message

Status
Not open for further replies.

maurits

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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…