Jess Chen
|
Assuming that what you really want to do is import the Matlab waveforms into a Spectre simulation, you do not need to go through VerilogA. You may not want to use VerilogA because VerilogA in Spectre does not let you pass strings into VerilogA modules, at least the last time I checked. That means you have to change the code whenever you want to read in a different file. I think you have to open and close files and write code to read the data in line by line, or use an "include" statement. With the include statement, the included file must contain the exact syntax for defining the variables containing your data. This is all fairly clumsey in my opinion and there's a better way.
You can import the data into your simulation with Spectre primitive sources called pwlf sources. Each source imports one waveform. The data file must contain two columns of data, one column for time and the other for voltage or current. You can use spaces to separate the columns. These sources let you parameterize the file names. I don't have access to Spectre right now or I'd check, but I think you need to use double quotes around the file name.
|