jasonkee111
Junior Member level 3
- Joined
- Feb 8, 2009
- Messages
- 28
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,501
I face an issue of $fread only read up to 1658 Byte. The snippet of code is below:
Pls advice. Thanks.
Code:
byte TempDataBY[2000];
FileID = $fopen(BinFile.rbf, "r");
if (FileID == NULL)
$error ("Error Open File: %s", FileName);
while (!$feof(FileID)) begin
ReadStatus = $fread(TempDataBY,FileID);
end
$display("FileID:%d, End of File", FileID);
Pls advice. Thanks.