Continue to Site

Welcome to EDAboard.com

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.

clear a file in verilog

Status
Not open for further replies.

nehat

Newbie level 3
Newbie level 3
Joined
Jan 25, 2015
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
17
hi,
I amusing $fopenw and $fwrite for dealing with my filein my verilog code.
every time my code enters always@(posedge clk) block , i want to rewrite my file (not append to the end of the file),
in other words i want to clear my file and then write it again.

is there any way to clear a file in verilog???


please please answer me asap. i am going nuts!!

thank you in advance
 

Append versus rewrite is controlled by the $fopen type parameter, just read the Verilog specification completely, e.g. IEEE 1800-2012, 21.3.1 Opening and closing files
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top