Machine Learning Hardware Modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

11 lines
338 B

module top #(
parameter DATA_WIDTH = 32,
parameter SUM_WIDTH = 72
) (
input wire signed [DATA_WIDTH-1:0] i_weight,
input wire signed [DATA_WIDTH-1:0] i_activation,
input wire signed [SUM_WIDTH-1:0] i_sum,
output wire signed [SUM_WIDTH-1:0] o_sum
);
assign o_sum = (i_weight * i_activation) + i_sum;
endmodule