[benchmark] Now the rst_on_lut benchmark has a comb output driven by rst
This commit is contained in:
parent
314f5395b4
commit
a3d070ac6f
|
@ -4,20 +4,23 @@
|
||||||
////////////////////////////////////////
|
////////////////////////////////////////
|
||||||
`timescale 1ns / 1ps
|
`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 rst;
|
||||||
input wire clk;
|
input wire clk;
|
||||||
input wire a;
|
input wire a;
|
||||||
input wire b;
|
input wire b;
|
||||||
output reg out;
|
output reg q;
|
||||||
|
output wire out;
|
||||||
|
|
||||||
always @(posedge rst or posedge clk) begin
|
always @(posedge rst or posedge clk) begin
|
||||||
if (rst) begin
|
if (rst) begin
|
||||||
out <= 0;
|
q <= 0;
|
||||||
end else begin
|
end else begin
|
||||||
out <= a & b & rst;
|
q <= a;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
assign out = b & ~rst;
|
||||||
|
|
||||||
endmodule
|
endmodule
|
||||||
|
|
Loading…
Reference in New Issue