data/full_repos/permissive/136584400/digital_logic_labs/lab04/1/sources/divider.v
[Errno 2] No such file or directory: 'preprocess.output'
data/verilator_xmls/a730f58a-c0c3-4efc-bb0b-94b1cbafc39b.xml
module divider(clk, clk_N);
  input clk;
  output reg clk_N;
  parameter N = 100_000_000;
  reg [31:0] counter;

  initial
  begin
    counter = 0;
    clk_N = 0;
  end
  always @(posedge clk)
  begin
    counter <= counter + 1;
    if (counter > N / 2)
      begin
        clk_N <= ~clk_N;
        counter <= 0;
      end
  end
endmodule
module divider(clk, clk_N);

  input clk;
  output reg clk_N;
  parameter N = 100_000_000;
  reg [31:0] counter;

  initial
  begin
    counter = 0;
    clk_N = 0;
  end
  always @(posedge clk)
  begin
    counter <= counter + 1;
    if (counter > N / 2)
      begin
        clk_N <= ~clk_N;
        counter <= 0;
      end
  end
endmodule