Merge pull request #179 from lnis-uofu/unused_gpout_patch

Avoid to output initial signal for general-purpose output ports of FPGA fabrics in Verilog testbenches
This commit is contained in:
ganeshgore 2021-01-23 18:27:54 -07:00 committed by GitHub
commit d502410b40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -273,6 +273,11 @@ void print_verilog_testbench_connect_fpga_ios(std::fstream& fp,
continue;
}
/* Bypass unused output pads */
if (ModuleManager::MODULE_GPOUT_PORT == module_manager.port_type(top_module, module_io_port_id)) {
continue;
}
/* Wire to a contant */
BasicPort module_unused_io_port = module_manager.module_port(top_module, module_io_port_id);
/* Set the port pin index */