AnsweredAssumed Answered

VERILOG $fstrobe HELP

Question asked by FRADEP_eesof on Jul 2, 2005
Latest reply on Sep 20, 2005 by FRADEP_eesof
Hi All!
do someone know an example of use of the Verilog function $fstrobe ??
Here there is our simple problem: we implemented a resistor in verilog and we want to write the dissipated power to an output file. We tried the following code

`include "disciplines.vams"
`include "constants.vams"

module R(p,n);
   electrical p,n;
   integer fid;
   real Pdiss;
   parameter real R=75.0;

   analog begin
       V(p,n) <+ R * I(p,n);
       fid = $fopen("data.txt");
       Pdiss=V(p,n)*I(p,n);
       $fstrobe(fid, Pdiss);
       $fclose(fid);    
   end

endmodule

The simulation is ok but the data.txt file created is empty.
Any suggests ??
Thank you very much

Francesco  

Outcomes