when writing files in verilog, can i control the pointer?

Status
Not open for further replies.

arsenal

Full Member level 2
Joined
Oct 17, 2004
Messages
143
Helped
15
Reputation
30
Reaction score
4
Trophy points
1,298
Activity points
1,103
verilog pointer

hi ,
I wanna write signals to a file using $fdisplay in verilog testbench ,and how can i decide which line to write? that is ,is there any pointer like that in C that I can switch between the lines in the file being writen?
(after each $fdisplay , the file will automatically switch to another line, how can i switch back to the line written just now to overlap it with another $fdisplay?)


thanks a lot!
 

Have you considered $ftell and $fseek? I've never used them in Verilog, but maybe they will do what you want.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…