<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shema Festus on Medium]]></title>
        <description><![CDATA[Stories by Shema Festus on Medium]]></description>
        <link>https://medium.com/@shemafestus?source=rss-e963977c4a0a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*QHV9MbH1qODFn3my.jpg</url>
            <title>Stories by Shema Festus on Medium</title>
            <link>https://medium.com/@shemafestus?source=rss-e963977c4a0a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 21:13:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shemafestus/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[So, about floating point operations on FPGAs.]]></title>
            <link>https://medium.com/@shemafestus/so-about-floating-points-operations-on-fpgas-346a3a3bd64c?source=rss-e963977c4a0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/346a3a3bd64c</guid>
            <category><![CDATA[fpga]]></category>
            <category><![CDATA[q-format]]></category>
            <category><![CDATA[hardware-accelerator]]></category>
            <category><![CDATA[floating-point-operations]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Shema Festus]]></dc:creator>
            <pubDate>Thu, 13 Jul 2017 01:48:17 GMT</pubDate>
            <atom:updated>2017-07-13T15:10:33.536Z</atom:updated>
            <content:encoded><![CDATA[<p>All these years I have been struggling to write FPGA applications that employ floating point operations and not one of you, basangirangendo bo muri graduate school (fellow graduate students in my network), ever told me about Qformat? Smh.</p><p>Anyways, today I found out about Qformat representation and I realized I wasn’t living right. Wikipedia <a href="https://en.wikipedia.org/wiki/Q_(number_format)">defines</a> this is as a fixed number representation where fractional bits are specified. For example, a Q8.8 means the number has 8 bits for the integer component and 8 bits for the fractional component. These Q numbers are “stored and operated on as regular signed integers”! This means that you can now use them to implement you favorite ML algorithm on hardware without losing much resolution. Speaking of resolution, it’s important that you know the range of your inputs so that you can choose a Qformat (Q2.14, Q3.14, Q1.15, etc.) that’s going to maintain your desired precision since you are basically trading precision for storage (i.e. the number of bits).</p><p>The links below go into details about what Qformat is and how to perform floating point to fixed Qformat point conversion. They also discuss how to perform some basic math operations with Q numbers. You can use <a href="http://www.boost.org/doc/libs/1_64_0/libs/test/doc/html/index.html">Boost</a> library unit test facilities to verify the correctness of your conversion and of your operations.</p><p>Enjoy!</p><ul><li><a href="https://en.wikipedia.org/wiki/Q_(number_format)">Q (number format) - Wikipedia</a></li><li><a href="https://sestevenson.wordpress.com/tag/q15/">Shawn&#39;s DSP Tutorials</a></li><li><a href="http://www.boost.org/doc/libs/1_36_0/libs/test/doc/html/utf.html">Part IV. Boost Test Library: The Unit Test Framework</a></li></ul><iframe src="https://drive.google.com/viewerng/viewer?url=https%3A//ee.sharif.edu/%7Edigitalvlsi/Docs/Fixed-Point.pdf&amp;embedded=true" width="600" height="780" frameborder="0" scrolling="no"><a href="https://medium.com/media/908c0f1b42098a46d670d7a89e3ca67a/href">https://medium.com/media/908c0f1b42098a46d670d7a89e3ca67a/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=346a3a3bd64c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>