data/full_repos/permissive/211235278/09. Simple DMA CPU/external_device.v
1: b'%Error: Cannot find file containing module: Simple\n        ... Looked in:\n             data/full_repos/permissive/211235278/09./Simple\n             data/full_repos/permissive/211235278/09./Simple.v\n             data/full_repos/permissive/211235278/09./Simple.sv\n             Simple\n             Simple.v\n             Simple.sv\n             obj_dir/Simple\n             obj_dir/Simple.v\n             obj_dir/Simple.sv\n%Error: Cannot find file containing module: DMA\n%Error: Cannot find file containing module: CPU,data/full_repos/permissive/211235278\n%Error: Cannot find file containing module: data/full_repos/permissive/211235278/09.\n%Error: Cannot find file containing module: CPU/external_device.v\n%Error: Exiting due to 5 error(s)\n'
module external_device(
    input wire [`DEVICE_BIT_LEN - 1 :0] offset,
    output reg interrupt, 
    output reg [4 * `WORD_SIZE - 1 : 0] data);

    reg [4 * `WORD_SIZE - 1 : 0] storage [`DATA_SIZE - 1 : 0];

    initial begin

       storage[0] <= $random;
       storage[1] <= $random;
       storage[2] <= $random;
       interrupt <= 0;


       #(`FIRE_TIME);
       interrupt <=  1;

       #(`INTTERRUPT_DURATION);
       interrupt <=  0;


      storage[0] <= $random;
      storage[1] <= $random;
      storage[2] <= $random;


      #(`FIRE_TIME);
      interrupt <=  1;

      #(`INTTERRUPT_DURATION);
      interrupt <=  0;
      

  end


  always @(offset) begin
      if (offset < 3) data <= storage[offset];
      else data <= 16'hzzzz;
  end        
endmodule
module external_device(
    input wire [`DEVICE_BIT_LEN - 1 :0] offset,
    output reg interrupt, 
    output reg [4 * `WORD_SIZE - 1 : 0] data);


    reg [4 * `WORD_SIZE - 1 : 0] storage [`DATA_SIZE - 1 : 0];

    initial begin

       storage[0] <= $random;
       storage[1] <= $random;
       storage[2] <= $random;
       interrupt <= 0;


       #(`FIRE_TIME);
       interrupt <=  1;

       #(`INTTERRUPT_DURATION);
       interrupt <=  0;


      storage[0] <= $random;
      storage[1] <= $random;
      storage[2] <= $random;


      #(`FIRE_TIME);
      interrupt <=  1;

      #(`INTTERRUPT_DURATION);
      interrupt <=  0;
      

  end


  always @(offset) begin
      if (offset < 3) data <= storage[offset];
      else data <= 16'hzzzz;
  end        
endmodule