[FPGA-Verilog] Fixed a bug in naming mismatch
This commit is contained in:
parent
a068237082
commit
fb4106de19
|
@ -153,8 +153,8 @@ void print_verilog_random_testbench_fpga_instance(std::fstream& fp,
|
|||
/* Always use explicit port mapping */
|
||||
print_verilog_testbench_benchmark_instance(fp, std::string(circuit_name + std::string(FORMAL_VERIFICATION_TOP_MODULE_POSTFIX)),
|
||||
std::string(FPGA_INSTANCE_NAME),
|
||||
std::string(FORMAL_VERIFICATION_TOP_MODULE_PORT_POSTFIX),
|
||||
std::string(FORMAL_VERIFICATION_TOP_MODULE_PORT_POSTFIX),
|
||||
std::string(),
|
||||
std::string(),
|
||||
std::vector<std::string>(),
|
||||
std::string(FPGA_PORT_POSTFIX),
|
||||
atom_ctx, netlist_annotation,
|
||||
|
|
|
@ -54,7 +54,9 @@ void print_verilog_testbench_fpga_instance(std::fstream& fp,
|
|||
if (!net_postfix.empty()) {
|
||||
for (const ModulePortId &module_port_id : module_manager.module_ports(top_module)) {
|
||||
BasicPort module_port = module_manager.module_port(top_module, module_port_id);
|
||||
port2port_name_map[module_port.get_name()] = module_port.get_name() + net_postfix;
|
||||
BasicPort net_port = module_port;
|
||||
net_port.set_name(module_port.get_name() + net_postfix);
|
||||
port2port_name_map[module_port.get_name()] = net_port;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue