Skip to content

qucs 0.0.21-dev, GateComponent, bad netlist #1112

Description

@GerryHickman

qucs gui has digital components, e.g. logical 'nor' gate
when you add a gate component in the gui, it sets four properties

in=2
V=1
t=0
TR=10

it then sends the first three to qucsator, but qucsator only expects the last three
qucsator gives an error about the unexpected 'in' property
there's also a mixed mode qucs test using a 'nand' gate (same issue)
qucs/tests/mixed.prj/ring.sch

qucs/components/component.cpp

// create the gate component, set four props
GateComponent::GateComponent()
{

// problem here, sends first three props
QString GateComponent::netlist()
{

workaround is to change the property indexes from 0,1,2 to 1, 2, 3
qucsator is now able to simulate the circuit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions