[test] add a new benchmark to validate clock on LUT
This commit is contained in:
parent
a155ea4b41
commit
38bb5aa906
|
@ -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
|
Loading…
Reference in New Issue