delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2012/02/20/19:28:22

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Tue, 21 Feb 2012 01:27:31 +0100
From: Kai-Martin <kmk AT familieknaak DOT de>
Subject: Re: [geda-user] verilog question - blocking/non-blocking
To: geda-user AT delorie DOT com
In-Reply-To: <4F41CB0A.2020902@optonline.net> (from geneglick@optonline.net
on Mon Feb 20 05:24:42 2012)
X-Mailer: Balsa 2.4.10
Message-Id: <1329784073.7768.0@kwak>
MIME-Version: 1.0
X-Spam_score: -2.9
X-Spam_bar: --
X-Provags-ID: V02:K0:WY49eGWfkQeQTCRoKM+TFaTRk8gRKyQvnARbqkfYfy5
MkcV3PO/gM7I+/TwfxyZjwdFm3Gr5vr3llI42dLTYfmwGOBtR7
bW14gpp9Te9sGdM+/LYM3p9ByQo+jDeP8AfHHIGiJ3Po72l8o8
Vb7ZYQtBvBgMbY/k1GgnVAqkzNKtYoiKrjxmd6tw5YStmvdSME
MsO2iiWz6G1ARAeQkwkQtTA28uon1je9I+Lbj28POXoFgMPwja
ZGHir81GTHAJZKLQhMF0V/QyCb49MBspgwZ06VQXEQyoqzyoeh
TmGFUm8h1coNHF+MtmYgdiI4HdH
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

--=-9W6nANSdvDUptqf45+OG
Content-Type: text/plain; charset=ISO-8859-1; DelSp=Yes; Format=Flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 02/20/2012 05:24:42 AM, gene glick wrote:

> always @(posedge clk)
>  begin
>     count <=3D count + 1;   // non-blocking method
>     if (count =3D=3D 0)
>       do_something
>  end
> -------------------------------------------
(...)
> The second way, do_something occurs when the count is 1. Subtle
> difference. I don't have a synthesis tool ready to run, otherwise
> I'd try it. Question : does one method synthesize significantly
> different logic than the other?

Don't know about verilog. But VHDL compilers complain and refuse to
synthesize such constructs inside a block. A block is the VHDL way to
say that things should be done in parallel. Inside a process the snippet
would be fine, since commands are executed sequentially.

---<)kaimartin(>---
--=20
Kai-Martin Knaak
Email: kmk AT familieknaak DOT de
=D6ffentlicher PGP-Schl=FCssel:
http://pool.sks-keyservers.net:11371/pks/lookup?search=3D0x6C0B9F53=

--=-9W6nANSdvDUptqf45+OG
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEABECAAYFAk9C5PgACgkQt9RkiGwLn1PL8QCeLbevVaeUQPDlnUHsVAf+znI2
uXgAoIvdcbgz+v2ZWrkV3qWuAVNIW7Ht
=S2Aa
-----END PGP SIGNATURE-----

--=-9W6nANSdvDUptqf45+OG--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019