Skip to content

Commit 4002cbd

Browse files
committed
replace $PRE and $CLKPRE with nicer names (cf. $DER)
1 parent fc6c659 commit 4002cbd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Compiler/Template/CodegenUtil.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ template crefStrNoUnderscore(ComponentRef cr)
106106
match cr
107107
case CREF_IDENT(__) then '<%ident%><%subscriptsStr(subscriptLst)%>'
108108
case CREF_QUAL(ident = "$DER") then 'der(<%crefStrNoUnderscore(componentRef)%>)'
109+
case CREF_QUAL(ident = "$PRE") then 'pre(<%crefStrNoUnderscore(componentRef)%>)'
110+
case CREF_QUAL(ident = "$CLKPRE") then 'previous(<%crefStrNoUnderscore(componentRef)%>)'
109111
case CREF_QUAL(__) then '<%ident%><%subscriptsStr(subscriptLst)%>.<%crefStrNoUnderscore(componentRef)%>'
110112
else "CREF_NOT_IDENT_OR_QUAL"
111113
end crefStrNoUnderscore;

0 commit comments

Comments
 (0)