From: Michael S. <mic...@gm...> - 2009-05-27 09:11:37
|
Your test is very wrong. Why do you open the same file in different "always" blocks? ncverilog: ncsim: *W,VFOPTW: File test.txt being opened by Initial stmt (file: ./test.v, line: 8 in worklib.tt [module]) has been opened earlier. ncsim: *W,VFOPTW: File test.txtb being opened by Initial stmt (file: ./test.v, line: 22 in worklib.tt [module]) has been opened earlier. ncsim: *W,VFOPTW: File test.txtc being opened by Initial stmt (file: ./test.v, line: 34 in worklib.tt [module]) has been opened earlier. > cat test.txt; rm test.txt second second after first is closed > cat test.txtb; rm test.txtb second second after first is closed > cat test.txtc; rm test.txtc first vcs : > cat test.txt; rm test.txt second second after first is closed > cat test.txtb; rm test.txtb second second after first is closed > cat test.txtc; rm test.txtc first 2009/5/27 Andrei Purdea <pur...@gm...> > Hello! > I have found a weird modelsim behavior where if you open the same > filename twice with the one-parameter (multichannel descriptor) $fopen > then one of the fopens will not overwrite the other one, but instead > both outputs end up in the output file. > > Iverilog behaves the way i'd expect it to. > > Do other simulators behave like modelsim? > > (result of the attached .v file) > iverilog:(all versions) > > andrew@charon:~$ cat test.txt; rm test.txt > second > second after first is closed > andrew@charon:~$ cat test.txtb; rm test.txtb > second > second after first is closed > andrew@charon:~$ cat test.txtc; rm test.txtc > first > > > modelsim: > > andrew@charon:~$ cat test.txt; rm test.txt > first > second > andrew@charon:~$ cat test.txtb; rm test.txtb > second > second after first is closed > andrew@charon:~$ cat test.txtc; rm test.txtc > first > second > > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. > Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp as they present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com > _______________________________________________ > Iverilog-devel mailing list > Ive...@li... > https://lists.sourceforge.net/lists/listinfo/iverilog-devel > > |