Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > block

Reply
Thread Tools

block

 
 
Mike Treseler
Guest
Posts: n/a
 
      04-07-2004
"Steve" <> wrote in message news:<c516s3$96f$>...

> Why do people use the block command in VHDL? For example:
>
> state_machine : block
> etc
> etc


It would allow you to limit the scope of
signals and other declarations that would
otherwise span the architecture.

I find it less trouble to use a variable
in process scope for this purpose.

I have never seen a block statement
used outside of a textbook except
as a band-aid for vhdl-87 generate statements.

I expect that someone has found a good use for it.

-- Mike Treseler
 
Reply With Quote
 
 
 
 
Steve
Guest
Posts: n/a
 
      04-07-2004
Hi,

Why do people use the block command in VHDL? For example:

state_machine : block
etc
etc

I've done a search in google but can find no answers. I was wondering what
affect it has on the code.

Thanks,


 
Reply With Quote
 
 
 
 
Jim Lewis
Guest
Posts: n/a
 
      04-07-2004
Block statement in its simple form creates a
logical level of hierarchy in the VHDL code.
With synthesis commands you can force this to become
an actual level of hierarchy. I have used this
to partition logic that ran into synthesis issues.

Realistically I only use it reactively for
troubleshooting.

Cheers,
Jim

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~
Jim Lewis
Director of Training private.php?do=newpm&u=
SynthWorks Design Inc. http://www.SynthWorks.com
1-503-590-4787

Expert VHDL Training for Hardware Design and Verification
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~

Steve wrote:
> Hi,
>
> Why do people use the block command in VHDL? For example:
>
> state_machine : block
> etc
> etc
>
> I've done a search in google but can find no answers. I was wondering what
> affect it has on the code.
>
> Thanks,
>
>



 
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
Fo:Block can you check to see if a block contains any text by using the block id? morrell XML 1 10-10-2006 07:18 PM
Problem with enterprise application block - data block Showjumper ASP .Net 1 03-19-2005 03:48 PM
Block DIV within a block DIV? Noozer HTML 3 01-06-2005 10:24 PM
XML schema validation of one xml block based on values from another xml block Andy XML 0 11-18-2004 11:04 PM



Advertisments