diff options
| author | Jack Koenig | 2022-04-21 20:20:47 -0700 |
|---|---|---|
| committer | GitHub | 2022-04-21 20:20:47 -0700 |
| commit | 5093da03083a37a0a7bdaf44f9867d7f7a0a5980 (patch) | |
| tree | 25e3d723a95cac8a6cb109e14a28e3df039d467e /scripts | |
| parent | 410f030dc98177ffe54632c1e25fca873b7b1faf (diff) | |
Fix optimization of register with reset but invalid connection (#2520)
Fixes #2516
Previously,
reg r : UInt<8>, clock with :
reset => (p, UInt<8>(3))
r is invalid
would compile to:
reg r : UInt<8>, clock
r <= UInt<8>(0)
now it compiles to:
reg r : UInt<8>, clock
wire r_1 : UInt<8>
r_1 is invalid
r <= mux(reset, UInt<8>(3), r_1)
This is consistent with the behavior for a reset with an asynchronous
reset.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
