<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'subtraction of negative number' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'subtraction of negative number' posted on the 'Electronics development' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Wed, 19 Jun 2013 15:40:33 -0700</pubDate>
    <lastBuildDate>Wed, 19 Jun 2013 15:40:33 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>subtraction of negative number</title>
      <link>http://www.programmersheaven.com/mb/electronics/427043/427043/subtraction-of-negative-number/</link>
      <description>Hi&lt;br /&gt;
&lt;br /&gt;
i am trying ot subtract a negative number as follows:&lt;br /&gt;
&lt;br /&gt;
use ieee.std_logic_numeric.all&lt;br /&gt;
&lt;br /&gt;
constant a  signed(16 downto 0):= '0' &amp;amp; x"8000";&lt;br /&gt;
constant b  signed(16 downto 0):= '1' &amp;amp; x"0030";&lt;br /&gt;
&lt;br /&gt;
signal c    signed(16 downto 0);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c &amp;lt;= a - b; &lt;br /&gt;
&lt;br /&gt;
c should be 32816 but i get 32720&lt;br /&gt;
&lt;br /&gt;
please help&lt;br /&gt;
&lt;br /&gt;
Many thanks&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/427043/427043/subtraction-of-negative-number/</guid>
      <pubDate>Thu, 26 Jan 2012 13:35:33 -0700</pubDate>
      <category>Electronics development</category>
    </item>
  </channel>
</rss>