Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hi
I did that but now it shows some error that undefined "EOF"
how can i solve that ?
i am using modelsimSE 6.4
thanks
- - - Updated - - -
this is my verilog code :
integer char = 32'b0;
integer file;
`define EOF 32'hffff_ffff
initial begin
file = $fopen("cur_img.txt","rb")...
can i do something like this?
//integer file, char,i;
// initial begin
// file = $fopen("cur_img.txt","rb");
// char =$fgetc(file);
// $display("output_data:");
// for (i=0; i < 10; i=i+1)
// $display("%d:%d",i,char);
// end
Hi,
i have one text file which is the output of unsigned value of character of one .raw image file.
can you please tell me which function can i use to read that file?
i used "readmemh" but its only for hex value but i have unsigned character value.
please tell me how can i proceed to read that...
Hi,
i have one text file which is the output of unsigned value of character of one .raw image file.
can you please tell me which function can i use to read that file?
i used "readmemh" but its only for hex value but i have unsigned character value.
please tell me how can i proceed to read that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.