Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > what's the differences between the behavioral model and the RTLmodel?

Reply
Thread Tools

what's the differences between the behavioral model and the RTLmodel?

 
 
risingsunxy@googlemail.com
Guest
Posts: n/a
 
      03-09-2006
Hallo everyone,now I have a question,what's the differences between the
behavioral model and the RTLmodel?

I am reading some source codes of a simple processor,it is a behavioral
model.
As I understand ,the behavior model just describes how the processor
behaves,
so it is not the description of the real circuits.Can this behavioral
model be synthesize?

And in these codes ,i see a lot of procedures are used.Are they typical
style of the behavioral descriptions?

Ok,waiting for your answers : )

Thanks

 
Reply With Quote
 
 
 
 
Mike Treseler
Guest
Posts: n/a
 
      03-09-2006
wrote:
> Hallo everyone,now I have a question,what's the differences between the
> behavioral model and the RTLmodel?


http://groups.google.com/groups/sear...model+RTL+vhdl
 
Reply With Quote
 
 
 
 
Weng Tianxiang
Guest
Posts: n/a
 
      03-09-2006
It is totally like your going to a restaraunt and give an order for one
dish.

If you order French Chicken, then the waiter will bring you a French
Chicken. That is behavioral model. You don't have to know all details.
Because its making is well known before you make an order.

If you describe a detailed list on what an chef needs to do or prepare
the dish:
1. Buy a new chicken;
2. Mix a French wine with it for a few minutes;
....
That is a RTL model.

What is the difference?

For a RTL model, you must be a professional chef who knows everything
to make a dish.
For a behavioral model, you don't have to know every details, but know
its name.

With a behavioral model of CPU, you can immediately learn a taste how a
CPU is designed, but miss every details of the design. That is
important to a beginner.

What an chip designer is doing everyday in a company is most likely a
RTL model.

Weng

 
Reply With Quote
 
risingsunxy@googlemail.com
Guest
Posts: n/a
 
      03-09-2006
Thank you very much !
so I think the behavioral model can not be syntheiszed ,right?
Or,if i want to design a CPU,just a behavioral model is not enought,
and i should consentrate on the RTL model .right?
: )

 
Reply With Quote
 
Weng Tianxiang
Guest
Posts: n/a
 
      03-10-2006
All behaviral models must be there for your to use. Especially they are
compiled in a function or a procedure form and incooperated in
synthesizer. If they are not ready, they are not available and you
cannot use it.

For example, when you multiply 2 16-bit integers, by using the
behaviral model, what you need to do is to write
C <= A*B; if they are defined properly. You don't have to care how it
is implemented in details.

And the synthizer will generate code for you. There is a liberary that
does it for you.

The library may be working, but not in the most efficient form.

For your situation as a beginner, that you start with behaviral model
is appropriate.

All behaviral models, if they pass the compilation, can be synthesized
without any problem.

Weng

 
Reply With Quote
 
Thomas Stanka
Guest
Posts: n/a
 
      03-10-2006
Hello,

Weng Tianxiang schrieb:
> For your situation as a beginner, that you start with behaviral model
> is appropriate.
>
> All behaviral models, if they pass the compilation, can be synthesized
> without any problem.


I disagree. Behavioral means you describe what to do on a abstract
level. This might be synthesisable but is not allways synthesisable. In
fact behavioral means you didn't care, if its synthesisable. There
exist tools to help you synthesising behavioral code, but they are
limited.

out<=a+b;

is behavioral[1], but synthesisable with every tool, if a and b are
integer or std_logic_vector. The code is hardly synthesisabel if a and
b are complex type useing a special function for "+".

The following behavioral model would pass every compilation but could
never be sythesised:

var a, b : integer
for i in 1 to 10 loop
a := a *b;
b := b+i;
end loop
wait for 1 us;

bye Thomas

[1] and is also accepted as rtl code for integer or std_logic_vector.

 
Reply With Quote
 
Weng Tianxiang
Guest
Posts: n/a
 
      03-10-2006
I agree with your this opinion:
"Behavioral means you describe what to do on a abstract level."

I like saying that in another way as a everyday life thing:
Behaviral means something other people have already help build, either
in a library or in a module.

If they are available, they are synthesisable, otherwise they are not.

Here is the function to do complex addition in IEEE Standard VHDL
Mathematical Packages
function "+" ( L: in COMPLEX; R: in COMPLEX ) return COMPLEX;

Weng

 
Reply With Quote
 
Weng Tianxiang
Guest
Posts: n/a
 
      03-10-2006
Actually I started using VHDL about 6 years ago. As a starter, I was
really confused with the behavioral and RTL model definitions. Later I
learned that you don't have to understand it and can safely put it
aside without any harm. Even their concepts are not only useless, but
also harmful and meaningless.

Do you hear the same things in software? No. it is not because the same
things don't happen with software, but because in software industry, no
body talks about the concept. When you call a subroutine in software,
in VHDL, it is called behavioral, when you design it with assembly
language, in VHDL, it is called RTL.

When you hold a party, do you really care the dishes are made by
yourselves or by order?

The decisive thing about a code is that it is reliable and error free.

Every beginner with VHDL or Verilog has to face the same dillema: what
are the behavioral and RTL model definitions?

Weng

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VHDL Behavioral and Structural Mixed Models aris VHDL 9 07-16-2010 10:29 PM
Behavioral model for a two out of five detector bigmoe88 VHDL 5 02-14-2010 02:54 AM
Re: discrepency between behavioral simulation and post routesimulation JimLewis VHDL 2 11-26-2009 07:00 PM
Verilog RTL and Behavioral Testbench Davy VHDL 1 03-26-2006 09:13 PM
Hard Disk Drive behavioral model Stephane Guyetant VHDL 0 10-02-2003 09:52 AM



Advertisments
 



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 47 48 49 50 51 52 53 54 55 56 57