data/full_repos/permissive/169574047/practical_modeling/practical_modeling.srcs/sources_1/new/file.v
'utf-8' codec can't decode byte 0xb4 in position 484: invalid start byte
1: b'%Error: data/full_repos/permissive/169574047/practical_modeling/practical_modeling.srcs/sources_1/new/file.v:32: Unsupported: $fopen with multichannel descriptor.  Add ,"w" as second argument to open a file descriptor.\n    handle1 = $fopen("file1.out");   \n              ^~~~~~\n%Error: data/full_repos/permissive/169574047/practical_modeling/practical_modeling.srcs/sources_1/new/file.v:33: Unsupported: $fopen with multichannel descriptor.  Add ,"w" as second argument to open a file descriptor.\n    handle2 = $fopen("file2.out");   \n              ^~~~~~\n%Error: data/full_repos/permissive/169574047/practical_modeling/practical_modeling.srcs/sources_1/new/file.v:34: Unsupported: $fopen with multichannel descriptor.  Add ,"w" as second argument to open a file descriptor.\n    handle3 = $fopen("file3.out");   \n              ^~~~~~\n%Error: Exiting due to 3 error(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module file;



integer handle1,handle2,handle3;


initial
begin
    handle1 = $fopen("file1.out");
    handle2 = $fopen("file2.out");
    handle3 = $fopen("file3.out");
end


integer desc1,desc2,desc3;
initial
begin
    desc1 = handle1 | 1;
    $fdisplay(desc1, "Display 1");
    desc2 = handle2 | handle1;
    $fdisplay(desc2, "Display 2");
    desc3 = handle3;
    $fdisplay(desc3, "Display 3");
end


initial
begin
    $fclose(handle1);
    $fclose(handle2);
    $fclose(handle3);
end

endmodule
module file;




integer handle1,handle2,handle3;


initial
begin
    handle1 = $fopen("file1.out");
    handle2 = $fopen("file2.out");
    handle3 = $fopen("file3.out");
end


integer desc1,desc2,desc3;
initial
begin
    desc1 = handle1 | 1;
    $fdisplay(desc1, "Display 1");
    desc2 = handle2 | handle1;
    $fdisplay(desc2, "Display 2");
    desc3 = handle3;
    $fdisplay(desc3, "Display 3");
end


initial
begin
    $fclose(handle1);
    $fclose(handle2);
    $fclose(handle3);
end

endmodule