Our forums have moved! Please go to http://forums.accellera.org for the new forums. The forums you see here will remain open for browsing, but are no longer open to new posts.
View email archives for the history of this mailing list.
systemc-forum - Re: Re: Re: [Systemc-forum] how to read VCD in SC
- To: "Jianzhou Zhao" <zhaojz02@xxxxxxxxxxxxxxxxxxxxx>
- From: "Hanlai Pu" <pessia@xxxxxxxxxx>
- Date: Tue, 31 May 2005 09:41:59 +0800
- Cc: "systemc-forum@xxxxxxxxxxx" <systemc-forum@xxxxxxxxxxx>
- Send Email to email@example.com:
- Send new message
- Reply to this message
============== YOUR REPLY：============
> Thank you for your attention.
> This is really an curious idea if I wanna read VCD without waveviewer.
> Let me introduce the backgroud.
> I am doing some experiment about SCV in cycle-accurate transaction level.
> So I need SC module as DUT.
> But unfortunately few of the free SC module on Web can be found,
> and the cycle-accurate transaction level SC module is also hard-to-found.
> So I wanna solve the problem by some tricks.
> 1)generate VCD from verilog
If you are using VCS as the Verilog simulation software, the command named
"vpd2vcd" can translate .vpd file into .vcd file. VCS generates a .vpd file
for the waveform of the simulated Verilog sources.
> 2)create signals in SC by reading VCD.
VCD file is in text formating:
2. $scope module xxxx_name $end
$var wire 1 3! TDO $end
3. $enddefinitions $end
And, you can use the attached C code to read the VCD file.
> That is why there is this question.
> Is there any suggestion to solve the non-technical problem?
>----- Original Message -----
>From: "Hanlai Pu" <pessia@xxxxxxxxxx>
>To: "Jianzhou Zhao" <zhaojz02@xxxxxxxxxxxxxxxxxxxxx>;
>Sent: Monday, May 30, 2005 3:03 PM
>Subject: Re: Re: [Systemc-forum] how to read VCD in SC
>> Dear Zhao,
>> You can use ModelSim or VCS to view the VCD file from SC.
>> It is a little boring to make a new interface for
>> interpretation of VCD in SC.
>> ============== YOUR REPLY：============
>> >Hi Zhao ,
>> >Why do you want to read VCD from SC ?
>> >There are lots of free VCS wiewer to view the VCD
>> >I am just curious why would some one wants to read
>> >from VCD file ?
>> >if you are trying to generate stimulus from VCD file
>> >then my guess it you would have to dump your traces in
>> >some txt format ( not sure though about VCD reading as
>> >such )
>> >Thanx and Regards
>> >--- Jianzhou Zhao <zhaojz02@xxxxxxxxxxxxxxxxxxxxx>
>> >> Hi,
>> >> These days I am studying VCD in SC.
>> >> I found that sc only provides API to create and
>> >> write in VCD.
>> >> But how to read VCD from SC?
>> >> Thank you very much.
>> >> Jianzhou
>> >Do you Yahoo!?
>> >Yahoo! Small Business - Try our new Resources site
>> >Systemc-forum mailing list
>> = = = = = = = = = = = = = = = = = = = =
>> Best Regards
>> Henry Poo
= = = = = = = = = = = = = = = = = = = =
Description: Binary data
Mail converted by the most-excellent MHonArc 2.6.10