data/full_repos/permissive/479997390/src/PipelineRegisters.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/479997390/src/PipelineRegisters.v:28: Multiple top level modules\n                                                                                  : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                                  : ... Top module \'IF_ID\'\nmodule IF_ID (\n       ^~~~~\n                                                                                  : ... Top module \'ID_EX\'\nmodule ID_EX (\n       ^~~~~\n                                                                                  : ... Top module \'EX_MEM\'\nmodule EX_MEM (\n       ^~~~~~\n                                                                                  : ... Top module \'MEM_WB\'\nmodule MEM_WB (\n       ^~~~~~\n%Error: Exiting due to 1 warning(s)\n'
module IF_ID (
  clk,
  WriteEnable,
  Flush, 
  NPCIn, InstrIn, 
  NPCOut, InstrOut
);
  input clk, WriteEnable, Flush;
  input [31:0] NPCIn, InstrIn;
  output reg [31:0] NPCOut, InstrOut;

  always @(posedge clk) begin
    if (Flush) begin
      NPCOut <= 0;
      InstrOut <= 0;
    end else begin
      if (WriteEnable) begin
        NPCOut <= NPCIn;
        InstrOut <= InstrIn;
      end else begin
        NPCOut <= NPCOut;
        InstrOut <= InstrOut;
      end
    end
  end
endmodule
module IF_ID (
  clk,
  WriteEnable,
  Flush, 
  NPCIn, InstrIn, 
  NPCOut, InstrOut
);

  input clk, WriteEnable, Flush;
  input [31:0] NPCIn, InstrIn;
  output reg [31:0] NPCOut, InstrOut;

  always @(posedge clk) begin
    if (Flush) begin
      NPCOut <= 0;
      InstrOut <= 0;
    end else begin
      if (WriteEnable) begin
        NPCOut <= NPCIn;
        InstrOut <= InstrIn;
      end else begin
        NPCOut <= NPCOut;
        InstrOut <= InstrOut;
      end
    end
  end
endmodule