Skip to content

Extracted resistance not scaled #481

@d-m-bailey

Description

@d-m-bailey

@RTimothyEdwards In commit 8c323803b75833500138c5090a10c8d620d10762 of October 7th, this routine was added

void
spcHierWriteValue(
    HierContext *hc,
    Dev *dev)           /* Dev being output */
{
    DevParam *plist;

    plist = efGetDeviceParams(EFDevTypes[dev->dev_type]);
    while (plist != NULL)
    {
	switch (plist->parm_type[0])
	{
	    case 'r':
		if (*(plist->parm_name) == '\0')
		{
		    fprintf(esSpiceF, " ");
		    esSIvalue(esSpiceF, (double)(dev->dev_res));
		}
		break;
	    case 'c':
		if (*(plist->parm_name) == '\0')
		{
		    fprintf(esSpiceF, " ");
		    esSIvalue(esSpiceF, (double)(dev->dev_cap));
		}
		break;
	}
	plist = plist->parm_next;
    }
}

It writes the resistance and capacitance values in SI format.

However, unless I'm mistaken, I think at least the resistance values are in milli-ohms. This converts an ext file line of

device devres $[rmod_rsil] 137436 122700 137437 122701 1100 1500 r=18633 "GND" "a_137436_122700#" 0 0 "VCC" 1500 105000,3140 "a_137436_122630#" 1500 105000,3140

to a spice line of

R1 VCC a_94904_123356# 18.166k $[rmod_rsil] w=7.5u l=5u $SUB=GND

Isn't the spice netlist resistance value 1000x too big?

@H-Ojiro thanks for noticing this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions