Re: Block return values (myhdl.BlockError)

Jan Decaluwe <[email protected]> Tue, 17 May 2016 15:24:26 +0200
Newsgroups gmane.comp.python.myhdl
Organization resources
Message-ID <[email protected]>
On 13/05/16 16:45, Jos Huisken wrote:
> Jan Decaluwe <jan <at> jandecaluwe.com> writes:
>
>> I have nothing against collecting good ideas.
>>
>> However, for this specific feature, I am unconvinced
>> that the additional complexity is warranted. I may
>> change that opinion with future evidence - until
>> now it has only been brought up once as an alternative
>> possibility and does not seem enough.
>
> I didn't expect to raise such discussion ;-), and I guess we have to give
> it more thought. I have used all kinds of return values, next to Signals,
> especially in testbenches. The example I showed was a small part of a
> template based testbench+design which I will revisit, hopefully soon,
> with the current simplification.

For the record: the problem is limited to the return
values of blocks themselves. You will need to use
blocks for certain applications, but you are not
forced to use them for all modeling applications.

You can still use blocks within non-blocks and then
do whatever you want in terms of return values or
other sophisticated techniques.

The current Simulation API will remain available
to simulate such cases, in test benches or for
high-level modeling.

Blocks are merely intended to make hiearchy extraction
easier and much more robust, as needed for the important
sub-applications of conversion and signal tracing.

Jan


-- 
Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com
   Python as a HDL: http://www.myhdl.org
   VHDL development, the modern way: http://www.sigasi.com
   Urubu, a static website CMS: http://urubu.jandecaluwe.com


------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j