Skip to content

Commit d6ab3c9

Browse files
committed
ExtRAM class is introduced to utilize an external SRAM. Signal types of itype and otype are now customizable. The use of connect_ports method replaced with dedicated signal-name pairs.
1 parent 8ba1d2e commit d6ab3c9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

veriloggen/types/util.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def swap_type(cls):
1717
return cls._O, cls._I
1818

1919

20-
def make_port(m, _type, *args, **kwargs):
20+
def make_port(m, _type, name, *args, **kwargs):
2121
if 'no_reg' in kwargs and kwargs['no_reg']:
2222
_type = _type.replace('Reg', '')
2323
if len(_type) == 0:
@@ -29,6 +29,9 @@ def make_port(m, _type, *args, **kwargs):
2929
if 'initval' in kwargs and 'Reg' not in _type:
3030
del kwargs['initval']
3131

32+
if 'Tmp' not in _type:
33+
args = [name] + list(args)
34+
3235
return getattr(m, _type)(*args, **kwargs)
3336

3437

0 commit comments

Comments
 (0)