[benchmark] add a new benchmark test the mapping of LUT + adder pairs

This commit is contained in:
tangxifan 2022-09-21 15:47:04 -07:00
parent 1354a4bfa8
commit 7a867385d2
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,21 @@
# An artificial benchmark created to test the mapping of LUT + adder pairs
.model wire_adder
.inputs a
.outputs b
.names $false
.names $true
1
.name a a_inv
0 1
.subckt adder a=$true b=$false cout=a_cout
.subckt adder a=a_inv b=$true sumout=b
.end
.model adder a b cin cout sumout
.blackbox
.end

View File

@ -0,0 +1,14 @@
/////////////////////////////////////////
// Functionality: A wire but implemented by an adder
// Author: Xifan Tang
////////////////////////////////////////
`timescale 1ns / 1ps
module wire_adder(a, b);
input wire a;
output wire b;
assign b = a;
endmodule