Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Make sure your code does nothing gracefully.


devel / comp.lang.vhdl / Concurrent assignment to a non-net q is not permitted

SubjectAuthor
* Concurrent assignment to a non-net q is not permittedIndrayudh Nandy
+- Concurrent assignment to a non-net q is not permittedRichard Damon
`- Concurrent assignment to a non-net q is not permittedgnuarm.del...@gmail.com

1
Concurrent assignment to a non-net q is not permitted

<3b5ddcd2-3780-4a34-8920-a92ff15966f4n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.vhdl
X-Received: by 2002:ad4:5884:0:b0:626:adc:33c9 with SMTP id dz4-20020ad45884000000b006260adc33c9mr280352qvb.8.1686307457292;
Fri, 09 Jun 2023 03:44:17 -0700 (PDT)
X-Received: by 2002:a25:4609:0:b0:bac:fd27:28c1 with SMTP id
t9-20020a254609000000b00bacfd2728c1mr643963yba.0.1686307456970; Fri, 09 Jun
2023 03:44:16 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.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: Fri, 9 Jun 2023 03:44:16 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=14.139.223.179; posting-account=mIL4xwoAAAAv_nFqPqsic7jPEiC9TYgI
NNTP-Posting-Host: 14.139.223.179
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3b5ddcd2-3780-4a34-8920-a92ff15966f4n@googlegroups.com>
Subject: Concurrent assignment to a non-net q is not permitted
From: indrayudh52@gmail.com (Indrayudh Nandy)
Injection-Date: Fri, 09 Jun 2023 10:44:17 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1423
 by: Indrayudh Nandy - Fri, 9 Jun 2023 10:44 UTC

Hi,
I am facing this error in vivado while writing a code for conversion of D flip flop to JK flip flop.
Here is my code :
module D_to_jk(j,k,clk,rst,q);
input j,k,clk,rst;
output reg q;
wire w1,w2,w3,w4;
wire q_bar;
assign w1=~k;
assign q_bar= ~q;
assign w2= j&q_bar;
assign w3= w1&q;
assign w4= w2|w3;
D d(w4,clk,rst,q);
endmodule

Please point me out the error so that I may rectify.
Thanks
Indrayudh

Re: Concurrent assignment to a non-net q is not permitted

<6fHgM.1002$Yxn4.359@fx38.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.vhdl
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx38.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.11.2
Subject: Re: Concurrent assignment to a non-net q is not permitted
Newsgroups: comp.lang.vhdl
References: <3b5ddcd2-3780-4a34-8920-a92ff15966f4n@googlegroups.com>
From: Richard@Damon-Family.org (Richard Damon)
Content-Language: en-US
In-Reply-To: <3b5ddcd2-3780-4a34-8920-a92ff15966f4n@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 23
Message-ID: <6fHgM.1002$Yxn4.359@fx38.iad>
X-Complaints-To: abuse@easynews.com
Organization: Forte - www.forteinc.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Fri, 9 Jun 2023 11:07:46 -0400
X-Received-Bytes: 1493
 by: Richard Damon - Fri, 9 Jun 2023 15:07 UTC

On 6/9/23 6:44 AM, Indrayudh Nandy wrote:
> Hi,
> I am facing this error in vivado while writing a code for conversion of D flip flop to JK flip flop.
> Here is my code :
> module D_to_jk(j,k,clk,rst,q);
> input j,k,clk,rst;
> output reg q;
> wire w1,w2,w3,w4;
> wire q_bar;
> assign w1=~k;
> assign q_bar= ~q;
> assign w2= j&q_bar;
> assign w3= w1&q;
> assign w4= w2|w3;
> D d(w4,clk,rst,q);
> endmodule
>
> Please point me out the error so that I may rectify.
> Thanks
> Indrayudh

YOUR q needs to be a wire which you are connecting to the actual reg
which will be in the D primative.

Re: Concurrent assignment to a non-net q is not permitted

<5c9c2b21-835b-41bd-a906-11febaeb4810n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.vhdl
X-Received: by 2002:ad4:4b32:0:b0:626:2413:900e with SMTP id s18-20020ad44b32000000b006262413900emr488891qvw.4.1686353565444;
Fri, 09 Jun 2023 16:32:45 -0700 (PDT)
X-Received: by 2002:a25:ab87:0:b0:bac:3439:4f59 with SMTP id
v7-20020a25ab87000000b00bac34394f59mr1492028ybi.2.1686353565140; Fri, 09 Jun
2023 16:32:45 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.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: Fri, 9 Jun 2023 16:32:44 -0700 (PDT)
In-Reply-To: <3b5ddcd2-3780-4a34-8920-a92ff15966f4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=65.207.89.54; posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 65.207.89.54
References: <3b5ddcd2-3780-4a34-8920-a92ff15966f4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5c9c2b21-835b-41bd-a906-11febaeb4810n@googlegroups.com>
Subject: Re: Concurrent assignment to a non-net q is not permitted
From: gnuarm.deletethisbit@gmail.com (gnuarm.del...@gmail.com)
Injection-Date: Fri, 09 Jun 2023 23:32:45 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2034
 by: gnuarm.del...@gmail. - Fri, 9 Jun 2023 23:32 UTC

On Friday, June 9, 2023 at 6:44:18 AM UTC-4, Indrayudh Nandy wrote:
> Hi,
> I am facing this error in vivado while writing a code for conversion of D flip flop to JK flip flop.
> Here is my code :
> module D_to_jk(j,k,clk,rst,q);
> input j,k,clk,rst;
> output reg q;
> wire w1,w2,w3,w4;
> wire q_bar;
> assign w1=~k;
> assign q_bar= ~q;
> assign w2= j&q_bar;
> assign w3= w1&q;
> assign w4= w2|w3;
> D d(w4,clk,rst,q);
> endmodule
>
> Please point me out the error so that I may rectify.
> Thanks
> Indrayudh

I think your biggest error, is trying to compile a Verilog program with a VHDL tool, perhaps?

--

Rick C.

- Get 1,000 miles of free Supercharging
- Tesla referral code - https://ts.la/richard11209

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor