From 6c4c23ee72112135a7d702f12286eee3c4722b4a Mon Sep 17 00:00:00 2001 From: tangxifan Date: Sun, 22 Nov 2020 13:33:09 -0700 Subject: [PATCH] [Benchmark] Add benchmark to test fracturable LUTs --- BENCHMARK/and2_or2/and2_or2.act | 4 ++++ BENCHMARK/and2_or2/and2_or2.blif | 11 +++++++++++ BENCHMARK/and2_or2/and2_or2.v | 22 ++++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 BENCHMARK/and2_or2/and2_or2.act create mode 100644 BENCHMARK/and2_or2/and2_or2.blif create mode 100644 BENCHMARK/and2_or2/and2_or2.v diff --git a/BENCHMARK/and2_or2/and2_or2.act b/BENCHMARK/and2_or2/and2_or2.act new file mode 100644 index 0000000..33c156f --- /dev/null +++ b/BENCHMARK/and2_or2/and2_or2.act @@ -0,0 +1,4 @@ +a 0.5 0.5 +b 0.5 0.5 +c 0.25 0.25 +d 0.25 0.25 diff --git a/BENCHMARK/and2_or2/and2_or2.blif b/BENCHMARK/and2_or2/and2_or2.blif new file mode 100644 index 0000000..14a8bc6 --- /dev/null +++ b/BENCHMARK/and2_or2/and2_or2.blif @@ -0,0 +1,11 @@ +.model and2_or2 +.inputs a b +.outputs c d + +.names a b c +11 1 + +.names a b d +00 0 + +.end diff --git a/BENCHMARK/and2_or2/and2_or2.v b/BENCHMARK/and2_or2/and2_or2.v new file mode 100644 index 0000000..b57cdef --- /dev/null +++ b/BENCHMARK/and2_or2/and2_or2.v @@ -0,0 +1,22 @@ +///////////////////////////////////////// +// Functionality: 2-input AND + 2-input OR +// This benchmark is designed to test fracturable LUTs +// Author: Xifan Tang +//////////////////////////////////////// +`timescale 1ns / 1ps + +module and2_or2( + a, + b, + c, + d); + +input wire a; +input wire b; +output wire c; +output wire d; + +assign c = a & b; +assign d = a | b; + +endmodule