intel / intel/rohd

Waveform shows 'x' when driving signal with 'z'

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

Description

### Describe the bug

RTL Output correctly shows z's being assigned, but waveform shows X's. Seems like waveform only shows z's when a signal not driven.

```
// combinational
always_comb begin
unique case (currentState)
2'h0 : begin
len = len_f;
dstAddr = dstAddr_f;
srcAddr = srcAddr_f;
mem_req_valid = 1'h0;
mem_req_is_read = 1'h0;
mem_req_data = 32'bzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz;
```

### To Reproduce

Drive signal to 'z inside action argument of the FiniteStateMachine class.

e.g.
` io.mem.req.data < Const(LogicValue.z, width: 32),
`
### Expected behavior

Waveform to show Zs

### Actual behavior

Shows x's

![Image](https://github.com/user-attachments/assets/cd1bef1b-f807-4b61-8df9-57dfc09fdb94)

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