![]() |
|
|
|
#1 |
|
Hi,
I just wanted to ask which is prefered style of coding...behavioral or structural? Which among the two fit into FPGA easily? Thanks. bxbxb3 |
|
|
|
|
#2 |
|
Posts: n/a
|
Behavioral is mainly for testbenches and simulation, structural is the style
for implementation on FPGAs/CPLDs/ASICs. Christian Gelinek |
|
|
|
#3 |
|
Posts: n/a
|
bxbxb3 wrote:
> I just wanted to ask which is prefered style of coding...behavioral or > structural? If you have got a core of a subcomponent - use it. Somebody has done the work for you and you don't need to do it again unless you try to do it better or you try to expand it. -> structural If you have a huge project - split it into smaller parts. This is more readable for humans and the parts can be synthesized and tested separately. -> structural Don't break down hierarchy to the gates. (Don't try to model an adder through instantiation of fulladder cells - use the power of your synthesis tool which can do this better.) Find a balance between splitting your design in parts and modelling something in one component. -> behavioral Try to write target-indipendent code as long as possible. (Do not use primitive cells (except you /really/ need it). If you use IP cores, encapsulate them into a common entity making it exchangeable by a different IP core with the same functionality.) -> behavioral > Which among the two fit into FPGA easily? Not the target is important but the synthesis tool! (Write target-indipendent code.) If your code can be synthesized (and it performs well), everything is o.k.. There are several other facts, that become important after choosing your target: * latches allowed? * (a)synchronous resets? everytime? * both clock edges? * divided clocks? .... But this is indipendent from behavioral / structural design. Ralf Ralf Hildebrandt |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OT: Blu-Ray Region Coding | RL | DVD Video | 11 | 12-11-2007 04:04 AM |
| Blockbuster Wants Region Coding To End. | Scot Gardner | DVD Video | 31 | 12-13-2003 02:45 AM |
| Re: The purpose of dvd region coding? | Shouse | DVD Video | 1 | 09-02-2003 05:47 PM |
| Re: The purpose of dvd region coding? | keved | DVD Video | 0 | 08-31-2003 05:11 AM |
| Re: The purpose of dvd region coding? | Mobutu | DVD Video | 0 | 08-31-2003 03:54 AM |