diff --git a/openfpga_flow/benchmarks/micro_benchmark/mac_2/mac_2.v b/openfpga_flow/benchmarks/micro_benchmark/mac_2/mac_2.v new file mode 100644 index 000000000..457a94deb --- /dev/null +++ b/openfpga_flow/benchmarks/micro_benchmark/mac_2/mac_2.v @@ -0,0 +1,22 @@ +//------------------------------------------------------- +// Functionality: A 2-bit multiply-acculumate circuit +// Author: Xifan Tang +//------------------------------------------------------- + +module mac_2(a, b, c, out); +parameter DATA_WIDTH = 2; /* 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 + + + + + + + + + diff --git a/openfpga_flow/benchmarks/micro_benchmark/mac_4/mac_4.v b/openfpga_flow/benchmarks/micro_benchmark/mac_4/mac_4.v new file mode 100644 index 000000000..c07495eb5 --- /dev/null +++ b/openfpga_flow/benchmarks/micro_benchmark/mac_4/mac_4.v @@ -0,0 +1,22 @@ +//------------------------------------------------------- +// Functionality: A 4-bit multiply-acculumate circuit +// Author: Xifan Tang +//------------------------------------------------------- + +module mac_4(a, b, c, out); +parameter DATA_WIDTH = 4; /* 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 + + + + + + + + + diff --git a/openfpga_flow/benchmarks/micro_benchmark/mac_6/mac_6.v b/openfpga_flow/benchmarks/micro_benchmark/mac_6/mac_6.v new file mode 100644 index 000000000..1909c2d30 --- /dev/null +++ b/openfpga_flow/benchmarks/micro_benchmark/mac_6/mac_6.v @@ -0,0 +1,22 @@ +//------------------------------------------------------- +// Functionality: A 6-bit multiply-acculumate circuit +// Author: Xifan Tang +//------------------------------------------------------- + +module mac_6(a, b, c, out); +parameter DATA_WIDTH = 6; /* 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 + + + + + + + + +