[test] add a new benchmark to validate clock on LUT

This commit is contained in:
tangxifan 2024-07-09 18:42:39 -07:00
parent a155ea4b41
commit 38bb5aa906
1 changed files with 21 additions and 0 deletions

View File

@ -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