File tree 1 file changed +11
-9
lines changed
1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -202,15 +202,6 @@ public override string TransformText()
202
202
Write ( "\n " ) ;
203
203
}
204
204
205
- if ( Process . Methods != null && Process . Methods . Any ( x => ! ( x . Ignore || x . IsStateMachine ) ) )
206
- {
207
- Write ( " -- Internal methods\n " ) ;
208
- foreach ( var s in Process . Methods . Where ( x => ! ( x . Ignore || x . IsStateMachine ) ) )
209
- foreach ( var line in RSP . Helper . RenderMethod ( s ) )
210
- Write ( $ " { ToStringHelper . ToStringWithCulture ( line ) } \n ") ;
211
- Write ( "\n " ) ;
212
- }
213
-
214
205
if ( Process . IsClocked && RSP . FiniteStateMethod != null )
215
206
{
216
207
Write ( " -- Clock-edge capture signals\n " ) ;
@@ -276,8 +267,19 @@ public override string TransformText()
276
267
}
277
268
Write ( "\n " ) ;
278
269
}
270
+
279
271
if ( ! RSP . Process . IsClocked )
280
272
Write ( " variable reentry_guard: std_logic;\n " ) ;
273
+
274
+ if ( Process . Methods != null && Process . Methods . Any ( x => ! ( x . Ignore || x . IsStateMachine ) ) )
275
+ {
276
+ Write ( " -- Internal methods\n " ) ;
277
+ foreach ( var s in Process . Methods . Where ( x => ! ( x . Ignore || x . IsStateMachine ) ) )
278
+ foreach ( var line in RSP . Helper . RenderMethod ( s ) )
279
+ Write ( $ " { ToStringHelper . ToStringWithCulture ( line ) } \n ") ;
280
+ Write ( "\n " ) ;
281
+ }
282
+
281
283
Write ( @"
282
284
-- #### USER-DATA-NONCLOCKEDVARIABLES-START
283
285
-- #### USER-DATA-NONCLOCKEDVARIABLES-END
You can’t perform that action at this time.
0 commit comments