# Cannot open some .vcd files in "Scansion" waveform viewer

**URL:** https://discourse.myhdl.org/t/cannot-open-some-vcd-files-in-scansion-waveform-viewer/401
**Category:** Uncategorized
**Created:** [October 27, 2019, 2:40am UTC](https://discourse.myhdl.org/t/cannot-open-some-vcd-files-in-scansion-waveform-viewer/401 "2019-10-27T02:40:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Susantha\_Wijesinghe](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.myhdl.org/susantha_wijesinghe/32/123_2.png) [@Susantha\_Wijesinghe](https://discourse.myhdl.org/u/Susantha_Wijesinghe)
#### Post date: [October 27, 2019, 2:40am UTC](https://discourse.myhdl.org/t/cannot-open-some-vcd-files-in-scansion-waveform-viewer/401/1 "2019-10-27T02:40:43Z")

</div>

Some myHDL created .vcd file cannot be opened by Scansion waveform viewer, giving an error message . However, the same .vcd file can be opened in gtkWave without any problem. I noticed that some .vcd files created by myHDL (without FSM implementation) opens in Scansion giving no error. Have anybody experience similar problem?

Error message I got opening a .vcd file is  
“Failed to Open File.  
The operation couldn’t be completed. Syntax Error detected at character ‘s’ at position 6 on line 14”  
The link for the .vcd file is,  
[https://drive.google.com/open?id=1GAWapKm\_17QeVRty9Ptr5dde4OHnHNuB](https://drive.google.com/open?id=1GAWapKm_17QeVRty9Ptr5dde4OHnHNuB)

---

<div class="post-metadata">

### Author: ![josyb](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.myhdl.org/josyb/32/5_2.png) [@josyb](https://discourse.myhdl.org/u/josyb)
#### Post date: [October 27, 2019, 3:13pm UTC](https://discourse.myhdl.org/t/cannot-open-some-vcd-files-in-scansion-waveform-viewer/401/2 "2019-10-27T15:13:19Z")

</div>

Hi Susantha,

I also checked your file with Impulse (an Eclipse plug-in) which correctly rendered the waveforms.  
I guess the problem lies with Scansion; it doesn’t accept the string format for the state machine. In stead of _$var string 2 # state $end_ it may expect _$var real 1 # state $end_.  
You best talk to the scansion people …

Best regards,  
Josy
