jbdavid
|
I guess its NOT the same thing.. but I recently used the new Verilog-A string parameter on a block, which I set to a Design Variable so that I could change the filename from and Ocean script..
it works nicely.. .. .. parameter string myFileName = "Module_Output_file%D_%T.dat"; .. .. analog begin @initial_step("tran") begin FileHandle = $fopen( myFileName); end
--- In verilog-D you can use a register to hold a string value, (8 bits/character) and until the latest version supports string parameters, you can just leave the TYPE undefined parameter myFileHandle = "myDefaultFileName.dat" initial begin filehandle = $fopen(myFileHandle); But in digital side , at least in cadence the %T type code isn't supported in the $fopen.
|