File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -315,20 +315,18 @@ def add_object(self, obj):
315
315
if isinstance (obj , vtypes .AnyType ):
316
316
self .io_variable [obj .name ] = obj
317
317
self .variable [obj .name ] = obj
318
+ self .global_constant [obj .name ] = obj
319
+ self .local_constant [obj .name ] = obj
318
320
return
319
321
320
322
if isinstance (obj , (vtypes .Input , vtypes .Output , vtypes .Inout )):
321
323
self .io_variable [obj .name ] = obj
322
- ## no return here
323
- return ###
324
+ return
324
325
325
326
if isinstance (obj , (vtypes .Reg , vtypes .Wire )):
326
327
self .variable [obj .name ] = obj
327
328
return
328
329
329
- if isinstance (obj , (vtypes .Input , vtypes .Output , vtypes .Inout )):
330
- return
331
-
332
330
if isinstance (obj , (vtypes .Integer , vtypes .Real , vtypes .Genvar )):
333
331
self .variable [obj .name ] = obj
334
332
return
You can’t perform that action at this time.
0 commit comments