blob: 6557f03e70b61cd50e1edc6f4dcdc442df0bb5cb [file]
`include "../dsp_combinational/dsp_comb.sim.v"
/* DSP Block with register on the output */
module dsp_rego (clk, a, b, m, out);
localparam DATA_WIDTH = 64;
input wire clk;
input wire [DATA_WIDTH/2-1:0] a;
input wire [DATA_WIDTH/2-1:0] b;
input wire m;
output wire [DATA_WIDTH-1:0] out;
wire [DATA_WIDTH-1:0] c_out;
dsp_comb comb (.a(a), .b(b), .m(m), .out(c_out));
reg [DATA_WIDTH-1:0] q_out;
always @(posedge clk) begin
q_out <= c_out;
end
assign out = q_out;
endmodule