Line 44... |
Line 44... |
to use the size of the dual port RAM in the micro controller code.\n
|
to use the size of the dual port RAM in the micro controller code.\n
|
ram8
|
ram8
|
optionally specifies using an 8-bit RAM for the dual-port memory instantiation
|
optionally specifies using an 8-bit RAM for the dual-port memory instantiation
|
Note: This is the default
|
Note: This is the default
|
ram32
|
ram32
|
optionally specifies using a 32-bit RAM for the dual-port memrory instantiation
|
optionally specifies using a 32-bit RAM for the dual-port memory instantiation
|
Note: This is required for Vivado 2013.3.\n
|
Note: This is required for Vivado 2013.3.\n
|
Vivado Users:
|
Vivado Users:
|
The peripheral creates a TCL script to facilitate turning the micro
|
The peripheral creates a TCL script to facilitate turning the micro
|
controller into an IP core. Look for a file with the name
|
controller into an IP core. Look for a file with the name
|
"vivado_<basePortName>.tcl".\n
|
"vivado_<basePortName>.tcl".\n
|
Line 105... |
Line 105... |
ix = [param[0] for param in config.parameters].index(x);
|
ix = [param[0] for param in config.parameters].index(x);
|
y = config.parameters[ix][1];
|
y = config.parameters[ix][1];
|
if not re.match(r'[1-9]\d*$', y):
|
if not re.match(r'[1-9]\d*$', y):
|
raise SSBCCException('localparam must be a numeric constant, not "%s", to be used in "size=%s" at %s' % (y,x,loc,));
|
raise SSBCCException('localparam must be a numeric constant, not "%s", to be used in "size=%s" at %s' % (y,x,loc,));
|
y = int(y);
|
y = int(y);
|
|
elif re.match(r'C_\w+$',x):
|
|
if not config.IsConstant(x):
|
|
raise SSBCCException('"size=%s" is not a constant at %s' % (x,loc,));
|
|
y = int(config.constants[x]);
|
elif re.match(r'[1-9]\d*$',x):
|
elif re.match(r'[1-9]\d*$',x):
|
y = int(x);
|
y = int(x);
|
else:
|
else:
|
raise SSBCCException('Malformed entry for "size=%s" at %s' % (x,loc,));
|
raise SSBCCException('Malformed entry for "size=%s" at %s' % (x,loc,));
|
if math.modf(math.log(y,2))[0] != 0:
|
if math.modf(math.log(y,2))[0] != 0:
|