Command Reference 2. FPGA Express Shell Commandsset_module_rmdup_cells _N_A_M_E set_module_rmdup_cells Enables/Disables the remove duplicate cells optimization on a module or list of modules. SYNTAX string set_module_rmdup_cells [_E_n_a_b_l_e | _D_i_s_a_b_l_e | _I_n_h_e_r_i_t | <_d_e_f_a_u_l_t>] _m_o_d_u_l_e-_l_i_s_t string _E_n_a_b_l_e, _D_i_s_a_b_l_e, _I_n_h_e_r_i_t, <_d_e_f_a_u_l_t> list _m_o_d_u_l_e _l_i_s_t ARGUMENTS _o_p_t-_v_a_l_u_e_s _E_n_a_b_l_e, _D_i_s_a_b_l_e, _I_n_h_e_r_i_t, <_d_e_f_a_u_l_t> _m_o_d_u_l_e _l_i_s_t List of modules DESCRIPTION This command is used to enable or disable on a module or list of modules the optimization which removes duplicate cells. The remove _d_u_p_l_i_c_a_t_e _c_e_l_l_s _o_p_t_i_m_i_z_a_t_i_o_n step recognizes duplicate registers and merges them into a single register. A pair of cells are _d_u_p_l_i_c_a_t_e_s if the two cells are of the same type and function (i.e. DFF D-flip-flop) and each of the corresponding inputs to the pair of cells are connected to the identical sets of input nets. If a pair of duplicate cells is identified, one cell is deleted and the output nets of the deleted cell are merged with the corresponding output nets of the remaining cell. If duplicate cells are discovered when optimize_chip is executed, a message will be generated for each cell which has been deleted. Note that this optimization will remove registers from your design which may have undesirable effects (i.e. may cause simulation issues, flip-flops may not be able to be mapped to a pad). The optimization values that can be set on a module are: Enable Enables the optimization in this module and its sub-modules. v3.0 Synopsys Inc. 1988-1998. All rights reserved. 2-1 set_module_rmdup_cel2l.s FPGA Express Shell Commands Command Reference Disable Disable the optimization in this module and its sub-modules. Inherit Inherit the value from the the module's parent. Reset the value to the default value. This will typically be equivalent to setting the value to _I_n_h_e_r_i_t. Setting a value of Enable or Disable on a module not only controls the optimization on the specified module but also defines the default value for all submodules in the hierarchy below this module. Any module which has the value Inherit will inherit its value from the parent module in the hierarchy of the chip. If the parent module's value is Enable or Disable then the module's value will be that of the parent. If the parent module value is Inherit then the value is taken from the parent module's parent. If all of the modules from the specified module to the top module in the chip hierarchy have the value Inherit, then the default value for the chip is used. The default value for the chip is set when the chip is created, see create_chip for more information. This command requires that the current chip is defined, otherwise an error message is reported. Currently the _r_e_m_o_v_e _d_u_p_l_i_c_a_t_e _c_e_l_l_s optimization only considers flip-flop and latch cells in the chip. EXAMPLES fe_shell > current_chip mychip fe_shell > set_module_rmdup_cells Enable top/submod1 SEE ALSO current_chip(2), create_chip(2), optimize_chip(2) 2-2 Synopsys Inc. 1988-1998. All rights reserved. v3.0