Geoffrey_Coram
|
The $fopen system function defined in 1364-1995 (from which Verilog-AMS is defined) did not have an argument for opening in read/write/append text/binary. Curiously, the LRM does not say whether $fopen was supposed to append or truncate. (Probably some simulators do one thing, and others do another.)
The extra argument was added in 1364-2001, so you may find that your simulator does, in fact, support the argument. (Vendors had to implement it for digital Verilog, so why not allow the functionality in V-AMS?)
$fopen("filename", "w")
|