Ryan R
07/03/2022, 6:19 AMTim Edwards
07/03/2022, 2:32 PMqflow
, there's a script spi2xspice.py
that will convert a SPICE subcircuit with digital standard cells into its equivalent xspice form.
Then the next problem is generating a stimulus for the whole circuit. There is an obscure branch of the ngspice source code that contains an xspice primitive called d_hdl
that can be used to get iverilog to run ngspice as a co-simulator, for which you can have a testbench written in verilog, including the emulation of the SPI flash.
If your analog system can run without needing to run a program on the processor, then you could test it without co-simulation, by applying simple PWL voltage sources to the power supplies and the reset pin. If you need to simulate running a program on the SPI flash, then you would have to do a co-simulation.Ryan R
07/03/2022, 5:21 PMRyan R
07/03/2022, 5:22 PMLinen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.
Powered by