I would like to read input stimuli for my RF block from the external file.
Here is the brief description of my design.
I have 5 raws in my "in.dscr" external file with 2 variables in each raw. I have "Transient Simulator" running from 0ns to 10ns. I also have DAC and
PramSweep components to sweep index of the input file. ParamSweep is linked with my Transient Simulator.
Here is the problem.
At the end of the simulation, I see that each raw is read and simulation is performed for 10ns based on its variable values. (As my simulation time is 10 ns in transient simulator). So, I get 5 curves, one for each raw, running from 0 to 10 ns. This is not what I need. I want to fire values of each raw's variables sequencially. Means, simulation should show only 1 curve from 0 to 10 ns and each 2
ns span should be based on one raw's values. What should I do ?
Please let me know if you need any more information to understand the problem.
Thanks,
Viral
Here is the brief description of my design.
I have 5 raws in my "in.dscr" external file with 2 variables in each raw. I have "Transient Simulator" running from 0ns to 10ns. I also have DAC and
PramSweep components to sweep index of the input file. ParamSweep is linked with my Transient Simulator.
Here is the problem.
At the end of the simulation, I see that each raw is read and simulation is performed for 10ns based on its variable values. (As my simulation time is 10 ns in transient simulator). So, I get 5 curves, one for each raw, running from 0 to 10 ns. This is not what I need. I want to fire values of each raw's variables sequencially. Means, simulation should show only 1 curve from 0 to 10 ns and each 2
ns span should be based on one raw's values. What should I do ?
Please let me know if you need any more information to understand the problem.
Thanks,
Viral
The DataAccess component would be setup like this in the schematic window:
DAC1
File="[FileName]"
Type=Generalized Multi-dimensional Data (Generic MDIF)
InterpMode=Linear
InterpDom=Rectangular
ExtrapMode=InterpMode
iVar1="time"
iVal1=time
Then you can use the value of R1 and C1 from the file in components, like:
R=file{DAC1,"R1"} Ohm
C=file{DAC1,"C1"} F
When you simulate this, the time value is passed to the DAC and the corresponding row is looked up based on the current simulation time. The value of R1 and C1 will change vs tim.
-Mats