URL
https://opencores.org/ocsvn/ssbcc/ssbcc/trunk
[/] [ssbcc/] [trunk/] [ssbccPeripheral.py] - Diff between revs 9 and 11
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 9 |
Rev 11 |
Line 112... |
Line 112... |
Note: The '.' must be included in the extension. For example, the UART
|
Note: The '.' must be included in the extension. For example, the UART
|
peripheral uses '_Rx.v' and '_Tx.v' or similar to invoke the UART_Tx
|
peripheral uses '_Rx.v' and '_Tx.v' or similar to invoke the UART_Tx
|
and UART_Rx HDL files.
|
and UART_Rx HDL files.
|
"""
|
"""
|
hdlName = re.sub(r'\.py$',extension,filename);
|
hdlName = re.sub(r'\.py$',extension,filename);
|
fp = open(hdlName,'r');
|
fp = open(hdlName,'rt');
|
body = fp.read();
|
body = fp.read();
|
fp.close();
|
fp.close();
|
return body;
|
return body;
|
|
|
##############################################################################
|
##############################################################################
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.