From 6521aa2e7ace408856c34672a95aec144c6bc4bf Mon Sep 17 00:00:00 2001 From: tangxifan Date: Sun, 10 Jan 2021 10:27:59 -0700 Subject: [PATCH] [Benchmark] Bug fix in pipelined and2 benchmark --- .../and2_pipelined/and2_pipelined.act | 14 ++++++++------ .../and2_pipelined/and2_pipelined.blif | 14 +++++++++----- .../and2_pipelined/and2_pipelined.v | 2 +- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/openfpga_flow/benchmarks/micro_benchmark/and2_pipelined/and2_pipelined.act b/openfpga_flow/benchmarks/micro_benchmark/and2_pipelined/and2_pipelined.act index 0ad750fd3..8f1ec666a 100644 --- a/openfpga_flow/benchmarks/micro_benchmark/and2_pipelined/and2_pipelined.act +++ b/openfpga_flow/benchmarks/micro_benchmark/and2_pipelined/and2_pipelined.act @@ -1,7 +1,9 @@ -a 0.5 0.2 -b 0.5 0.2 -c 0.25 0.1 -a_reg 0.5 0.2 -b_reg 0.5 0.2 -c_reg 0.25 0.1 clk 0.500000 2.000000 +a 0.502000 0.197200 +b 0.485400 0.202800 +c 0.248000 0.176800 +a_reg 0.502000 0.197200 +b_reg 0.485400 0.202800 +n10 0.248000 0.043259 +n13 0.502000 0.098994 +n17 0.485400 0.098439 diff --git a/openfpga_flow/benchmarks/micro_benchmark/and2_pipelined/and2_pipelined.blif b/openfpga_flow/benchmarks/micro_benchmark/and2_pipelined/and2_pipelined.blif index 69b692690..19207fd81 100644 --- a/openfpga_flow/benchmarks/micro_benchmark/and2_pipelined/and2_pipelined.blif +++ b/openfpga_flow/benchmarks/micro_benchmark/and2_pipelined/and2_pipelined.blif @@ -1,12 +1,16 @@ +# Benchmark "and2_pipelined" written by ABC on Sun Jan 10 10:26:01 2021 .model and2_pipelined .inputs clk a b .outputs c -.latch a a_reg re clk 0 -.latch b b_reg re clk 0 -.latch c_reg c re clk 0 +.latch n10 c 2 +.latch n13 a_reg 2 +.latch n17 b_reg 2 -.names a_reg b_reg c_reg +.names a_reg b_reg n10 11 1 - +.names a n13 +1 1 +.names b n17 +1 1 .end diff --git a/openfpga_flow/benchmarks/micro_benchmark/and2_pipelined/and2_pipelined.v b/openfpga_flow/benchmarks/micro_benchmark/and2_pipelined/and2_pipelined.v index f5bd79035..1efccbba0 100644 --- a/openfpga_flow/benchmarks/micro_benchmark/and2_pipelined/and2_pipelined.v +++ b/openfpga_flow/benchmarks/micro_benchmark/and2_pipelined/and2_pipelined.v @@ -22,7 +22,7 @@ reg c_reg; always @(posedge clk) begin a_reg <= a; - b_reg <= a; + b_reg <= b; end always @(posedge clk) begin