From be03eafd66910f44e89a12638af7155b17786504 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Tue, 23 Mar 2021 15:33:37 -0600 Subject: [PATCH] [Benchmark] Add a micro benchmark: 8-bit multiply and accumulate --- .../benchmarks/micro_benchmark/mac_8/mac_8.v | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 openfpga_flow/benchmarks/micro_benchmark/mac_8/mac_8.v diff --git a/openfpga_flow/benchmarks/micro_benchmark/mac_8/mac_8.v b/openfpga_flow/benchmarks/micro_benchmark/mac_8/mac_8.v new file mode 100644 index 000000000..8175f6ca6 --- /dev/null +++ b/openfpga_flow/benchmarks/micro_benchmark/mac_8/mac_8.v @@ -0,0 +1,22 @@ +//------------------------------------------------------- +// Functionality: A 8-bit multiply-acculumate circuit +// Author: Xifan Tang +//------------------------------------------------------- + +module mac_8(a, b, c, out); +parameter DATA_WIDTH = 8; /* declare a parameter. default required */ +input [DATA_WIDTH - 1 : 0] a, b, c; +output [DATA_WIDTH - 1 : 0] out; + +assign out = a * b + c; + +endmodule + + + + + + + + +