Thanks to visit codestin.com
Credit goes to github.com

Skip to content

qucsconv not converting multiple subckt spice file #1008

@oxmon-2500

Description

@oxmon-2500

origin: see

Hello,

I am trying to use a TI Current Sense Amp in a qucs circuit. I have
followed the steps to convert the spice files to the qucs circuit file type
however it errors out.

I then attempted to run the command from the command line with:

qucsconv -i INA191_TINA_AIO/INA191A5.lib -o INA191A5.out -if spice -of qucs

And I am met with the error:

line 224: syntax error, unexpected Identifier, expecting ENDS_Action

This happens for all TI Spice files I have attempted to import. I have
verified the Spice files can work with ngspice, they are loaded and
simulated without issue in ngspice. I have also tried a simple single
subckt spice file as a sanity check. This can be converted with qucsconv.

I would appreciate the help. I am using the latest master branch as of
05/30/20
690d2ad

The TI INA191 spice files can be downloaded here:
https://www.ti.com/lit/zip/slym110

I appreciate any and all help.

Best,
Andrew Smith
M.S. Computer Engineering
Passat Research Group
atsmith3@... <atsmith3@...>

It seems that the .PARAM name = value is not known to qucsconv (syntax def. in parse_spice.ypp, parse_spice.lpp) . Also constants like {PWR(0.1u,0.5)/1E11}. I suppose the syntax of spice in qucsconv is outdated.

Workaround:

  • Comment out the .PARAM line and substitute all occurances of name with the value.
  • Replace constants like {PWR(0.1u,0.5)/1E11} with the actual value
    Its imaginable to do a script doing it automatically

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions