Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

I've got a bad feeling about this.


devel / comp.lang.vhdl / Re: Conditional compilation in VHDL?

SubjectAuthor
o Conditional compilation in VHDL?jeevan DJ

1
Re: Conditional compilation in VHDL?

<1772c39f-c38e-423d-8c09-e3c83ec873cfn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.vhdl
X-Received: by 2002:a05:622a:1452:b0:344:51de:cc10 with SMTP id v18-20020a05622a145200b0034451decc10mr2806342qtx.432.1660833055661;
Thu, 18 Aug 2022 07:30:55 -0700 (PDT)
X-Received: by 2002:a25:af8e:0:b0:67c:3f7:e8eb with SMTP id
g14-20020a25af8e000000b0067c03f7e8ebmr3142033ybh.646.1660833054928; Thu, 18
Aug 2022 07:30:54 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.vhdl
Date: Thu, 18 Aug 2022 07:30:54 -0700 (PDT)
In-Reply-To: <av3h3c$bj1gi$3@ID-8609.news.dfncis.de>
Injection-Info: google-groups.googlegroups.com; posting-host=139.174.228.250; posting-account=R8k_DQoAAACXMD4Erl3y5tsnY0AOBn7Q
NNTP-Posting-Host: 139.174.228.250
References: <2c529f55.0212240612.6371c919@posting.google.com>
<aunacv$8grk1$1@ID-8609.news.dfncis.de> <3E14EDBD.4892AC2E@ieee.org> <av3h3c$bj1gi$3@ID-8609.news.dfncis.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1772c39f-c38e-423d-8c09-e3c83ec873cfn@googlegroups.com>
Subject: Re: Conditional compilation in VHDL?
From: jeevannaidu516@gmail.com (jeevan DJ)
Injection-Date: Thu, 18 Aug 2022 14:30:55 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2793
 by: jeevan DJ - Thu, 18 Aug 2022 14:30 UTC

On Friday, January 3, 2003 at 9:19:11 AM UTC+1, Ralf Hildebrandt wrote:
> Hi Clyde!
> [quote repaired]
> >>>Does anything exist in VHDL equivalent to verilog conditional
> >>>compilation directive ( `ifdef .... `else .... `endif )
> >>Just use constants.
> > This does not work in Synplify.... It required a signal.
> This a plain VHDL - this should work everywhere.
> define a constant:
> constant switchA : integer:=1; -- 1 enabled / 0 disabled
>
> Feed this constant through an entitiy to a lower component:
> entity compA is
> generic(
> switchA : integer:=1 );
> port( -- and so on...
> );
> end compA;
>
> Instantiate this component in the top component (where the constat is
> defined).
> Within compA use the constant:
>
> process(in1,in2)
> begin
> if (switchA=1) then
> out1<=in1 AND in2;
> else out1<=in1;
> end if;
> end process;
>
> As you can see - the constant defines, if and AND-gate is inferred or a
> simple wire is taken.
>
> With the uses of constants if have written a several extras for a
> microcontroller, that all can be disabled, if one changes the constant.
> Hint: If you synthesize just compA to test the synthesized components
> within the behavioral top-component, you have to change the default
> value of the constant within the entity AND where the constant is
> defined in the top-component.
>
> Your synthesis tool will warn you, that an expression is never reached.
> (In my examle: the else-statement.)
> Ralf
Hi,
Can anyone say how to address schemes and write a byte code?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor