diff --git a/openfpga_flow/benchmarks/micro_benchmark/clk_on_lut/clk_on_lut.v b/openfpga_flow/benchmarks/micro_benchmark/clk_on_lut/clk_on_lut.v new file mode 100644 index 000000000..80814e49b --- /dev/null +++ b/openfpga_flow/benchmarks/micro_benchmark/clk_on_lut/clk_on_lut.v @@ -0,0 +1,21 @@ +///////////////////////////////////////// +// Functionality: A register driven by a combinational logic with clk signal +// Author: Xifan Tang +//////////////////////////////////////// +`timescale 1ns / 1ps + +module clk_on_lut(a, b, q, out, clk); + +input wire clk; +input wire a; +input wire b; +output reg q; +output wire out; + +always @(posedge clk) begin + q <= a; +end + +assign out = b & clk; + +endmodule