module DWF_dp_mult_comb_ovfldet_test (a, a_tc, b, b_tc, c, z); input [7:0] a, b, c; input a_tc, b_tc; output [7:0] z; reg [7:0] p; reg overflow; // Passes the parameters to the function parameter a_width = 8; parameter b_width = 8; parameter p_width = 8; // add "$SYNOPSYS/dw/sim_ver" to the search path for simulation `include "DW_dp_mult_comb_ovfldet_function.inc" always @* begin DWF_dp_mult_comb_ovfldet (a, a_tc, b, b_tc, p, overflow); end assign z = (overflow == 1'b0) ? p + c : 8'b11111111; endmodule