Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - `timescale 1 ps / 1 ps(verilog command equivalent in VHDL.

 
Thread Tools Search this Thread
Old 02-27-2008, 07:30 AM   #1
Default `timescale 1 ps / 1 ps(verilog command equivalent in VHDL.


hi all,
I want know how to write `timescale 1 ps / 1 ps equivalent in VHDL.


sheri
  Reply With Quote
Old 02-27-2008, 07:46 AM   #2
Vince
 
Posts: n/a
Default Re: `timescale 1 ps / 1 ps(verilog command equivalent in VHDL.
sheri a écrit:
> hi all,
> I want know how to write `timescale 1 ps / 1 ps equivalent in VHDL.
>


You can't.

--
Vince


Vince
  Reply With Quote
Old 02-27-2008, 08:19 AM   #3
sheri
 
Posts: n/a
Default Re: `timescale 1 ps / 1 ps(verilog command equivalent in VHDL.
On Feb 27, 12:46*pm, Vince <debo...@free.fr> wrote:
> sheri a écrit:
>
> > hi all,
> > I want know how to write `timescale 1 ps / 1 ps equivalent in VHDL.

>
> You can't.
>
> --
> Vince


Thanks Vince.
But I want to know Is there any other way to do time_unit and
resolution settings in VHDL.


sheri
  Reply With Quote
Old 02-27-2008, 08:30 AM   #4
Vince
 
Posts: n/a
Default Re: `timescale 1 ps / 1 ps(verilog command equivalent in VHDL.
sheri a écrit:
> On Feb 27, 12:46 pm, Vince <debo...@free.fr> wrote:
>> sheri a écrit:
>>
>>> hi all,
>>> I want know how to write `timescale 1 ps / 1 ps equivalent in VHDL.

>>
>> You can't.
>>

>
> Thanks Vince.
> But I want to know Is there any other way to do time_unit and
> resolution settings in VHDL.
>


You have to look into the manual of your simulator. By example with NCSim you
can specify a timescale for VHDL components during the elaboration.

--
Vince


Vince
  Reply With Quote
Old 02-27-2008, 08:51 AM   #5
Jonathan Bromley
 
Posts: n/a
Default Re: `timescale 1 ps / 1 ps(verilog command equivalent in VHDL.
On Wed, 27 Feb 2008 00:19:43 -0800 (PST), sheri wrote:

>But I want to know Is there any other way to do time_unit and
>resolution settings in VHDL.


From your other post it seems you're using Modelsim.
When you launch the simulation using the vsim command,
add the option

vsim -t ps <thing_to_simulate>

(or ns, or whatever timeprecision you want).

Global timeunits make no sense in VHDL, because all time
values have explicit units. In principle VHDL can resolve
femtoseconds, but in practice simulators set a coarser
timeprecision which you can then override on the
command line.

Standard installations of Modelsim default to 1ns
precision, but (I believe) the versions that ship
with Quartus and Xilinx ISE are defaulted to 1ps.

As others have said, a similar story applies for
other simulators.
--
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services

Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK

http://www.MYCOMPANY.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.


Jonathan Bromley
  Reply With Quote
Old 02-27-2008, 10:08 AM   #6
sheri
 
Posts: n/a
Default Re: `timescale 1 ps / 1 ps(verilog command equivalent in VHDL.
On Feb 27, 1:51*pm, Jonathan Bromley <jonathan.brom...@MYCOMPANY.com>
wrote:
> On Wed, 27 Feb 2008 00:19:43 -0800 (PST), sheri wrote:
> >But I want to know Is there any other way to do time_unit and
> >resolution settings in VHDL.

>
> From your other post it seems you're using Modelsim.
> When you launch the simulation using the vsim command,
> add the option
>
> * vsim -t ps <thing_to_simulate>
>
> (or ns, or whatever timeprecision you want).
>
> Global timeunits make no sense in VHDL, because all time
> values have explicit units. *In principle VHDL can resolve
> femtoseconds, but in practice simulators set a coarser
> timeprecision which you can then override on the
> command line.
>
> Standard installations of Modelsim default to 1ns
> precision, but (I believe) the versions that ship
> with Quartus and Xilinx ISE are defaulted to 1ps.
>
> As others have said, a similar story applies for
> other simulators.
> --
> Jonathan Bromley, Consultant
>
> DOULOS - Developing Design Know-how
> VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services
>
> Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK
> jonathan.brom...@MYCOMPANY.comhttp://www.MYCOMPANY.com
>
> The contents of this message may contain personal views which
> are not the views of Doulos Ltd., unless specifically stated.


Thanks Vince and Jonathan.
But similar kind of setting can be done in modelsim.ini file -
resolution option.
To reduce simulaton time I changed from ps to ns, but did not observe
any reduction.
Looks like altera - dprams need ps resolution - not sure about this.
Can you please throw some light on this as to why changing resolution
did'nt help?


sheri
  Reply With Quote
Old 02-27-2008, 10:20 AM   #7
Vince
 
Posts: n/a
Default Re: `timescale 1 ps / 1 ps(verilog command equivalent in VHDL.
sheri a écrit:
> On Feb 27, 1:51 pm, Jonathan Bromley <jonathan.brom...@MYCOMPANY.com>
> wrote:
>> On Wed, 27 Feb 2008 00:19:43 -0800 (PST), sheri wrote:
>>> But I want to know Is there any other way to do time_unit and
>>> resolution settings in VHDL.

>>
>> From your other post it seems you're using Modelsim.
>> When you launch the simulation using the vsim command,
>> add the option
>>
>> vsim -t ps <thing_to_simulate>
>>
>> (or ns, or whatever timeprecision you want).
>>
>> Global timeunits make no sense in VHDL, because all time
>> values have explicit units. In principle VHDL can resolve
>> femtoseconds, but in practice simulators set a coarser
>> timeprecision which you can then override on the
>> command line.
>>
>> Standard installations of Modelsim default to 1ns
>> precision, but (I believe) the versions that ship
>> with Quartus and Xilinx ISE are defaulted to 1ps.
>>
>> As others have said, a similar story applies for
>> other simulators.

>
> Thanks Vince and Jonathan.
> But similar kind of setting can be done in modelsim.ini file -
> resolution option.
> To reduce simulaton time I changed from ps to ns, but did not observe
> any reduction.
> Looks like altera - dprams need ps resolution - not sure about this.
> Can you please throw some light on this as to why changing resolution
> did'nt help?
>


What is your design? VHDL only, Verilog Only, mixed ?

--
Vince


Vince
  Reply With Quote
Old 02-27-2008, 10:28 AM   #8
sheri
 
Posts: n/a
Default Re: `timescale 1 ps / 1 ps(verilog command equivalent in VHDL.
On Feb 27, 3:20*pm, Vince <debo...@free.fr> wrote:
> sheri a écrit:
>
>
>
>
>
> > On Feb 27, 1:51 pm, Jonathan Bromley <jonathan.brom...@MYCOMPANY.com>
> > wrote:
> >> On Wed, 27 Feb 2008 00:19:43 -0800 (PST), sheri wrote:
> >>> But I want to know Is there any other way to do time_unit and
> >>> resolution settings in VHDL.

>
> >> From your other post it seems you're using Modelsim.
> >> When you launch the simulation using the vsim command,
> >> add the option

>
> >> * vsim -t ps <thing_to_simulate>

>
> >> (or ns, or whatever timeprecision you want).

>
> >> Global timeunits make no sense in VHDL, because all time
> >> values have explicit units. *In principle VHDL can resolve
> >> femtoseconds, but in practice simulators set a coarser
> >> timeprecision which you can then override on the
> >> command line.

>
> >> Standard installations of Modelsim default to 1ns
> >> precision, but (I believe) the versions that ship
> >> with Quartus and Xilinx ISE are defaulted to 1ps.

>
> >> As others have said, a similar story applies for
> >> other simulators.

>
> > Thanks Vince and Jonathan.
> > But similar kind of setting can be done in modelsim.ini file -
> > resolution option.
> > To reduce simulaton time I changed from ps to ns, but did not observe
> > any reduction.
> > Looks like altera - dprams need ps resolution - not sure about this.
> > Can you please throw some light on this as to why changing resolution
> > did'nt help?

>
> What is your design? VHDL only, Verilog Only, mixed ?
>
> --
> Vince- Hide quoted text -
>
> - Show quoted text -


vhdl only.


sheri
  Reply With Quote
Old 02-27-2008, 10:43 AM   #9
Vince
 
Posts: n/a
Default Re: `timescale 1 ps / 1 ps(verilog command equivalent in VHDL.
sheri a écrit:
> On Feb 27, 3:20 pm, Vince <debo...@free.fr> wrote:
>> sheri a écrit:
>>
>>> On Feb 27, 1:51 pm, Jonathan Bromley <jonathan.brom...@MYCOMPANY.com>
>>> wrote:
>>>> On Wed, 27 Feb 2008 00:19:43 -0800 (PST), sheri wrote:
>>>>> But I want to know Is there any other way to do time_unit and
>>>>> resolution settings in VHDL.

>>
>>>> From your other post it seems you're using Modelsim.
>>>> When you launch the simulation using the vsim command,
>>>> add the option

>>
>>>> vsim -t ps <thing_to_simulate>

>>
>>>> (or ns, or whatever timeprecision you want).

>>
>>>> Global timeunits make no sense in VHDL, because all time
>>>> values have explicit units. In principle VHDL can resolve
>>>> femtoseconds, but in practice simulators set a coarser
>>>> timeprecision which you can then override on the
>>>> command line.

>>
>>>> Standard installations of Modelsim default to 1ns
>>>> precision, but (I believe) the versions that ship
>>>> with Quartus and Xilinx ISE are defaulted to 1ps.

>>
>>>> As others have said, a similar story applies for
>>>> other simulators.

>>
>>> Thanks Vince and Jonathan.
>>> But similar kind of setting can be done in modelsim.ini file -
>>> resolution option.
>>> To reduce simulaton time I changed from ps to ns, but did not observe
>>> any reduction.
>>> Looks like altera - dprams need ps resolution - not sure about this.
>>> Can you please throw some light on this as to why changing resolution
>>> did'nt help?

>>
>> What is your design? VHDL only, Verilog Only, mixed ?
>>

>
> vhdl only.
>


Ok, so you have to change the design (add change models, gated clock, reduce
clock divisor...).

--
Vince


Vince
  Reply With Quote
Old 02-27-2008, 11:15 AM   #10
Jonathan Bromley
 
Posts: n/a
Default Re: `timescale 1 ps / 1 ps(verilog command equivalent in VHDL.
On Wed, 27 Feb 2008 02:08:52 -0800 (PST), sheri wrote:

>Thanks Vince and Jonathan.
>But similar kind of setting can be done in modelsim.ini file -
>resolution option.


Sure.

>To reduce simulaton time I changed from ps to ns, but did not observe
>any reduction.


Why do you expect that change to improve simulation speed?
VHDL simulators are event driven. The simulator does NOT
do extra work on each time-resolution "time tick".
Consequently, the only speed improvement you might see
by degrading the resolution to ns is that the rounding
of time values to the nearest ns might possibly cause some
events to appear to be simultaneous; this *might* have a
tiny effect on simulation speed but it's unlikely to be
noticeable. And, as you point out below, it may break
some models.

>Looks like altera - dprams need ps resolution - not sure about this.


Yes, I believe that's true. This is why the Altera and Xilinx
versions of the simulator default to picosecond resolution.

>Can you please throw some light on this as to why changing resolution
>did'nt help?


I suspect you are trying to simulate a large design with a free
version of the simulator. It is hobbled: as your design gets
larger (more lines of executable code) the simulator's speed
degrades, first by about a factor of 5, and then by a much
larger factor. The idea is that the simulator is fully functional
so that you can experiment with it and see what it can do, but
it is useless for simulating large-scale projects - so you are
encouraged to spend real money on the full-performance real
version.
--
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services

Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK

http://www.MYCOMPANY.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.


Jonathan Bromley
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46