Andrew Beckett
Senior Fellow
![* *](https://designers-guide.org/forum/Templates/Forum/default/starsilver.gif) ![* *](https://designers-guide.org/forum/Templates/Forum/default/starsilver.gif) ![* *](https://designers-guide.org/forum/Templates/Forum/default/starsilver.gif) ![* *](https://designers-guide.org/forum/Templates/Forum/default/starsilver.gif) ![* *](https://designers-guide.org/forum/Templates/Forum/default/starsilver.gif)
Offline
![](https://designers-guide.org/forum/avatars/elmerfudd.gif)
Life, don't talk to me about Life...
Posts: 1742
Bracknell, UK
|
If you want to do it directly, you'd have to write a VPI (Verilog Programming Interface) function to do it - i.e. write some C/C++ code and then pass the information to the simulator. I'd be surprised if any mainstream simulators have this as a built-in function.
Alternatively you could use the $readmemh function, but you'll have to convert the data to something suitable.
Or you could do a co-simulation between AMS Designer (Cadence's AMS simulator) and Simulink, say.
Regards,
Andrew.
|