From a3d070ac6f3e8433c91ef9b1fcefd47b50ec8b13 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Mon, 12 Sep 2022 10:43:21 -0700 Subject: [PATCH] [benchmark] Now the rst_on_lut benchmark has a comb output driven by rst --- .../micro_benchmark/rst_on_lut/rst_on_lut.v | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/openfpga_flow/benchmarks/micro_benchmark/rst_on_lut/rst_on_lut.v b/openfpga_flow/benchmarks/micro_benchmark/rst_on_lut/rst_on_lut.v index 95fc3d88d..193e02073 100644 --- a/openfpga_flow/benchmarks/micro_benchmark/rst_on_lut/rst_on_lut.v +++ b/openfpga_flow/benchmarks/micro_benchmark/rst_on_lut/rst_on_lut.v @@ -4,20 +4,23 @@ //////////////////////////////////////// `timescale 1ns / 1ps -module rst_on_lut(a, b, out, clk, rst); +module rst_on_lut(a, b, q, out, clk, rst); input wire rst; input wire clk; input wire a; input wire b; -output reg out; +output reg q; +output wire out; always @(posedge rst or posedge clk) begin if (rst) begin - out <= 0; + q <= 0; end else begin - out <= a & b & rst; + q <= a; end end +assign out = b & ~rst; + endmodule