<@U084P37UX3M><@U069XNVQM4H>: Please could you bui...
# qucs-s
t
@andresmmera@Krzysztof Herman: Please could you build as complete as possible example(s) of a qucs-s XML component so that we can develop a complete component XSD.
k
@Thomas Zecha I am back with this task and I would like to clarify some details. So here goes the example:
Copy code
<?xml version="1.0"?>
<Component
  xsi:noNamespaceSchemaLocation="Component.xsd"
  xmlns:xsi="<http://www.w3.org/2001/XMLSchema-instance>"
  library="IHP SG13G2 PDK components" name="rsil" schematic_id = "rsil">
    <Description>
        SG13G2 Salicide resistor
    </Description>
    <Models>
        <DefaultModel value="rsil">
        </DefaultModel>
        <SpiceModel value="rsil">
        </SpiceModel>
    </Models>
    <Netlists>
        <NgspiceNetlist value = 'XR{PartCounter} {nets} rsil w={w} l={l} m={m}'> </NgspiceNetlist>
		<CDLNetlist value = 'R{PartCounter} {nets} rsil w={w} l={l} m={m}'> </CDLNetlist>
    </Netlists>
    <Symbols>
        <Symbol id="Standard">
           <File>{QUCS_S_COMPONENTS_LIBRARY}/Resistor.sym</File>
        </Symbol>
    </Symbols>
    <Parameters>
        <Parameter name="w" unit="um" default_value="0.5" show="true">
            <Description>Width</Description>
        </Parameter>
        <Parameter name="l" unit="um" default_value="0.5" show="true">
            <Description>Length</Description>
        </Parameter>
        <Parameter name="m" unit="" default_value="1" show="true">
            <Description>Multiplier</Description>
        </Parameter>
        <Parameter name="b" unit="" default_value="0" show="true">
            <Description>Number of bends</Description>
        </Parameter>
    </Parameters>
</Component>
1. could it be possible to populate the name of the component
rsil
in the file just not to rewrite it so many times. It appears as devault model. spice model and also in the booth netlists. 2. can the name
library=IHP SG13G2 PDK components
be used to generate the descriptions in the GUI ? 3. In SKY130 and GF180 I saw many components which share the parameters and the symbol geometry. The only thing, which changes is the model name. This is the exact case of the resistors where we have three options:
rsil
,
rppd
,
rhigh
so maybe would be better to generate a resistor symbol with default parameters and select the model at the instance level.
t
@Krzysztof Herman (1) Technically possible via 'ref', but I would not use because it may vary from component to component whether there are names to re-use. (2) Of course, but why not use the <Description> entry for this. (3) Yes, we can out-source what we wan't to be shared by other components via the <File> entry. I'am missing an item which defines the qucs-s component category to which a component shall belong.
k
@Thomas Zecha thank you for the answer. We have had a good discussion on symbols in
xschem
here . I is pretty important to provide good quality symbols at the beginning. Could you please enable this symbol deployment in the components pane ? I would like to generate some more discussions wit the designers using this functionality.