Add bus_clk/bus_rst_n ports to widget (rather than (only) reg_clk)

This commit is contained in:
Dennis Potter 2021-06-25 11:50:06 +02:00
parent 6565c33445
commit baf08d2343
Signed by: Dennis
GPG Key ID: 186A8AD440942BAF
3 changed files with 8 additions and 3 deletions

View File

@ -1,7 +1,8 @@
module amba3ahblite_widget
(
// Register clock
input reg_clk,
input bus_clk,
input bus_rst_n,
// Outputs to internal logic
output [31:0] addr,

View File

@ -6,8 +6,9 @@ module_instantiation:
****************************/
amba3ahblite_widget
amba3ahblite_widget_inst
(// Register clock
.reg_clk,
(// Clocks & Resets
.bus_clk,
.bus_rst_n,
// Outputs to internal logic
.addr,

View File

@ -85,4 +85,7 @@ if __name__ == "__main__":
with open(out_widget_file, 'w') as file:
file.write(widget_rtl)
logger.info("Selected, implemented, and copied '{}' widget".format(config['bus']))
# Print elapsed time
logger.info("Elapsed time: %f seconds", time.time() - start)