mirror of https://github.com/lnis-uofu/SOFA.git
[Benchmark] Add benchmark to test fracturable LUTs
This commit is contained in:
parent
fa9a3bd9f3
commit
6c4c23ee72
|
@ -0,0 +1,4 @@
|
|||
a 0.5 0.5
|
||||
b 0.5 0.5
|
||||
c 0.25 0.25
|
||||
d 0.25 0.25
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue