Jump to content
Leow Cheah Wei

using SpiceCustom block with hyper spice component

Recommended Posts

i try to use spicecustomblock with spice component in the same file, seems like it is not supported? if it is support how do i do it?

screenshot belows shows i combine two built in examples (DCDCBulkconverter and DC motor model)

 in the same file and try to simulate and i encountered error message further down in another screenshot

image.thumb.png.36e7c73359c7ba31812ec8d314771b5c.png

 

error message

image.thumb.png.1b7033ec4a0a45eae4db148784717817.png

Share this post


Link to post
Share on other sites

Hi Leow,

Yes you found a bug but with a workaround. In Spice the first line MUST be a comment, however here we need to specify the comment when 2 Spice instances are used (one through the custom block, the other through the pallet).

You can double click on the customblock, then double click and edit the netlist of it and simply add a '*' at the first line to force the line to be a comment (see picture below in red)

Then the testcase will run properly.

 

image.png.fb54e614d0e55a06f34cf0afdac058d2.png

 

 

 

Share this post


Link to post
Share on other sites

×
×
  • Create New...