ruwan2 Posted July 3, 2014 Report Posted July 3, 2014 Hi, I have a code run well with Microsoft Visio Studio Express 10.0, but I would like to run with Modelsim which has MINGW4.2.1. I find that the file write operation fails. If I comment out the file operation part, it works. What requirement for SystemC 2.3.1 work with Modelsim? The code is attached below. Thanks, kalman_abstract1a.zip Quote
ruwan2 Posted July 4, 2014 Author Report Posted July 4, 2014 When I load for simulation, it simply crashes. Now, I change C file I/O to C++ stream mode in Modelsim 10.1. It can run, and can write text before wait() call in a SC_CTHREAD. After wait(), no content is written to the text file. i.e. from the attached file, only "writing this to a file1." and "writing this to a file2. are written, no the next line text written. I put a breakpoint at line 75 of the attached fir.cpp. It does stop there after running, but no content writing happens of that line. BTW, I still cannot paste text to this forum editor by right click mouse. If I use the paste button above the editor window, there is such warning box, see attached please. I never see this before. Now I use IE on Windows 7. Thanks, fir.zip Quote
apfitch Posted July 5, 2014 Report Posted July 5, 2014 It could be that the text is buffered. Try using << endl; instead of \n. Also try doing quit -sim at the Modelsim command prompt after the simulator has finished, to flush the files to disk. regards Alan Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.