-
Notifications
You must be signed in to change notification settings - Fork 895
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/proc: add proc_dff bug 4712 as testcase
- Loading branch information
1 parent
626dbbe
commit c23e64a
Showing
1 changed file
with
31 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
read_rtlil <<EOT | ||
autoidx 1 | ||
module \top | ||
wire input 1 \clk | ||
wire input 2 \rst | ||
|
||
wire input 3 \a_r | ||
wire input 4 \a_n | ||
wire input 5 \b_n | ||
|
||
wire \a | ||
wire \b | ||
|
||
process $proc | ||
sync high \rst | ||
update \a \a_r | ||
update \b \b | ||
sync posedge \clk | ||
update \a \a_n | ||
update \b \b_n | ||
end | ||
end | ||
EOT | ||
|
||
proc_dff | ||
proc_clean | ||
|
||
# Processes should have been converted to one aldff and one dff | ||
select -assert-none p:* | ||
select -assert-count 1 t:$aldff | ||
select -assert-count 1 t:$dff |