data/full_repos/permissive/453763315/pc.v
1: b'%Error: data/full_repos/permissive/453763315/pc.v:1: Cannot find include file: rom.sv\n`include "rom.sv" \n         ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/453763315,data/full_repos/permissive/453763315/rom.sv\n             data/full_repos/permissive/453763315,data/full_repos/permissive/453763315/rom.sv.v\n             data/full_repos/permissive/453763315,data/full_repos/permissive/453763315/rom.sv.sv\n             rom.sv\n             rom.sv.v\n             rom.sv.sv\n             obj_dir/rom.sv\n             obj_dir/rom.sv.v\n             obj_dir/rom.sv.sv\n%Error: Exiting due to 1 error(s)\n'
module pc(clk, branch, mar, en, ir, pc);
  reg [15:0] romaddr;
  reg [7:0] romread;
  rom progmem(.en(en), .addr(romaddr), .read(romread));

  input clk, branch, en;
  input reg [15:0] mar;
  output reg [15:0] pc;
  output reg [31:0] ir;

  always @ (posedge clk or negedge clk) begin
    if (en) begin
      romaddr <= pc;
      ir <= romread;
      if (branch) pc++; else pc <= mar;
    end
  end

endmodule
module pc(clk, branch, mar, en, ir, pc);

  reg [15:0] romaddr;
  reg [7:0] romread;
  rom progmem(.en(en), .addr(romaddr), .read(romread));

  input clk, branch, en;
  input reg [15:0] mar;
  output reg [15:0] pc;
  output reg [31:0] ir;

  always @ (posedge clk or negedge clk) begin
    if (en) begin
      romaddr <= pc;
      ir <= romread;
      if (branch) pc++; else pc <= mar;
    end
  end

endmodule