data/full_repos/permissive/160510184/DataMemory.v
 line:38: before: "("
1: b'%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:24: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n        memBank[addr]   =  data[63:56]; \n               ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:25: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n        memBank[addr+1] =  data[55:48];\n               ^\n%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:26: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n        memBank[addr+2] =  data[47:40];\n               ^\n%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:27: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n        memBank[addr+3] =  data[39:32];\n               ^\n%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:28: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n        memBank[addr+4] =  data[31:24];\n               ^\n%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:29: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n        memBank[addr+5] =  data[23:16];\n               ^\n%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:30: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n        memBank[addr+6] =  data[15:8];\n               ^\n%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:31: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n        memBank[addr+7] =  data[7:0];\n               ^\n%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:50: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n            ReadData[63:56]    = memBank[Address];\n                                        ^\n%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:51: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n            ReadData[55:48]    = memBank[Address+1];\n                                        ^\n%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:52: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n            ReadData[47:40]    = memBank[Address+2];\n                                        ^\n%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:53: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n            ReadData[39:32]    = memBank[Address+3];\n                                        ^\n%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:54: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n            ReadData[31:24]    = memBank[Address+4];\n                                        ^\n%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:55: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n            ReadData[23:16]    = memBank[Address+5];\n                                        ^\n%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:56: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n            ReadData[15:8]     = memBank[Address+6];\n                                        ^\n%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:57: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n            ReadData[7:0]      = memBank[Address+7];\n                                        ^\n%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:66: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n            memBank[Address]   = WriteData[63:56];\n                   ^\n%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:67: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n            memBank[Address+1] = WriteData[55:48];\n                   ^\n%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:68: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n            memBank[Address+2] = WriteData[47:40];\n                   ^\n%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:69: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n            memBank[Address+3] = WriteData[39:32];\n                   ^\n%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:70: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n            memBank[Address+4]= WriteData[31:24];\n                   ^\n%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:71: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n            memBank[Address+5] = WriteData[23:16];\n                   ^\n%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:72: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n            memBank[Address+6] = WriteData[15:8];\n                   ^\n%Warning-WIDTH: data/full_repos/permissive/160510184/DataMemory.v:73: Bit extraction of array[1023:0] requires 10 bit index, not 64 bits.\n                                                                    : ... In instance DataMemory\n            memBank[Address+7] = WriteData[7:0];\n                   ^\n%Error: Exiting due to 24 warning(s)\n'
module DataMemory(ReadData , Address , WriteData , MemoryRead , MemoryWrite , Clk);
   input [63:0] WriteData;
   input [63:0] Address;

   input MemoryRead, MemoryWrite;
   input Clk;

   output reg [63:0] ReadData;
          reg [7:0]  memBank[1023:0];   



   task init;                           
      input [63:0] addr;
      input [63:0] data;

    begin
        memBank[addr]   =  data[63:56]; 
        memBank[addr+1] =  data[55:48];
        memBank[addr+2] =  data[47:40];
        memBank[addr+3] =  data[39:32];
        memBank[addr+4] =  data[31:24];
        memBank[addr+5] =  data[23:16];
        memBank[addr+6] =  data[15:8];
        memBank[addr+7] =  data[7:0];
    end
    endtask

initial
     begin

	init( 64'h0,  64'h1);
	init( 64'h8,  64'ha);
	init( 64'h10, 64'h5);
	init( 64'h18, 64'h0ffbea7deadbeeff);
	init( 64'h20, 64'h0);
     end


   always @(posedge Clk)
     begin
	if(MemoryRead)
	    begin
            ReadData[63:56]    = memBank[Address];
            ReadData[55:48]    = memBank[Address+1];
            ReadData[47:40]    = memBank[Address+2];
            ReadData[39:32]    = memBank[Address+3];
            ReadData[31:24]    = memBank[Address+4];
            ReadData[23:16]    = memBank[Address+5];
            ReadData[15:8]     = memBank[Address+6];
            ReadData[7:0]      = memBank[Address+7];
	    end
    end


   always @(posedge Clk)
     begin
	if(MemoryWrite)
	    begin
            memBank[Address]   = WriteData[63:56];
            memBank[Address+1] = WriteData[55:48];
            memBank[Address+2] = WriteData[47:40];
            memBank[Address+3] = WriteData[39:32];
            memBank[Address+4]= WriteData[31:24];
            memBank[Address+5] = WriteData[23:16];
            memBank[Address+6] = WriteData[15:8];
            memBank[Address+7] = WriteData[7:0];
	    end
    end
endmodule
module DataMemory(ReadData , Address , WriteData , MemoryRead , MemoryWrite , Clk);

   input [63:0] WriteData;
   input [63:0] Address;

   input MemoryRead, MemoryWrite;
   input Clk;

   output reg [63:0] ReadData;
          reg [7:0]  memBank[1023:0];   



   task init;                           
      input [63:0] addr;
      input [63:0] data;

    begin
        memBank[addr]   =  data[63:56]; 
        memBank[addr+1] =  data[55:48];
        memBank[addr+2] =  data[47:40];
        memBank[addr+3] =  data[39:32];
        memBank[addr+4] =  data[31:24];
        memBank[addr+5] =  data[23:16];
        memBank[addr+6] =  data[15:8];
        memBank[addr+7] =  data[7:0];
    end
    endtask

initial
     begin

	init( 64'h0,  64'h1);
	init( 64'h8,  64'ha);
	init( 64'h10, 64'h5);
	init( 64'h18, 64'h0ffbea7deadbeeff);
	init( 64'h20, 64'h0);
     end


   always @(posedge Clk)
     begin
	if(MemoryRead)
	    begin
            ReadData[63:56]    = memBank[Address];
            ReadData[55:48]    = memBank[Address+1];
            ReadData[47:40]    = memBank[Address+2];
            ReadData[39:32]    = memBank[Address+3];
            ReadData[31:24]    = memBank[Address+4];
            ReadData[23:16]    = memBank[Address+5];
            ReadData[15:8]     = memBank[Address+6];
            ReadData[7:0]      = memBank[Address+7];
	    end
    end


   always @(posedge Clk)
     begin
	if(MemoryWrite)
	    begin
            memBank[Address]   = WriteData[63:56];
            memBank[Address+1] = WriteData[55:48];
            memBank[Address+2] = WriteData[47:40];
            memBank[Address+3] = WriteData[39:32];
            memBank[Address+4]= WriteData[31:24];
            memBank[Address+5] = WriteData[23:16];
            memBank[Address+6] = WriteData[15:8];
            memBank[Address+7] = WriteData[7:0];
	    end
    end
endmodule