Skip to content

Wide mux cells ($_MUX4_ et al) are incorrectly marked as evaluable #5035

@KrystalDelusion

Description

@KrystalDelusion

Version

0.52

On which OS did this happen?

Linux

Reproduction Steps

Run the below script

read_rtlil << EOF
module \gold

  wire input 1 \A
  wire input 2 \B
  wire input 3 \C
  wire input 4 \D
  wire input 5 \S
  wire input 6 \T
  wire output 7 \Y

  cell $_MUX4_ \UUT
    connect \A \A
    connect \B \B
    connect \C \C
    connect \D \D
    connect \S \S
    connect \T \T
    connect \Y \Y
  end
end
EOF

eval -set-undef -table A,S,T

(This isn't a perfect test, since the eval command doesn't actually check is_evaluable and returns values for non evaluable cells such as $_FF_, but it's a close enough proxy for the purposes of this bug report)

Expected Behavior

Should return a result, as with

read_rtlil << EOF
module \gold

  wire input 1 \A
  wire input 2 \B
  wire input 3 \S
  wire output 4 \Y

  cell $_MUX_ \UUT
    connect \A \A
    connect \B \B
    connect \S \S
    connect \Y \Y
  end
end
EOF

eval -set-undef -table A,S

Actual Behavior

Hangs forever.

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