add or2 microbenchmark for testing external arch bitstream

This commit is contained in:
tangxifan 2020-07-27 15:59:03 -06:00
parent 4174fbf77d
commit cec6bf0b6f
4 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,3 @@
a 0.5 0.5
b 0.5 0.5
c 0.25 0.75

View File

@ -0,0 +1,8 @@
.model or2
.inputs a b
.outputs c
.names a b c
00 0
.end

View File

@ -0,0 +1,18 @@
/////////////////////////////////////////
// Functionality: 2-input OR
// Author: Xifan Tang
////////////////////////////////////////
`timescale 1ns / 1ps
module or2(
a,
b,
c);
input wire a;
input wire b;
output wire c;
assign c = a | b;
endmodule

View File

@ -25,7 +25,7 @@ openfpga_external_arch_bitstream_file=${PATH:OPENFPGA_PATH}/openfpga_flow/arch_b
arch0=${PATH:OPENFPGA_PATH}/openfpga_flow/vpr_arch/k4_N4_tileable_40nm.xml
[BENCHMARKS]
bench0=${PATH:OPENFPGA_PATH}/openfpga_flow/benchmarks/micro_benchmark/and2/and2.v
bench0=${PATH:OPENFPGA_PATH}/openfpga_flow/benchmarks/micro_benchmark/or2/or2.v
[SYNTHESIS_PARAM]
bench0_top = and2