intel / rohd

The Rapid Open Hardware Development (ROHD) framework is a framework for describing and verifying hardware in the Dart programming language.
https://intel.github.io/rohd-website
BSD 3-Clause "New" or "Revised" License
370 stars 65 forks source link

Make full array assignments compressed to 1 line (or in-lined) in generated SystemVerilog #482

Closed mkorbel1 closed 2 months ago

mkorbel1 commented 4 months ago

Motivation

For compatibility purposes, ROHD currently does per-element assignments between arrays. A common case of assignment between two entire arrays of the same dimensions makes many more lines than is necessary. This makes the generated SV more verbose than it needs to be.

Desired solution

Intelligently compress assignments between arrays with the same dimensions to a single-line assignment.

Alternatives considered

No response

Additional details

This is not a functional change, just makes the generated SV nicer.

mkorbel1 commented 2 months ago

Closed by #487