intel / intel/rohd

Attaching a packed array port to an unpacked array port of a submodule generates bad SV

Open
#549 0 comments 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
Dart
Stars
489
Forks
88
Avg merge
3d 23h
Merged PRs (30d)
10

Description

### Describe the bug

The generated SV for assigning an unpacked array port to a packed array port in the parent module causes a direct connection. For example:

```SystemVerilog
module top(
input logic [2:0][3:0] a
);

// this is not ok, can't assign unpacked port to a packed port
submod sub(.a(a));

endmodule : top

module submod(
input logic [3:0] a [2:0]
);

endmodule : submod
```

### To Reproduce

Construct a hierarchy like described above

### Expected behavior

_No response_

### Actual behavior

_No response_

### Additional: Dart SDK info

_No response_

### Additional: pubspec.yaml

```yaml

```

### Additional: Context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.