intel / intel/rohd-hcl

`Serializer` computes `count` width 0 when only 1 element in `deserialized`

Open
#166 1 comment 0 reactions 0 assignees View on GitHub
bug good first issue
Dominant language
Dart
Stars
115
Forks
39
Avg merge
1d 13h
Merged PRs (30d)
1

Description

### Describe the bug

If a single element is passed into a `Serializer` (i.e. `deserialized` is a 1D array with 1 element), then the width of `count` is determined to be 0, which then breaks the assignment to the output of the `Counter` since it always has at least 1 bit.

### To Reproduce

Create a `Serializer` with a 1D array with 1 element in it passed in.

### Expected behavior

The `Serializer` should always have 1-bit output on `count` probably, or at least it should build properly and drive outputs in a way that makes sense.

### Actual behavior

> Signal count has the wrong width. Expected 0 but found 1.

### 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.