<@U01819B63HP> is there a way to have multiple sch...
# xschem
y
@User is there a way to have multiple schematic views behind a symbol? My specific use case is I've got a VCO circuit and I also have a behavioural model of it to speed up system simulation. Is there a way to set a parameter in the symbol (or config file) to use the behavioural model for netlisting?
s
@yrrapt Yes, you can set 'schematic=vco2.sch' in the 'vco.sym' symbol  global properties to associate 'vco2.sch' to the symbol, instead of the default 'vco.sch'. I have put a video tutorial showing the flow, simulating a simple inverter at switch level and behavioral level using 2 different schematics.
@yrrapt another option is to set 'type=primitive' in the symbol global attributes and ensuring no 'verilog_format' attribute is set. In this case the netlister will simply output the symbol instantiation in parent schematic but will not expand the schematic definition of the symbol. It's up to you to provide or `include some code to define the symbol.
@yrrapt in the future i would like also to allow a 'schematic=xxx.sch' in an instance placement of a symbol. This implies that more instantiations of the same symbol could refer to different schematic implementations. This is a form of symbol overloading and needs some non trivial changes in the netlister code to avoid naming conflicts. But I will be there one day :-)
👍 1
y
Perfect, thank you. I will give it a go, sounds like a couple good options to try