Skip to content

ODIN mapping to constants directly in the module instantiation crashes when used as array ref inside the module #361

Closed
@jeanlego

Description

@jeanlego

While running a Verilog file through Odin crashes on : line 676 of ast_util.cpp
oassert(bit < var_node->types.number.binary_size);
ODIN mapping to constants directly in the module instantiation crashes

Expected Behaviour

should work since variables work

Current Behaviour

ODIN mapping to constants directly in the module instantiation crashes

Possible Solution

Odin expend constant to a larger bit size and prevents successful mapping (related to prevous issue raised)

Steps to Reproduce

run the verilog file with ./odin -V

v_runGA.v.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueGood issues for new or first-time contributorsOdinOdin II Logic Synthesis Tool: Unsorted itembugIncorrect behaviour

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions