-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Final newline
at end of .vcd output is missing
#2483
Comments
I have just checked a vcd file generated by ghdl and there is a newline at the end. Can you file a bad and a correct vcd file ? |
The end of a large .vcd |
Interesting. |
Not really, I encountered the issue when simulating a large project. I am not at liberty to share it. |
How does the large simulation finish ? Do you interrupt it, do you use
env.stop ?
|
|
I stumbled onto another problem: GHDL doesn't export
Although that is easily accomplished by e.g.:
So I gave GHW another try and managed to get GTKWave to load the file: and I do see the Here is the file: tb_iliye.sim.ghw.zip I did some checking with ghwdump, and yes the enumeration types are there:
So I guess I have to complain to GTKWave? |
Yes, ghdl only outputs the signals compatible with vcd and doesn't try
to decompose them. It's on my todo list.
Enumerated types should work with gtkwave. Are you sure you have
selected them ?
|
I had no idea I would have to enable them for GHW ouput? |
Selected for display in the GTKWave Waves window. And yes [tb_iliye.sim.ghw contains signals of enumerated types whose values are shown an various times besides signals who elements are BIT or STD_ULOGIC/STD_LOGIC. Using ghwdump you can see all this. With the example from your previous issue:
On your dump file
(Quit traversing your 171 MB dump file with CTRL C, I quit over 1GB of output to ghwdump_-tHs.txt, I trimmed it down to 10,000 lines.)
You can see your dump file traces of signals of enumerated types:
And no signal changes for signal #9553 in the first 10,000 lines of the GHW dump. I'd suggest learning your way around a GHW dump with ghwdump with a smaller design or shorter simulation interval. Note the foo.ghw dump from the small example in your previous issue has one signal states (#1) and shows 6 updates plus the original value. AND opening your 171 MB GHW dump we can find signal #9553: (The last signal trace at the bottom of the Waves Pane, I had to search for it by hierarchy. Toggling trace hierarchy in the Waves Pane is done with Toggle Trace Hier in Edit in the top level GTKWave menu.) This was done with GTKWave 3.3.107, the latest pre-built available for MacOS. I can't speak to 3.4 which is presumably under GTK4. I'd say it's either the GTKWave you're using or to quote Steve Jobs "You're holding it wrong." Not accusatory, I had a hard time finding signal #955 particularly lacking signal and type declarations or the design hierarchy other than the GHW dump file. I had to 'practice' ghwdump until I understood what I was seeing. Selecting frontend in the hierarchy in the SST pane the signals declared at the hierarchy level show up in the Signals pane. The one shown was appended and showed up in the Waves Pane. I also set the Max Trace Hier to 0 which would presumably show the entire hierarchy in the path names in the Waves Pane. I think the default wast 4 and I didn't want to get bit. (And ya, I know you previously decried the GTKWave User Interface.) |
Dear Dio, I could have mentioned that all my state machine enumeration signals have |
Impulse in Eclipse throws an exception for the missing
newline
at the end of the .vcd outputIt is benign and not blocking, but 'ein bisschen unschön'
Perhaps I should file the bug at toem.de but I feel that a final newline is warranted.
The text was updated successfully, but these errors were encountered: