<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Puzzle #5 &#8211; Binary-Gray</title>
	<atom:link href="http://asicdigitaldesign.wordpress.com/2007/06/12/puzzle-5-binary-gray/feed/" rel="self" type="application/rss+xml" />
	<link>http://asicdigitaldesign.wordpress.com/2007/06/12/puzzle-5-binary-gray/</link>
	<description>Tricks and Tips for ASIC Digital Designers</description>
	<lastBuildDate>Tue, 17 Nov 2009 20:00:40 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Puzzle #5 - Binary-Gray counters - solution &#171; Adventures in ASIC Digital Design</title>
		<link>http://asicdigitaldesign.wordpress.com/2007/06/12/puzzle-5-binary-gray/#comment-40</link>
		<dc:creator>Puzzle #5 - Binary-Gray counters - solution &#171; Adventures in ASIC Digital Design</dc:creator>
		<pubDate>Thu, 05 Jul 2007 13:50:38 +0000</pubDate>
		<guid isPermaLink="false">http://asicdigitaldesign.wordpress.com/2007/06/12/puzzle-5-binary-gray/#comment-40</guid>
		<description>[...] Layout&#160;Considerations    Puzzle #5 - Binary-Gray counters -&#160;solution July 5th, 2007   The binary-Gray puzzle from last week generated some flow of comments and emails. Basically, the important point to notice [...]</description>
		<content:encoded><![CDATA[<p>[...] Layout&nbsp;Considerations    Puzzle #5 &#8211; Binary-Gray counters -&nbsp;solution July 5th, 2007   The binary-Gray puzzle from last week generated some flow of comments and emails. Basically, the important point to notice [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nir Dahan</title>
		<link>http://asicdigitaldesign.wordpress.com/2007/06/12/puzzle-5-binary-gray/#comment-39</link>
		<dc:creator>Nir Dahan</dc:creator>
		<pubDate>Tue, 03 Jul 2007 09:52:27 +0000</pubDate>
		<guid isPermaLink="false">http://asicdigitaldesign.wordpress.com/2007/06/12/puzzle-5-binary-gray/#comment-39</guid>
		<description>correct solution!
in this specific case the binary counter is cheaper regarding power consumption.
This puzzle was inspired by a &quot;true story&quot; btw, maybe I will write about it sometime...</description>
		<content:encoded><![CDATA[<p>correct solution!<br />
in this specific case the binary counter is cheaper regarding power consumption.<br />
This puzzle was inspired by a &#8220;true story&#8221; btw, maybe I will write about it sometime&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sriram S</title>
		<link>http://asicdigitaldesign.wordpress.com/2007/06/12/puzzle-5-binary-gray/#comment-38</link>
		<dc:creator>Sriram S</dc:creator>
		<pubDate>Mon, 02 Jul 2007 17:51:48 +0000</pubDate>
		<guid isPermaLink="false">http://asicdigitaldesign.wordpress.com/2007/06/12/puzzle-5-binary-gray/#comment-38</guid>
		<description>Easy enough ...

Gray counter: Toggles 1-bit and there are 2^n counts to go through.  So total power for gray = 3P * (2^n)

Binary counter: Bit-0 toggles every count.  Bit-1 toggles half-rate, bit-2 toggles quarter-rate and so on.  So total power = total toggles * P

total toggles = (2^n)*(1 + (1/2) + (1/4) + ... + (1/(2^n-1)))
total toggles = 2^n * ( 1 * (1 - 1/(2^n))/(1/2) ) (using formula for geometric progression sum).

total toggles = 2*(2^n - 1)

total_binary_power = 2P * (2^n - 1)
total_gray_power = 3P * 2^n

So total_binary_power is ALWAYS smaller than total gray power regardless of value of n!</description>
		<content:encoded><![CDATA[<p>Easy enough &#8230;</p>
<p>Gray counter: Toggles 1-bit and there are 2^n counts to go through.  So total power for gray = 3P * (2^n)</p>
<p>Binary counter: Bit-0 toggles every count.  Bit-1 toggles half-rate, bit-2 toggles quarter-rate and so on.  So total power = total toggles * P</p>
<p>total toggles = (2^n)*(1 + (1/2) + (1/4) + &#8230; + (1/(2^n-1)))<br />
total toggles = 2^n * ( 1 * (1 &#8211; 1/(2^n))/(1/2) ) (using formula for geometric progression sum).</p>
<p>total toggles = 2*(2^n &#8211; 1)</p>
<p>total_binary_power = 2P * (2^n &#8211; 1)<br />
total_gray_power = 3P * 2^n</p>
<p>So total_binary_power is ALWAYS smaller than total gray power regardless of value of n!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Santhosh K.R</title>
		<link>http://asicdigitaldesign.wordpress.com/2007/06/12/puzzle-5-binary-gray/#comment-32</link>
		<dc:creator>Santhosh K.R</dc:creator>
		<pubDate>Fri, 29 Jun 2007 04:24:56 +0000</pubDate>
		<guid isPermaLink="false">http://asicdigitaldesign.wordpress.com/2007/06/12/puzzle-5-binary-gray/#comment-32</guid>
		<description>4 bit binary code will take 30P pwer because 

for counter from 0000 to 1111 it takes (1P+3P+7P+15P)

and counter resets from 1111 to 0000 so 4P

so totally 26P+4P</description>
		<content:encoded><![CDATA[<p>4 bit binary code will take 30P pwer because </p>
<p>for counter from 0000 to 1111 it takes (1P+3P+7P+15P)</p>
<p>and counter resets from 1111 to 0000 so 4P</p>
<p>so totally 26P+4P</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nirdahan</title>
		<link>http://asicdigitaldesign.wordpress.com/2007/06/12/puzzle-5-binary-gray/#comment-29</link>
		<dc:creator>nirdahan</dc:creator>
		<pubDate>Thu, 28 Jun 2007 14:54:34 +0000</pubDate>
		<guid isPermaLink="false">http://asicdigitaldesign.wordpress.com/2007/06/12/puzzle-5-binary-gray/#comment-29</guid>
		<description>I think you are way off regarding the amount of toggling in a binary counter. n! grows by far faster (it actually explodes) than 2*2^n = 2^(n+1).
You are on the right track - try to identify precisely how much does a binary counter toggle through a single cycle. You could basically list the values for 1 to 6 bits, it will give you an idea if not the general rule exactly.
If you are into sum of a series calculation you could get the precise info by doing some maths...</description>
		<content:encoded><![CDATA[<p>I think you are way off regarding the amount of toggling in a binary counter. n! grows by far faster (it actually explodes) than 2*2^n = 2^(n+1).<br />
You are on the right track &#8211; try to identify precisely how much does a binary counter toggle through a single cycle. You could basically list the values for 1 to 6 bits, it will give you an idea if not the general rule exactly.<br />
If you are into sum of a series calculation you could get the precise info by doing some maths&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ASHWATH BL</title>
		<link>http://asicdigitaldesign.wordpress.com/2007/06/12/puzzle-5-binary-gray/#comment-27</link>
		<dc:creator>ASHWATH BL</dc:creator>
		<pubDate>Thu, 28 Jun 2007 09:00:48 +0000</pubDate>
		<guid isPermaLink="false">http://asicdigitaldesign.wordpress.com/2007/06/12/puzzle-5-binary-gray/#comment-27</guid>
		<description>In binary encoding, for &#039;n&#039; bit wide counter, number of toggles will be around 2*2^n+(n!) [Approximately]. So it is slightly more than two times the gray counter togglings. Given the Gray counter consuming three times more power - Gray counter will always consume one third more power than binary counter[approximate].</description>
		<content:encoded><![CDATA[<p>In binary encoding, for &#8216;n&#8217; bit wide counter, number of toggles will be around 2*2^n+(n!) [Approximately]. So it is slightly more than two times the gray counter togglings. Given the Gray counter consuming three times more power &#8211; Gray counter will always consume one third more power than binary counter[approximate].</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nirdahan</title>
		<link>http://asicdigitaldesign.wordpress.com/2007/06/12/puzzle-5-binary-gray/#comment-24</link>
		<dc:creator>nirdahan</dc:creator>
		<pubDate>Wed, 27 Jun 2007 21:32:19 +0000</pubDate>
		<guid isPermaLink="false">http://asicdigitaldesign.wordpress.com/2007/06/12/puzzle-5-binary-gray/#comment-24</guid>
		<description>Your end result is right but the numbers are wrong.
The 4 bit Gray counter will have by definition 2^4 bits toggle and thus will consume 3*16=48 units of power.

The Binary counter will toggle 30 times through a complete counting cycle and thus will consume 30 units of power.

can you prove why, given the assumptions in the puzzle, the Gray counter will always consume more power? regardless of the number of bits!</description>
		<content:encoded><![CDATA[<p>Your end result is right but the numbers are wrong.<br />
The 4 bit Gray counter will have by definition 2^4 bits toggle and thus will consume 3*16=48 units of power.</p>
<p>The Binary counter will toggle 30 times through a complete counting cycle and thus will consume 30 units of power.</p>
<p>can you prove why, given the assumptions in the puzzle, the Gray counter will always consume more power? regardless of the number of bits!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Santhosh K,R</title>
		<link>http://asicdigitaldesign.wordpress.com/2007/06/12/puzzle-5-binary-gray/#comment-21</link>
		<dc:creator>Santhosh K,R</dc:creator>
		<pubDate>Wed, 27 Jun 2007 19:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://asicdigitaldesign.wordpress.com/2007/06/12/puzzle-5-binary-gray/#comment-21</guid>
		<description>Gray Counter consumes more power.
Assume 4 bit counter.

Gray Counter takes (3P+6P+12P+24P) = 45P

Binary Counter takes(1P+3P+7P+15P) = 26P

You can list the Truth Table for both counters and list down, how many times each bit toggles.</description>
		<content:encoded><![CDATA[<p>Gray Counter consumes more power.<br />
Assume 4 bit counter.</p>
<p>Gray Counter takes (3P+6P+12P+24P) = 45P</p>
<p>Binary Counter takes(1P+3P+7P+15P) = 26P</p>
<p>You can list the Truth Table for both counters and list down, how many times each bit toggles.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nirdahan</title>
		<link>http://asicdigitaldesign.wordpress.com/2007/06/12/puzzle-5-binary-gray/#comment-9</link>
		<dc:creator>nirdahan</dc:creator>
		<pubDate>Thu, 14 Jun 2007 07:20:30 +0000</pubDate>
		<guid isPermaLink="false">http://asicdigitaldesign.wordpress.com/2007/06/12/puzzle-5-binary-gray/#comment-9</guid>
		<description>The answer is irrelevant of n ...</description>
		<content:encoded><![CDATA[<p>The answer is irrelevant of n &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: edoardo</title>
		<link>http://asicdigitaldesign.wordpress.com/2007/06/12/puzzle-5-binary-gray/#comment-8</link>
		<dc:creator>edoardo</dc:creator>
		<pubDate>Thu, 14 Jun 2007 05:47:43 +0000</pubDate>
		<guid isPermaLink="false">http://asicdigitaldesign.wordpress.com/2007/06/12/puzzle-5-binary-gray/#comment-8</guid>
		<description>Didn&#039;t you forget to tell what n is?
:-))</description>
		<content:encoded><![CDATA[<p>Didn&#8217;t you forget to tell what n is?<br />
 <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> )</p>
]]></content:encoded>
	</item>
</channel>
</rss>
