forked from YosysHQ/yosys
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proc_prune: do not promote partially redundant assignments.
Before this commit, in a process like: process $group_0 assign $o 2'00 attribute \full_case 1 switch \x case 1'1 assign $o [0] 1'1 case assign $o [0] 1'0 end end "assign $o 2'00" would be promoted to "connect $o [1] 1'0". Mixing assign and connect statements to different bits of the same signal results in incorrect codegen from the write_verilog backend. After this commit, "assign $o 2'00" is pruned to "assign $o [1] 1'0" as a workaround. Fixes YosysHQ#2035.
- Loading branch information
Jean-François Nguyen
committed
Nov 28, 2020
1 parent
2116c58
commit a34a308
Showing
1 changed file
with
19 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters