In the following testbench
module for_loop; int c; initial begin $display("Write Here!"); c = $fgetc('h8000_0000); $display(c); end endmodule
I get the output:
Write Here! ERROR: File descriptor (-2147483648) passed to $fgetc in file C:/Users/Halib/XilinxVivadoWorkspace/project_7/project_7.srcs/sim_1/new/tb_q2.sv at line 8 is not valid. -1
Someone can help?
I'm using Vivado 2019.1
1.4m articles
1.4m replys
5 comments
57.0k users