Skip to content

Indefinite parsing and type-checking loops for some parameterized procs #1615

Closed
@lpawelcz

Description

@lpawelcz

Describe the bug
While working on #1613, we encountered an issue linked to afc720d, which appears to cause indefinite parsing and type-checking loops for certain files, such as mem_writer.x (provided in this PR).

To Reproduce
Steps to reproduce the behavior:

  1. Checkout on the branch from Add procs for interfacing with AXI peripherals in ZSTD Decoder #1613
  2. Execute the command bazel build -c opt //xls/modules/zstd/memory:mem_writer_verilog
  3. Observe indefinite loop in parsing and type-checking mem_writer DSLX files:
    Converting DSLX file to XLS IR: xls/modules/zstd/memory/mem_writer.x; 48s remote-cache, processwrapper-sandbox
    Parsing and type checking DSLX source files of target mem_writer_dslx; 48s remote-cache, processwrapper-sandbox
  1. Cancel bazel build
  2. Revert afc720d
  3. Repeat the bazel build command: bazel build -c opt //xls/modules/zstd/memory:mem_writer_verilog
  4. Observe correct IR and verilog generation for the MemWriter proc.

Expected behavior
Toolchain should be able to generate IR for the provided MemWriter proc .

Additional context
This is a blocker for #1613 and as a consequence also for #1211.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions