data/full_repos/permissive/198830281/memory.v
1: b'%Error: data/full_repos/permissive/198830281/memory.v:14: Unsupported: `default_nettype of other than none or wire: `default_nettype None\n`default_nettype None\n^~~~~~~~~~~~~~~~~~~~~\n%Error: Exiting due to 1 error(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module memory #(parameter integer wordSize = 4, parameter integer numWords = 64)(output reg[wordSize-1:0] dataOut, input enable, input[$clog2(numWords)-1:0] address, input[wordSize-1:0] dataIn, input readWrite);

    reg[wordSize-1:0] mem[numWords-1:0];


    always @(enable, readWrite) begin
        if(enable) begin

            if(readWrite)
                dataOut = mem[address];
            else
                mem[address] = dataIn;
        end


        else
            dataOut = 64'bz;
    end
endmodule
module memory #(parameter integer wordSize = 4, parameter integer numWords = 64)(output reg[wordSize-1:0] dataOut, input enable, input[$clog2(numWords)-1:0] address, input[wordSize-1:0] dataIn, input readWrite);


    reg[wordSize-1:0] mem[numWords-1:0];


    always @(enable, readWrite) begin
        if(enable) begin

            if(readWrite)
                dataOut = mem[address];
            else
                mem[address] = dataIn;
        end


        else
            dataOut = 64'bz;
    end
endmodule