[Tool] Remove register ports for mini local encoders (1-bit data out)

This commit is contained in:
tangxifan 2020-12-06 14:21:54 -07:00
parent 6bdfcb0147
commit cb2bd2e31c
1 changed files with 4 additions and 1 deletions

View File

@ -232,8 +232,11 @@ void build_mux_local_decoder_module(ModuleManager& module_manager,
module_manager.add_port(module_id, data_port, ModuleManager::MODULE_OUTPUT_PORT);
/* Data port is registered. It should be outputted as
* output reg [lsb:msb] data
* Only applicable to data port size > 1
*/
if (1 < data_port.get_width()) {
module_manager.set_port_is_register(module_id, data_port.get_name(), true);
}
/* Add data_in port */
BasicPort data_inv_port(generate_mux_local_decoder_data_inv_port_name(), data_size);
VTR_ASSERT(true == decoder_lib.use_data_inv_port(decoder));