data/full_repos/permissive/137416811/openfpga_flow/benchmarks/micro_benchmark/clk_gate/clk_gate.v
data/verilator_xmls/856b7863-483d-4543-8c8a-e012ee750b5f.xml
module clk_gate(
  rst_i,
  clk_i,
  data_i,
  data_o);
input wire rst_i;
input wire clk_i;
input wire data_i;
output wire data_o;
reg q;

always @(posedge clk_i) begin
  if (rst_i) begin
    q <= 0;
  end else begin
    q <= 1;
  end
end
assign data_o = data_i & q;

endmodule
module clk_gate(
  rst_i,
  clk_i,
  data_i,
  data_o);

input wire rst_i;
input wire clk_i;
input wire data_i;
output wire data_o;
reg q;

always @(posedge clk_i) begin
  if (rst_i) begin
    q <= 0;
  end else begin
    q <= 1;
  end
end
assign data_o = data_i & q;

endmodule