Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

C Code. C Code Run. Run, Code, RUN! PLEASE!!!!


devel / comp.lang.vhdl / VHDL Blocks Seen As Useful

SubjectAuthor
o VHDL Blocks Seen As Usefullittlewing

1
VHDL Blocks Seen As Useful

<ufc2to$1k7t1$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=183&group=comp.lang.vhdl#183

  copy link   Newsgroups: comp.lang.vhdl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: efr11@columbia.edu (littlewing)
Newsgroups: comp.lang.vhdl
Subject: VHDL Blocks Seen As Useful
Date: Sun, 1 Oct 2023 11:23:35 -0400
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <ufc2to$1k7t1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 1 Oct 2023 15:23:36 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="00e7f282802d7e2a7b948cbe3357d9e4";
logging-data="1712033"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+HDfR67agkqVqwnzsntxerDOtH20BshiY="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Cancel-Lock: sha1:bs4+SHqaJ7GYFlbqF+ZVUmJUi38=
Content-Language: en-US
 by: littlewing - Sun, 1 Oct 2023 15:23 UTC

One of my VHDL textbooks does not mention VHDL Blocks at all, the other
grudgingly admits to their existence but recommends against using them.
One online advice respondent says "never use blocks".

I like VHDL blocks and use them all the time.

1. They help me organize long files and let me reuse common names.
For example, a large architecture might have 3 or 4 state machines. I
write boilerplate state machine code with "type state_t is (...);" and
"signal state, next_state : state_t:", with each state machine in its
own block. You don't have to invent new names. On the other hand, you
must give blocks names: choose informative names and it helps with
documentation.

2. My editor notepad++ handles blocks nicely. I can "collapse" blocks
to navigate within files easily.

3. The Xilinx default simulator hierarchy viewer handles blocks nicely.
When I hover over a signal in the waveform viewer, the tooltip tells
my what block the signal is in.

I agree with the common advice to not use blocks when component
instantiations would be more appropriate.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor