Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Difference between RTL and behavioral code

Status
Not open for further replies.

vlsi_fanatic

Junior Member level 1
Joined
Aug 14, 2004
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
174
HI,

what is the difference between RTL and behavioral code? are there any tools to convert behavioral code to RTL code?
 

eda_wiz

Advanced Member level 2
Joined
Nov 7, 2001
Messages
654
Helped
58
Reputation
116
Reaction score
29
Trophy points
1,308
Activity points
6,195
rtl behavioral

Behavioural and RTL...
Hmmm.. I think it depends on the perception of the designers...

These days any synthesisable code is said as RTL Code.

And code that can only be simulated is behavioral code..
but some people say code which is implemented in a behvioral fashion without thinking of the actual circuit formed while synthesis, as behavioral code..

eg: using for loop.
 

FFly

Newbie level 4
Joined
Jan 24, 2005
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
67
rtl vs behavioral

I agree with whizkid.

However, digital designers usually use the term behavioural model for non-synthesizable models (faster to simulate and easy to debug) and the term RTL for the synthesizable models (although it might not be a pure RTL).
 

crazy_man

Member level 3
Joined
Dec 29, 2004
Messages
62
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,288
Activity points
411
rtl code vs behavioral code

both depends on how the programmers perceive it.. Almost all synthesisable codes are RTL.. in behavioral modelling (in VHDL) we have a whloe lot of conditional statements that go into the design.. RTL in its purest form will have connections between different basic elements...
 

semiconductorman

Full Member level 3
Joined
Dec 18, 2004
Messages
156
Helped
23
Reputation
46
Reaction score
4
Trophy points
1,298
Activity points
1,769
difference between behavioral code & rtl code

RTL - going by defintion is a coding style which explains logic between 2 registers or register and input/output port . When not coded in this way it used to be know as behavioral coding style as most synthesis tool then could not synthesise unless you followed RTL way of coding . But many synthesis tools are able to recongize logic even when code is not in RTL .
for ex.-
for (i = 0 ; i < 7; i = i + 1)
{
a = b [ i + 1] ;
@clock;
}
Although this is behavioral code get2chip tool of cadence is still able to convert this code to h/w .

But now a days behavioral code is usally ment to describe code which designer is not intreseted in converting to h/w . For example a code to immitate memoy blocks . This need not synthesised persay but used only to model the delays associated with the memory block . Hope this answers your question.
 

carrot

Full Member level 3
Joined
Feb 23, 2004
Messages
184
Helped
9
Reputation
18
Reaction score
4
Trophy points
1,298
Location
Bangalore, India
Activity points
1,532
rtl and behavioural of multiplier

In RTL design a circuit is described as a set of registers and a set of transfer functions describing the flow of data between the registers. In complex design,
this is main for hardware designer using synthesis

While coding in Behaviour the hardware designer is not much worried about synthesis, but only target is simulation..
 

vlsi_fanatic

Junior Member level 1
Joined
Aug 14, 2004
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
174
difference between behavioural and rtl

does "Ambit Buildgates" tool have the capability of understanding the behavioral level code and convert it to H/W?
 

smith_kang

Member level 5
Joined
Jan 22, 2005
Messages
90
Helped
4
Reputation
8
Reaction score
3
Trophy points
1,288
Activity points
861
coding rtl vs model

hi
RTL coding is describing the system in terms of expressions,clocks and registers,mannually binding operation to specific clocl periods.So everything is about how data tranfer takes place between registers WRT clocks.
Behavioral coding describe the design in algorithmic way that is the functionality is defined by which operation must occur not by how they are implemented in hardware.
 

arp

Junior Member level 3
Joined
Jan 27, 2005
Messages
31
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
318
rtl vs behavior

I agree with Smith_kang
Behavioural description is a programming the design using algos like in C
just it shows how the design works
where as RTL is the description of the function at block level where each block may be synthesizable
for example take a shift and add multiplier
in behavioural description it just shows how multipilcation is done using shifting operation like programming in C
where as in RTL it describes the registers, shifting operation in registers, control unit and so on..
 

no_mad

Full Member level 5
Joined
Dec 10, 2004
Messages
272
Helped
30
Reputation
60
Reaction score
11
Trophy points
1,298
Location
Naboo
Activity points
2,473
rtl versus behavioral

Basically, RTL design u need to think 'hardware' (what kind of block is required in ur design n register to register design)....

As for behavioural, u need to think and code as a flowchart of ur design.
 

zhangpengyu

Full Member level 3
Joined
Jun 28, 2004
Messages
172
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,298
Activity points
1,164
difference between behavioural and rtl modelling

RTL is register transfer level,it bases on fsm control and data transfer.
behavioural is modeling of hardware of higher level than RTL.
 

tutx

Full Member level 2
Joined
Mar 4, 2004
Messages
121
Helped
13
Reputation
26
Reaction score
1
Trophy points
1,298
Activity points
884
architecture rtl behavioral

RTL codes is synthesisable while Behavior is not. However if your purpose is to simulate what you design, behavior is better.
 

ken_ooi

Member level 1
Joined
Nov 13, 2003
Messages
33
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,288
Activity points
305
rtl and behavioral

RTL coding is structurer, we code base on the hardware arhictecture.
Behavioral coding is for simulation, to make sure the algorithm or functionality of the system work, without concerning the actual hardware architecture.
 

sarath51

Full Member level 2
Joined
Dec 11, 2002
Messages
134
Helped
11
Reputation
22
Reaction score
4
Trophy points
1,298
Activity points
985
behavioral vs. rtl

Broadly it can be said that RTL coding if for Syntheise and Behaviourial code is more for Wriiting testbenches, test code etc but each has its own significance and importance
 

atmaca

Full Member level 4
Joined
Jan 13, 2004
Messages
211
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,298
Activity points
1,556
Re: RTL Vs Behavioral

RTL codes is synthesisable code and descripts any hardware.
Behavioral modeling is for simulation only.
 

shakalaka

Junior Member level 3
Joined
Jul 19, 2003
Messages
31
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
324
Re: RTL Vs Behavioral

Hey all...
i agree with most of u....

RTL--- Synthesizable......and defines...architecture of the SOC.... and can not have capability to

Behavioral --- non-synthesizable............and using this one can simulate the functionality of the SOC...before it gets....streamed out.....and Non-synthesizable
 

ikru26

Banned
Joined
Feb 1, 2005
Messages
97
Helped
8
Reputation
16
Reaction score
7
Trophy points
1,288
Location
INDIA
Activity points
0
Re: RTL Vs Behavioral

Behavioural code: used to check the
functionality of the design.Mostly Cannot be synthesized.

RTL: it is jargon in design for the mixture of behavioural(part which can be synthesized) and dataflow modeling.


say we are implementing a multiplier.
then behavioural code will be


//behavioural
module Multiplication(i,o,i1);
input [3:0] i,i1;
output [7:0] o;
reg [7:0] o;

always @(i or i1)
o=multi(i,i1);

function [7:0] multi;
input [3:0] I,I1;
integer l;
reg C;
begin
{C,multi}=I*I1;
end
end
endfunction
endmodule







//rtl implementation



function [7:0] multi;
input [3:0] I,I1;
integer l;
reg C;
begin
multi=0;
for(l=0;l<4;l=l+1)
begin
if(I1[l]==1'b1)
{C,multi[7:4]}=multi[7:4]+I;
multi=multi>>1;
multi[7]=C;
C=1'b0;
end
end
endfunction
endmodule


In the former we realized the multiplier abstractly we but didnt mention how , in the latter
we showcased that it is through shift and add,
which can be implemented, as is the case with
today's processors where the multiplier unit is
hardwired or comes with math coprocessor.
 

bh_letters

Junior Member level 3
Joined
Feb 14, 2005
Messages
25
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,464
Re: RTL Vs Behavioral

hi all,

I agree with Wizkid, that the meaning of the terms RTL & Behavioral depends on the perception of the designers. Here we use the term System-Level Modeling to describe non-sysnthesizable code that is just used for simulations. RTL for sysnthesizable code.

We use the term Behavioral Model to describe high level description of a circuit that can be used to generate RTL model. The coding style and statements used to describe a Behavioral model are very resctricted. While compiling Behavioral code, user can control the clock cycle constraints by varying the number of pipeline stages. This allows user to quickly explore the design space by changing clock cycle constraints. The output of Behavioral Compiler will be an RTL code.
 

gerade

Advanced Member level 4
Joined
May 4, 2004
Messages
109
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Location
the hole eletron left behind
Activity points
1,014
Re: RTL Vs Behavioral

Hi, all,

is there any book or website regarding behavioral modelling available?

TNX in advances.

Gerade
 

visualart

Advanced Member level 1
Joined
Dec 21, 2001
Messages
467
Helped
28
Reputation
56
Reaction score
4
Trophy points
1,298
Activity points
3,333
RTL Vs Behavioral

Now, some tools may translate the C language to the RTL, Such as mentor graphicas
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top