data/full_repos/permissive/169574047/task_and_func/task_and_func.srcs/sources_1/new/func_parity.v
'utf-8' codec can't decode byte 0xb6 in position 476: invalid start byte
1: b'%Warning-STMTDLY: data/full_repos/permissive/169574047/task_and_func/task_and_func.srcs/sources_1/new/func_parity.v:51: Unsupported: Ignoring delay on this delayed statement.\n    #10 addr = addr + 1;\n    ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/169574047/task_and_func/task_and_func.srcs/sources_1/new/func_parity.v:54: Unsupported: Ignoring delay on this delayed statement.\n    #100 $finish;\n    ^\n%Error: Exiting due to 2 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module func_parity;

reg [31:0] addr;
reg parity;


always @(addr)
begin
    parity = calc_parity(addr);
    $display("Parity calculated = %b", calc_parity(addr));
end


function calc_parity(input [31:0] address);

begin

    calc_parity = ^address;
end
endfunction

initial
    addr = 0;

always
    #10 addr = addr + 1;
    
initial
    #100 $finish;

endmodule
module func_parity;


reg [31:0] addr;
reg parity;


always @(addr)
begin
    parity = calc_parity(addr);
    $display("Parity calculated = %b", calc_parity(addr));
end


function calc_parity(input [31:0] address);

begin

    calc_parity = ^address;
end
endfunction

initial
    addr = 0;

always
    #10 addr = addr + 1;
    
initial
    #100 $finish;

endmodule