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.
KMLM List
View email archives for the history of this mailing list.
|
|
|
|
systemc-forum - Re: Re: Re: [Systemc-forum] how to read VCD in SC
|
Message Thread:
Previous |
Next
|
- To: <pessia@xxxxxxxxxx>
- From: "Jianzhou Zhao" <zhaojz02@xxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 31 May 2005 10:12:04 +0800
- Cc: <systemc-forum@xxxxxxxxxxx>
- Send Email to systemc-forum@osci.kavi.com:
- Send new message
- Reply to this message
|
Thanks!!
Let me have a try.
----- Original Message -----
From: "Hanlai Pu" <pessia@xxxxxxxxxx>
To: "Jianzhou Zhao" <zhaojz02@xxxxxxxxxxxxxxxxxxxxx>
Cc: <systemc-forum@xxxxxxxxxxx>
Sent: Tuesday, May 31, 2005 9:41 AM
Subject: Re: Re: Re: [Systemc-forum] how to read VCD in SC
> Dear Zhao,
>
>
>
> ============== YOUR REPLY:============
>
> >Hi,
> >
> > 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:
> 1. $timescale
> 1ps
> $end
>
> 2. $scope module xxxx_name $end
> ....
> $var wire 1 3! TDO $end
> $upscope $end
>
> 3. $enddefinitions $end
>
> 4. $dumpvars
> ......
> $end
>
> 5. #10000
> .......
> #20000
> .......
> .......
>
> 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?
> >
> > Thanks.
> >
> >jianzhou
> >----- Original Message -----
> >From: "Hanlai Pu" <pessia@xxxxxxxxxx>
> >To: "Jianzhou Zhao" <zhaojz02@xxxxxxxxxxxxxxxxxxxxx>;
> ><systemc-forum@xxxxxxxxxxx>
> >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
> >> >files.
> >> >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
> >> >Manish
> >> >
> >> >--- Jianzhou Zhao <zhaojz02@xxxxxxxxxxxxxxxxxxxxx>
> >> >wrote:
> >> >> 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
> >> >http://smallbusiness.yahoo.com/resources/
> >> >
> >> >_______________________________________________
> >> >Systemc-forum mailing list
> >> >Systemc-forum@xxxxxxxxxxx
> >> >https://www.systemc.org/mailman/listinfo/systemc-forum
> >> >
> >> >
> >>
> >> = = = = = = = = = = = = = = = = = = = =
> >>
> >>
> >>
> >> Best Regards
> >> Henry Poo
> >> 2005-05-30
> >>
> >>
>
> = = = = = = = = = = = = = = = = = = = =
>
>
>
> Best Regards
> Henry Poo
> 2005-05-31
>
>
|
|
|
Mail converted by the most-excellent MHonArc 2.6.10
|