[benchmark] add a new benchmark test the mapping of LUT + adder pairs
This commit is contained in:
parent
1354a4bfa8
commit
7a867385d2
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue