FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > DSP

DSP comp.dsp newsgroup, mailing list

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-05-2003, 07:23 AM
Sandeep Chikkerur
Guest
 
Posts: n/a
Default Cycle accurate simulator Vs Instruction accurate simulator

Hi,

What is the difference between a

- CYCLE ACCURATE SIMULATOR &
- INSTRUCTION ACCURATE SIMUALTOR.

(e.g. ZSP400, ZSP500 Simulators have both the options)

Which is advantageous ?

Thanking in advance.
~ Sandeep
Reply With Quote
  #2 (permalink)  
Old 11-05-2003, 09:46 AM
Andrew Reilly
Guest
 
Posts: n/a
Default Re: Cycle accurate simulator Vs Instruction accurate simulator

On Wed, 05 Nov 2003 00:23:43 -0800, Sandeep Chikkerur wrote:

> Hi,
>
> What is the difference between a
>
> - CYCLE ACCURATE SIMULATOR &
> - INSTRUCTION ACCURATE SIMUALTOR.
>
> (e.g. ZSP400, ZSP500 Simulators have both the options)
>
> Which is advantageous ?


The terms don't have a universal definition AFIK, but to guess, I'd say:

A cycle-accurate simulator will both run your program *and* tell you how
many cycles it took to execute, perhaps taking things like the number of
configured wait states for external memory accesses and so-on into account.

An instruction-accurate simulator probably just runs your program as fast
as it can: the computations will be according to the instruction set, but
it won't tell you how long each instruction or your whole program will
take. This simulation might run significantly faster than the
cycle-accurate one, perhaps even using a JIT compiler or interpreter, in
the way of a Java VM.

For some things, particularly real-time code, and for detailed
optimization, you need to know how many cycles something will take. At
other times, you just want to know whether or not your code, running in
batch mode (not real-time), is correct or not.

I've often wanted the latter, but have not seen it offered for a DSP
before. If it's what I'm assuming, then that's quite possibly a useful
advance on the part of LSI/ZSP.

--
Andrew

Reply With Quote
  #3 (permalink)  
Old 11-05-2003, 06:33 PM
Laurent Desnogues
Guest
 
Posts: n/a
Default Re: Cycle accurate simulator Vs Instruction accurate simulator

"Andrew Reilly" <andrew@gurney.reilly.home> a écrit dans le message news:
pan.2003.11.05.09.46.22.150461@gurney.reilly.home...
> On Wed, 05 Nov 2003 00:23:43 -0800, Sandeep Chikkerur wrote:
>
> > Hi,
> >
> > What is the difference between a
> >
> > - CYCLE ACCURATE SIMULATOR &
> > - INSTRUCTION ACCURATE SIMUALTOR.
> >
> > (e.g. ZSP400, ZSP500 Simulators have both the options)
> >
> > Which is advantageous ?

>
> The terms don't have a universal definition AFIK, but to guess, I'd say:


Sorry, but I have to disagree even though your guesses
are OK, those terms are universally used as you described
them even though instruction accurate simulators are often
named Instruction Set Simulator.

There exists a third kind of simulator: pin accurate
simulators. Those can be used in HDL simulators using
whatever foreign language interface they use. They are
often run for comparison with VHDL/Verilog implementation.

> I've often wanted the latter, but have not seen it offered for a DSP
> before.


TI offers both kinds simulators for its C6x line of DSP
or at least used to.


Laurent


Reply With Quote
  #4 (permalink)  
Old 11-05-2003, 07:02 PM
Jerry Avins
Guest
 
Posts: n/a
Default Re: Cycle accurate simulator Vs Instruction accurate simulator

Sandeep Chikkerur wrote:

> Hi,
>
> What is the difference between a
>
> - CYCLE ACCURATE SIMULATOR &
> - INSTRUCTION ACCURATE SIMUALTOR.
>
> (e.g. ZSP400, ZSP500 Simulators have both the options)
>
> Which is advantageous ?
>
> Thanking in advance.
> ~ Sandeep


Why do you suppose that they offer both? It depends on what you want to
do. Do you want a fast simulation, or do you want to know how many clocks
the actual processor will need, including pipeline faults? Do you always
want the same thing?

Jerry
--
Engineering is the art of making what you want from things you can get.
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

Reply With Quote
  #5 (permalink)  
Old 11-05-2003, 08:31 PM
santosh nath
Guest
 
Posts: n/a
Default Re: Cycle accurate simulator Vs Instruction accurate simulator

Andrew Reilly <andrew@gurney.reilly.home> wrote in message news:<pan.2003.11.05.09.46.22.150461@gurney.reilly .home>...
> On Wed, 05 Nov 2003 00:23:43 -0800, Sandeep Chikkerur wrote:
>
> > Hi,
> >
> > What is the difference between a
> >
> > - CYCLE ACCURATE SIMULATOR &
> > - INSTRUCTION ACCURATE SIMUALTOR.
> >
> > (e.g. ZSP400, ZSP500 Simulators have both the options)
> >
> > Which is advantageous ?

>
> The terms don't have a universal definition AFIK, but to guess, I'd say:
>
> A cycle-accurate simulator will both run your program *and* tell you how
> many cycles it took to execute, perhaps taking things like the number of
> configured wait states for external memory accesses and so-on into account.
>
> An instruction-accurate simulator probably just runs your program as fast
> as it can: the computations will be according to the instruction set, but
> it won't tell you how long each instruction or your whole program will
> take. This simulation might run significantly faster than the
> cycle-accurate one, perhaps even using a JIT compiler or interpreter, in
> the way of a Java VM.
>
> For some things, particularly real-time code, and for detailed
> optimization, you need to know how many cycles something will take. At
> other times, you just want to know whether or not your code, running in
> batch mode (not real-time), is correct or not.
>
> I've often wanted the latter, but have not seen it offered for a DSP
> before. If it's what I'm assuming, then that's quite possibly a useful
> advance on the part of LSI/ZSP.

High end processor often talks about multi stage
pipelining,VLIW,CLIW,zero loop overhead etc where it is often seen
several simple instructions to execute in single cycle on average.At
the same time one complex instruction like division can take several
cycles. If a requirement is given to design a simulator for these
processor what is the designer's choice? I am familiar with terms like
"MIPS" - Is the second option a better candidate?
Santosh
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Source of accurate frequency Peter Alfke FPGA 38 01-22-2008 10:50 PM
Cycle Accurate Modelling designer Verilog 0 09-21-2007 10:15 AM
How to obtain (accurate) critical path delay? Pasacco FPGA 0 07-16-2007 07:05 PM
Unable to use xmd or mb-gdb with microblaze cycle accurate simulator target prasad.naga@gmail.com FPGA 0 07-04-2007 01:17 AM
Accurate phase measurement Stephan Boucher DSP 9 11-04-2003 11:52 AM


All times are GMT +1. The time now is 10:49 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved