mirror of
https://github.com/Silicon1602/srdl2sv.git
synced 2024-11-13 02:53:37 +00:00
Give more consistent names to modules and packages
This commit is contained in:
parent
5e4a954a0c
commit
8881821252
@ -134,7 +134,7 @@ class AddrMap(Component):
|
||||
# b2w and w2b defines.
|
||||
import_package_list = [
|
||||
AddrMap.templ_dict['import_package']['rtl'].format(
|
||||
name = 'srdl2sv_widget'),
|
||||
name = 'srdl2sv_if'),
|
||||
'\n'
|
||||
]
|
||||
|
||||
@ -236,7 +236,7 @@ class AddrMap(Component):
|
||||
|
||||
def __get_widget_ports_rtl(self):
|
||||
self.widget_templ_dict = yaml.load(
|
||||
pkg_resources.read_text(widgets, '{}.yaml'.format(self.config['bus'])),
|
||||
pkg_resources.read_text(widgets, 'srdl2sv_{}.yaml'.format(self.config['bus'])),
|
||||
Loader=yaml.FullLoader)
|
||||
|
||||
return self.process_yaml(
|
||||
|
@ -23,8 +23,8 @@
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
module amba3ahblite_widget
|
||||
import srdl2sv_widget_pkg::*;
|
||||
module srdl2sv_amba3ahblite
|
||||
import srdl2sv_if_pkg::*;
|
||||
#(
|
||||
parameter FLOP_IN = 0, // Set to '1' to flop input from the AHB bus. This is meant
|
||||
// to help meet timing. Don't use this to synchronize the input.
|
@ -15,8 +15,8 @@ module_instantiation:
|
||||
* (not the registers). The deassertion of this
|
||||
* reset shall be synchronized to bus_clk
|
||||
*******************************************************************/
|
||||
amba3ahblite_widget
|
||||
amba3ahblite_widget_inst
|
||||
srdl2sv_amba3ahblite
|
||||
srdl2sv_amba3ahblite_inst
|
||||
(// Register clock
|
||||
.reg_clk,
|
||||
|
@ -1,4 +1,4 @@
|
||||
package srdl2sv_widget_pkg;
|
||||
package srdl2sv_if_pkg;
|
||||
|
||||
typedef struct {
|
||||
logic [31:0] addr;
|
@ -79,24 +79,24 @@ if __name__ == "__main__":
|
||||
print(value, file=file)
|
||||
|
||||
# Copy over widget RTL from widget directory
|
||||
widget_rtl = pkg_resources.read_text(widgets, '{}.sv'.format(config['bus']))
|
||||
widget_rtl = pkg_resources.read_text(widgets, 'srdl2sv_{}.sv'.format(config['bus']))
|
||||
|
||||
out_widget_file = "{}/{}.sv".format(config['output_dir'], config['bus'])
|
||||
out_widget_file = "{}/srdl2sv_{}.sv".format(config['output_dir'], config['bus'])
|
||||
|
||||
with open(out_widget_file, 'w') as file:
|
||||
print(widget_rtl, file=file)
|
||||
|
||||
logger.info("Selected, implemented, and copied '{}' widget".format(config['bus']))
|
||||
|
||||
# Copy over generic srdl2sv_widget_pkg
|
||||
widget_if_rtl = pkg_resources.read_text(widgets, 'srdl2sv_widget_pkg.sv')
|
||||
# Copy over generic srdl2sv_interface_pkg
|
||||
widget_if_rtl = pkg_resources.read_text(widgets, 'srdl2sv_if_pkg.sv')
|
||||
|
||||
out_widget_if_file = "{}/srdl2sv_widget_pkg.sv".format(config['output_dir'])
|
||||
out_if_file = "{}/srdl2sv_if_pkg.sv".format(config['output_dir'])
|
||||
|
||||
with open(out_widget_if_file, 'w') as file:
|
||||
with open(out_if_file, 'w') as file:
|
||||
print(widget_if_rtl,file=file)
|
||||
|
||||
logger.info("Copied 'srdl2sv_widget_pkg.sv")
|
||||
logger.info("Copied 'srdl2sv_if_pkg.sv")
|
||||
|
||||
# Print elapsed time
|
||||
logger.info("Elapsed time: %f seconds", time.time() - start)
|
||||
|
Loading…
Reference in New Issue
Block a user