[benchmark] add a new benchmark to test reset signal to drive both lut and ff
This commit is contained in:
parent
390c0526b5
commit
7a38c7dd18
|
@ -0,0 +1,23 @@
|
|||
/////////////////////////////////////////
|
||||
// Functionality: A register driven by a combinational logic with reset signal
|
||||
// Author: Xifan Tang
|
||||
////////////////////////////////////////
|
||||
`timescale 1ns / 1ps
|
||||
|
||||
module rst_on_lut(a, b, out, clk, rst);
|
||||
|
||||
input wire rst;
|
||||
input wire clk;
|
||||
input wire a;
|
||||
input wire b;
|
||||
output reg out;
|
||||
|
||||
always @(rst or posedge clk) begin
|
||||
if (rst) begin
|
||||
out <= 0;
|
||||
end else begin
|
||||
out <= a & b & rst;
|
||||
end
|
||||
end
|
||||
|
||||
endmodule
|
Loading…
Reference in New Issue