# Fwd: Nand D flipflop in gnuradio

**URL:** <https://www.ruby-forum.com/t/fwd-nand-d-flipflop-in-gnuradio/238296>\
**Category:** GNU Radio\
**Created:** [January 2, 2014, 5:35am UTC](https://www.ruby-forum.com/t/fwd-nand-d-flipflop-in-gnuradio/238296 "2014-01-02T05:35:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [January 2, 2014, 5:35am UTC](https://www.ruby-forum.com/t/fwd-nand-d-flipflop-in-gnuradio/238296/1 "2014-01-02T05:35:44Z")

</div>

Hi ,

```
   Thank you for the replies. But i don't know much about 

```

programming  
so can anyone tell me how do i change the work function of block so that  
I  
can make it work.

Thanks  
sandhya

---------- Forwarded message ----------  
From: MHMND Herath [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Date: Wed, Jan 1, 2014 at 11:10 PM  
Subject: Re: [Discuss-gnuradio] Nand D flipflop in gnuradio  
To: Sandhya G [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

NAND can implement easily by creating C++ block and take input as what  
you  
want.  
if (in0[i]==1 && in1[i]==1)  
{  
out[i]=0;  
}  
else  
{  
out[i]=1;  
}

see Block structure how C++ work function and coding two inputs in c++

Neil

---------- Original Message -----------  
From: Sandhya G [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: “removed\_email\_address@domain.invalid” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: Mon, 30 Dec 2013 12:26:29 +0530  
Subject: [Discuss-gnuradio] Nand D flipflop in gnuradio

> sandhya  
> ------- End of Original Message -------

---

<div class="post-metadata">

**Author:** ![sandhya\_g](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/47e85d/32.png) [@sandhya\_g](https://www.ruby-forum.com/u/sandhya_g)\
**Post date:** [January 2, 2014, 10:24am UTC](https://www.ruby-forum.com/t/fwd-nand-d-flipflop-in-gnuradio/238296/2 "2014-01-02T10:24:51Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Hi Sandhya,  
refer to the gnuradio website on how to get started using GNU Radio  
and creating your first blocks, especially “How to write an  
out-of-tree (OOT) module” on the front page. However, maybe you want  
to get a little experience in programming if you want to start  
developing with GNU Radio; there is a lot of literature and tutorials  
out there that help you getting to terms with programming and C++. GNU  
Radio wouldn’t be the kind of framework I’d suggest for someone who  
says that he “doesn’t know much about programming” to get a start into  
programming. It is a little big, mixes different paradigms, has a  
cross-language interface and is generally complex in some aspects.

However, it is a very good idea to get an impression of the Python  
code that actually makes up a flowgraph. I think especially a beginner  
might learn quite a lot if he thoroughly understands the “Getting  
Started” section on the website. So I’d say: Get your favourite python  
book, and understand what’s happening “How to write python  
applications” (on the front page of [gnuradio.org](http://gnuradio.org)), then look further  
from there.

Happy hacking,  
Marcus

On 02.01.2014 05:34, Sandhya G wrote:

> ---------- Forwarded message ---------- From: MHMND Herath  
> c++
> 
> > 
> 
> ------- End of Original Message -------
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Discuss-gnuradio  
> mailing list [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1  
Comment: Using GnuPG with Thunderbird - [http://www.enigmail.net/](http://www.enigmail.net/)

iQEcBAEBAgAGBQJSxTAUAAoJEAFxB7BbsDrL2aAH/jblQVkUZXoL6Az75hGqOyj2  
Xcy4sYV2ZG/RDyVisJdub/jNQekJSJlUtpfTLXlQQLZ7RIZm24hBVozpVYg8dg4s  
YvZ1h5VwninZebwG+p1ejQYb5FSUq6MgcibNnoievhYYkqwzO6DJ/NcF7eUpZKin  
0v2vvV+7bYXBm9DK/A3hd8VhhB1gMrC9Hdi6S34b2Gn3MbI8ajeaq0Na/B8W7v50  
smUR2bRygYd3N2ntk0osAdXDJVhXcOgZ0ftDKBOA04jXtTrXdbSGmh/V/byMO5CG  
uKBGvU5hhUltL7lDEnVpPZak15wIu9ymfHap4qFvGb7ftQRwOJqfwtpE2U8rvb8=  
=KwRM  
-----END PGP SIGNATURE-----
