rudzz34
Newbie level 2
Will the following code infer two DSP48A1 slices? Will they if I use (*Use DSP48*) before the module declaration? If this won't infer DSP48A1 slices, what else would I need to add?
Code:
module tap(
input clk,
input [17:0] xn,
input [35:0] addin,
input [17:0] errmu,
output reg [17:0] xn1,
output reg [35:0] addout
);
always@(posedge clk) begin
xn1 <= xn;
end
always@(posedge clk) begin
addout <= addin + (wght * xn);
end
always@(posedge clk) begin
wght <= wght + (errmu * xn);
end
endmodule