data/full_repos/permissive/159902111/Pipeline Processor/IF_ID.v
1: b'%Error: Cannot find file containing module: Processor,data/full_repos/permissive/159902111\n        ... Looked in:\n             data/full_repos/permissive/159902111/Pipeline/Processor,data/full_repos/permissive/159902111\n             data/full_repos/permissive/159902111/Pipeline/Processor,data/full_repos/permissive/159902111.v\n             data/full_repos/permissive/159902111/Pipeline/Processor,data/full_repos/permissive/159902111.sv\n             Processor,data/full_repos/permissive/159902111\n             Processor,data/full_repos/permissive/159902111.v\n             Processor,data/full_repos/permissive/159902111.sv\n             obj_dir/Processor,data/full_repos/permissive/159902111\n             obj_dir/Processor,data/full_repos/permissive/159902111.v\n             obj_dir/Processor,data/full_repos/permissive/159902111.sv\n%Error: Cannot find file containing module: data/full_repos/permissive/159902111/Pipeline\n%Error: Cannot find file containing module: Processor/IF_ID.v\n%Error: Exiting due to 3 error(s)\n'
module IF_ID(
  input  [31:0] NPC_if_i,
  input  [31:0] Instr_if_i,
  input         clk,
  input         rst_n,
  input         IF_flush,
  input         PC_IFWrite,
  
  output [31:0] NPC_id_o,
  output [31:0] Instr_id_o
  );
  
  reg [31:0] IF_ID_reg[1:0];

  always@(*)
  begin
    
  end
  
  always@(posedge clk or negedge rst_n)
  begin
    if (!rst_n)
      begin
        IF_ID_reg[0] = 32'h0;
        IF_ID_reg[1] = 32'h0;
      end
    if (PC_IFWrite)
      begin
        if (!IF_flush)
          begin
            IF_ID_reg[0] = NPC_if_i;
            IF_ID_reg[1] = Instr_if_i;
          end
        else
          begin
            IF_ID_reg[0] = 32'h0;
            IF_ID_reg[1] = 32'h0;
          end
         $display("IF/ID: NPC_id = %8X, IR_id = %8X", IF_ID_reg[0], IF_ID_reg[1]);
      end
  end
  assign NPC_id_o = IF_ID_reg[0];
  assign Instr_id_o = IF_ID_reg[1];
endmodule
module IF_ID(
  input  [31:0] NPC_if_i,
  input  [31:0] Instr_if_i,
  input         clk,
  input         rst_n,
  input         IF_flush,
  input         PC_IFWrite,
  
  output [31:0] NPC_id_o,
  output [31:0] Instr_id_o
  );

  
  reg [31:0] IF_ID_reg[1:0];

  always@(*)
  begin
    
  end
  
  always@(posedge clk or negedge rst_n)
  begin
    if (!rst_n)
      begin
        IF_ID_reg[0] = 32'h0;
        IF_ID_reg[1] = 32'h0;
      end
    if (PC_IFWrite)
      begin
        if (!IF_flush)
          begin
            IF_ID_reg[0] = NPC_if_i;
            IF_ID_reg[1] = Instr_if_i;
          end
        else
          begin
            IF_ID_reg[0] = 32'h0;
            IF_ID_reg[1] = 32'h0;
          end
         $display("IF/ID: NPC_id = %8X, IR_id = %8X", IF_ID_reg[0], IF_ID_reg[1]);
      end
  end
  assign NPC_id_o = IF_ID_reg[0];
  assign Instr_id_o = IF_ID_reg[1];
endmodule