<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Electronics development Forum RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest threads from the 'Electronics development' forum at Programmer's Heaven, excluding replies.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Thu, 09 Feb 2012 06:34:44 -0800</pubDate>
    <lastBuildDate>Thu, 09 Feb 2012 06:34:44 -0800</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 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>simple multiplier/devider</title>
      <link>http://www.programmersheaven.com/mb/electronics/426914/426914/simple-multiplierdevider/</link>
      <description>hello,&lt;br /&gt;
 i need your help with the folowing code.&lt;br /&gt;
&lt;br /&gt;
The circuit has two 8 bit integer inputs a and b and two integer outputs x and y when x=a*b and y=a/2.&lt;br /&gt;
The code must be concurrent. &lt;br /&gt;
&lt;br /&gt;
Here is what i wrote:&lt;br /&gt;
&lt;br /&gt;
library IEEE;&lt;br /&gt;
use IEEE.STD_LOGIC_1164.ALL;&lt;br /&gt;
use ieee.std_logic_arith.all;&lt;br /&gt;
&lt;br /&gt;
package my_data_types is&lt;br /&gt;
type integer_input is array (7 downto 0) of integer range -8 to 8;&lt;br /&gt;
end my_data_types;&lt;br /&gt;
&lt;br /&gt;
library IEEE;&lt;br /&gt;
use IEEE.STD_LOGIC_1164.ALL;&lt;br /&gt;
use ieee.std_logic_arith.all;&lt;br /&gt;
&lt;br /&gt;
entity mul_dev is&lt;br /&gt;
port (a,b: in integer_input(7 downto 0);&lt;br /&gt;
		x,y: out integer_input (7 downto 0));&lt;br /&gt;
end mul_dev;&lt;br /&gt;
&lt;br /&gt;
architecture Behavioral of mul_dev is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
begin&lt;br /&gt;
&lt;br /&gt;
x&amp;lt;= (a*b);&lt;br /&gt;
y&amp;lt;= (a/2);&lt;br /&gt;
end Behavioral;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I'm using xillinx ise progect navigator to simulate and i get the following errors:&lt;br /&gt;
&amp;lt;integer_input&amp;gt; is not declared.&lt;br /&gt;
Entity &amp;lt;mul_dev&amp;gt; is not yet compiled.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It seems he won't accept the pre defined array, what coul be the problem?&lt;br /&gt;
&lt;br /&gt;
10x!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/426914/426914/simple-multiplierdevider/</guid>
      <pubDate>Sun, 22 Jan 2012 05:09:54 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>simple multiplier/devider</title>
      <link>http://www.programmersheaven.com/mb/electronics/426913/426913/simple-multiplierdevider/</link>
      <description>hello,&lt;br /&gt;
 i need your help with the folowing code.&lt;br /&gt;
&lt;br /&gt;
The circuit has two 8 bit integer inputs a and b and two integer outputs x and y when x=a*b and y=a/2.&lt;br /&gt;
The code must be concurrent. &lt;br /&gt;
&lt;br /&gt;
Here is what i wrote:&lt;br /&gt;
&lt;br /&gt;
library IEEE;&lt;br /&gt;
use IEEE.STD_LOGIC_1164.ALL;&lt;br /&gt;
use ieee.std_logic_arith.all;&lt;br /&gt;
&lt;br /&gt;
package my_data_types is&lt;br /&gt;
type integer_input is array (7 downto 0) of integer range -8 to 8;&lt;br /&gt;
end my_data_types;&lt;br /&gt;
&lt;br /&gt;
library IEEE;&lt;br /&gt;
use IEEE.STD_LOGIC_1164.ALL;&lt;br /&gt;
use ieee.std_logic_arith.all;&lt;br /&gt;
&lt;br /&gt;
entity mul_dev is&lt;br /&gt;
port (a,b: in integer_input(7 downto 0);&lt;br /&gt;
		x,y: out integer_input (7 downto 0));&lt;br /&gt;
end mul_dev;&lt;br /&gt;
&lt;br /&gt;
architecture Behavioral of mul_dev is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
begin&lt;br /&gt;
&lt;br /&gt;
x&amp;lt;= (a*b);&lt;br /&gt;
y&amp;lt;= (a/2);&lt;br /&gt;
end Behavioral;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I'm using xillinx ise progect navigator to simulate and i get the following errors:&lt;br /&gt;
&amp;lt;integer_input&amp;gt; is not declared.&lt;br /&gt;
Entity &amp;lt;mul_dev&amp;gt; is not yet compiled.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It seems he won't accept the pre defined array, what coul be the problem?&lt;br /&gt;
&lt;br /&gt;
10x!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/426913/426913/simple-multiplierdevider/</guid>
      <pubDate>Sun, 22 Jan 2012 04:53:49 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>Need help for VHDL DICE Program</title>
      <link>http://www.programmersheaven.com/mb/electronics/426745/426745/need-help-for-vhdl-dice-program/</link>
      <description>Hi! I'd like to ask all the VHDL knowledgeable people out there for help regarding a problem I came upon in our book.&lt;br /&gt;
&lt;br /&gt;
1. Using Xilinx ISE 7.1 (We use Windows XP you see) create a VHDL program that:&lt;br /&gt;
&lt;br /&gt;
1. System is idle until a ROLL button is pressed.&lt;br /&gt;
2. While ROLL button is pressed, the system adds the sum of two dice counters (which pulse at different signals to randomize the answer).&lt;br /&gt;
2. If the sum is 2, 3 or 11, a WIN output is given.&lt;br /&gt;
3. If the sum is 7, a LOSE output is given.&lt;br /&gt;
4. If the sum is any other number, store it in memory. In the next roll, if the new sum = stored sum, win the round. &lt;br /&gt;
5. If none of these conditions are met, the system loops rolling the dice until you either WIN or LOSE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I'm not sure how to implement it in VHDL just yet, but we are told to use Mealy or Moore FSM to simplify the program. Here's what I came up with: (see attachment)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/426745/426745/need-help-for-vhdl-dice-program/</guid>
      <pubDate>Sat, 07 Jan 2012 21:34:34 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>Need help for VHDL DICE Program</title>
      <link>http://www.programmersheaven.com/mb/electronics/426744/426744/need-help-for-vhdl-dice-program/</link>
      <description>Hi! I'd like to ask all the VHDL knowledgeable people out there for help regarding a problem I came upon in our book.&lt;br /&gt;
&lt;br /&gt;
1. Using Xilinx ISE 7.1 (We use Windows XP you see) create a VHDL program that:&lt;br /&gt;
&lt;br /&gt;
1. System is idle until a ROLL button is pressed.&lt;br /&gt;
2. While ROLL button is pressed, the system adds the sum of two dice counters (which pulse at different signals to randomize the answer).&lt;br /&gt;
2. If the sum is 2, 3 or 11, a WIN output is given.&lt;br /&gt;
3. If the sum is 7, a LOSE output is given.&lt;br /&gt;
4. If the sum is any other number, store it in memory. In the next roll, if the new sum = stored sum, win the round. &lt;br /&gt;
5. If none of these conditions are met, the system loops rolling the dice until you either WIN or LOSE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I'm not sure how to implement it in VHDL just yet, but we are told to use Mealy or Moore FSM to simplify the program. Here's what I came up with: (see attachment)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/426744/426744/need-help-for-vhdl-dice-program/</guid>
      <pubDate>Sat, 07 Jan 2012 21:32:43 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>DINKLE</title>
      <link>http://www.programmersheaven.com/mb/electronics/426485/426485/dinkle/</link>
      <description>[CENTER]DINKLE&lt;br /&gt;
GNN COMPONENTS CO., LTD[/center]&lt;br /&gt;
&lt;br /&gt;
1.	Introduction:&lt;br /&gt;
[URL="http://www.gnn-components.com/DINKLE_ENTERPRISE_CO___LTD-22-465.aspx"]Dinkle[/url] was established on July 22nd 1983, started with the manufacturing of terminal blocks and the related products. To provide the best product, Dinkle never compromise in the product quality, with the continuous devotion to the improvement of manufacturing process as well as in the development and designing facilities. Dinkle takes the manufacturing advantages in China combining the technology of Taiwan, we aim to provide our services globally.&lt;br /&gt;
 &lt;br /&gt;
2.	Product line : &lt;br /&gt;
[URL="http://www.gnn-components.com/DINKLE_ENTERPRISE_CO___LTD-22-465.aspx"]DINKLE_PCB Terminal  Blocks [/url]&lt;br /&gt;
[URL="http://www.gnn-components.com/DINKLE_ENTERPRISE_CO___LTD-22-465.aspx"]DINKLE_Plugabble blocks[/url]&lt;br /&gt;
[URL="http://www.gnn-components.com/DINKLE_ENTERPRISE_CO___LTD-22-465.aspx"]DINKLE_Panel Mounting Terminal blocks[/url]&lt;br /&gt;
[URL="http://www.gnn-components.com/DINKLE_ENTERPRISE_CO___LTD-22-465.aspx"]DINKLE_DIN Rail Terminal blocks[/url]&lt;br /&gt;
[URL="http://www.gnn-components.com/DINKLE_ENTERPRISE_CO___LTD-22-465.aspx"]DINKLE_Screwless Terminal blocks[/url]&lt;br /&gt;
[URL="http://www.gnn-components.com/DINKLE_ENTERPRISE_CO___LTD-22-465.aspx"]DINKLE_Terminal blocks[/url]&lt;br /&gt;
 &lt;br /&gt;
3.	Featured of products :&lt;br /&gt;
[URL="http://www.gnn-components.com/DINKLE_ENTERPRISE_CO___LTD-22-465.aspx"]Pluggable Terminal Blocks[/url]&lt;br /&gt;
The EC &amp;amp; ESD series of pluggable terminal blocks have plugs available in pitch size of 3.5 mm, 3.81 mm, 5.00 mm, 5.08 mm, 7.50 mm, and 7.62 mm. To satisfy different applications, Horizontal Entry, Vertical entry, and Front Entry types of plugs are also available. The plugs uses wire cage clamping structure, which, do not require maintenance. They also have large contact surface, high shock-resistance, and low tendency to loosen. The product design complies with the IEC60998 and UL1059 standards, and has been certified by UL and VDE standards.&lt;br /&gt;
[URL="http://www.gnn-components.com/DINKLE_ENTERPRISE_CO___LTD-22-465.aspx"]Spring Type DIN Rail  Terminal Blocks[/url]&lt;br /&gt;
Spring type: easy-fast operation, strong clamping force, vibration proof.  High quality conductors fit the requirement of low resistance and high conductivity performance. Wire range is from 1.5 mm² up to 35 mm². Types: Universal Three conductors Four conductors Double deck .  Accessories including marking labels, bridges, and partition plates, that can meet various requirements.&lt;br /&gt;
[URL="http://www.gnn-components.com/DINKLE_ENTERPRISE_CO___LTD-22-465.aspx"]Panel Feed-through terminal [/url] &lt;br /&gt;
Industrial electrical devices with closed housing, e.g. devices used in power electronics, require solid feed-through terminal blocks which permit an equally reliable and convenient connection of the internal and external conductors. Horizontal and vertical wire entries are both available.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/426485/426485/dinkle/</guid>
      <pubDate>Mon, 19 Dec 2011 21:49:52 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>This post has been deleted.</title>
      <link>http://www.programmersheaven.com/mb/electronics/426484/426484/this-post-has-been-deleted/</link>
      <description>This post has been deleted.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/426484/426484/this-post-has-been-deleted/</guid>
      <pubDate>Mon, 19 Dec 2011 21:46:56 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>How read Sensor outputs using a MC9S08DZ60 microcontroller</title>
      <link>http://www.programmersheaven.com/mb/electronics/425914/425914/how-read-sensor-outputs-using-a-mc9s08dz60-microcontroller/</link>
      <description>Hi All,&lt;br /&gt;
I need to connect six Tekscan A401 force sensors to a multiplexer and then transmit the o/p of these sensors via RS 485 to be given to a MC9S08DZ60 microcontroller. &lt;br /&gt;
Don't know how to do it. Can anyone help me how to do it?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/425914/425914/how-read-sensor-outputs-using-a-mc9s08dz60-microcontroller/</guid>
      <pubDate>Mon, 21 Nov 2011 07:46:08 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>How read Sensor outputs using a MC9S08DZ60 microcontroller</title>
      <link>http://www.programmersheaven.com/mb/electronics/425912/425912/how-read-sensor-outputs-using-a-mc9s08dz60-microcontroller/</link>
      <description>Hi All,&lt;br /&gt;
I need to connect six Tekscan A401 force sensors to a multiplexer and then transmit the o/p of these sensors via RS 485 to be given to a MC9S08DZ60 microcontroller. &lt;br /&gt;
Don't know how to do it. Can anyone help me how to do it?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/425912/425912/how-read-sensor-outputs-using-a-mc9s08dz60-microcontroller/</guid>
      <pubDate>Mon, 21 Nov 2011 07:42:56 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>code for vhdl</title>
      <link>http://www.programmersheaven.com/mb/electronics/425864/425864/code-for-vhdl/</link>
      <description>i need a vhdl code for 16 counter.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/425864/425864/code-for-vhdl/</guid>
      <pubDate>Thu, 17 Nov 2011 07:13:35 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>code for vhdl</title>
      <link>http://www.programmersheaven.com/mb/electronics/425863/425863/code-for-vhdl/</link>
      <description>i need a vhdl code for 16 counter.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/425863/425863/code-for-vhdl/</guid>
      <pubDate>Thu, 17 Nov 2011 07:11:44 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>Quartus is optimizing away too much of my code</title>
      <link>http://www.programmersheaven.com/mb/electronics/425808/425808/quartus-is-optimizing-away-too-much-of-my-code/</link>
      <description>I need some serious help on this code. I've been tweaking the code for hours and nothing helps. I have a small case statement waiting for a change on an integer signal called index_2. For some reason that integer signal isn't changing, so Quartus removes my case statement from synthesis. What is going wrong? Why does quartus not think that index_2 is used at all?&lt;br /&gt;
&lt;br /&gt;
In the code below I use a module called clk_enabler. That just sends a pulse once every n clock cycles, where n is 5208 for this code.&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use ieee.numeric_std.all;

entity serial_display is
port(	
        clock           : in std_logic;
        four_byte_in    : in std_logic_vector(31 downto 0);	
        bit_out         : out std_logic
);
end entity serial_display;

----------------------------------------------------

architecture behv of serial_display is

component clk_enabler is
generic(
        period: natural
);
port(	
        clock:          in std_logic;
	clear_L:        in std_logic;
	enable:         out std_logic
);
end component clk_enabler;

        signal clk_en_sig_1     : std_logic := '0';
        signal current_byte     : std_logic_vector(9 downto 0) := "1000000000";
	
        signal index_1 : integer range 0 to 9 := 0;
        signal index_2 : integer range 0 to 3 := 0;

begin

        process(index_2,index_1)
        begin
        CASE index_2 is
                when 0 =&amp;gt; current_byte(8 downto 1) &amp;lt;= four_byte_in(31 downto 24);
                when 1 =&amp;gt; current_byte(8 downto 1) &amp;lt;= four_byte_in(23 downto 16);
                when 2 =&amp;gt; current_byte(8 downto 1) &amp;lt;= four_byte_in(15 downto 8);
                when 3 =&amp;gt; current_byte(8 downto 1) &amp;lt;= four_byte_in(7 downto 0);
        end case;
		
                current_byte &amp;lt;= '1' &amp;amp; current_byte(8 downto 1) &amp;amp; '0';
                bit_out &amp;lt;= current_byte(index_1);
        end process;
	
        process(clk_en_sig_1, clock)
        begin
                if rising_edge(clock) and clk_en_sig_1 = '1' then
                        if index_1 &amp;lt; 9 then
                                index_1 &amp;lt;= index_1 + 1;
                        else
                                index_1 &amp;lt;= 0;
				
                                if index_2 &amp;lt; 3 then
                                        index_2 &amp;lt;= index_2 + 1;
                                else
                                        index_2 &amp;lt;= 0;
                                end if;
				
                        end if;
                end if;
        end process;
							
enabler: clk_enabler generic map(period=&amp;gt;5208)
                     port map(clock=&amp;gt;clock, clear_L=&amp;gt;'1', enable=&amp;gt;clk_en_sig_1);
	
end behv;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/425808/425808/quartus-is-optimizing-away-too-much-of-my-code/</guid>
      <pubDate>Tue, 15 Nov 2011 04:34:11 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>ALU VHDL with shift operation</title>
      <link>http://www.programmersheaven.com/mb/electronics/425775/425775/alu-vhdl-with-shift-operation/</link>
      <description>Hey guys,&lt;br /&gt;
I am developing an Alu with VHDL, which consists of 3 entries and one out signal. The ALU performs 8 operations  and one of them is shift. Unfortunately i am not able to write the shift operation properly. This is what my code looks like at the moment:&lt;br /&gt;
&lt;br /&gt;
library ieee;&lt;br /&gt;
use ieee.std_logic_1164.all;&lt;br /&gt;
use ieee.numeric_std.all;&lt;br /&gt;
&lt;br /&gt;
entity alu is&lt;br /&gt;
&lt;br /&gt;
port (&lt;br /&gt;
		a : in std_logic_vector(7 downto 0);&lt;br /&gt;
		b : in std_logic_vector(7 downto 0);&lt;br /&gt;
		s : in std_logic_vector(2 downto 0);&lt;br /&gt;
		c : out std_logic_vector(7 downto 0)&lt;br /&gt;
		);&lt;br /&gt;
end alu;&lt;br /&gt;
&lt;br /&gt;
architecture five of alu is&lt;br /&gt;
&lt;br /&gt;
signal one   : std_logic_vector(7 downto 0);&lt;br /&gt;
signal three : std_logic_vector(7 downto 0);&lt;br /&gt;
&lt;br /&gt;
begin&lt;br /&gt;
&lt;br /&gt;
one   &amp;lt;= "00000001"; &lt;br /&gt;
three &amp;lt;= "00000011";				&lt;br /&gt;
&lt;br /&gt;
c &amp;lt;= "00000001" when s = "000" and (unsigned(a) &amp;gt; unsigned(b))else    "00000000" when s = "000" and (unsigned(a) &amp;lt;= unsigned(b)) else&lt;br /&gt;
"00000001" when s = "001" and (unsigned(a) = unsigned(b)) else "00000000" when s = "001" and (unsigned(a) /= unsigned(b)) else std_logic_vector(signed(a) + signed(one)) when s = "010" else std_logic_vector(signed(a) + signed(b)) when s = "011" else&lt;br /&gt;
a and b when s = "100" else &lt;br /&gt;
a or b when s = "101" else&lt;br /&gt;
std_logic_vector(b sla unsigned(three)) when s = "110" else&lt;br /&gt;
std_logic_vector(unsigned(a) mod unsigned(b)) when s = "111" else&lt;br /&gt;
	     "--------";&lt;br /&gt;
end five;&lt;br /&gt;
		  &lt;br /&gt;
	&lt;br /&gt;
Has anybody an Idea, how could i write the shift function to make it work this way and become a vector as output? I would be very very thankful!&lt;br /&gt;
&lt;br /&gt;
Thanks a lot!&lt;br /&gt;
&lt;br /&gt;
Barney	&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/425775/425775/alu-vhdl-with-shift-operation/</guid>
      <pubDate>Mon, 14 Nov 2011 01:47:43 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>VHDL questions</title>
      <link>http://www.programmersheaven.com/mb/electronics/425769/425769/vhdl-questions/</link>
      <description>Hello. I was wondering how do I import and use an entity I created in one VHD file in another VHD file? What folder do I have to place the file in and how do I reference in the file I need to use it in.&lt;br /&gt;
&lt;br /&gt;
Also, every time I try to put a second entity in a single VHD file I get a weird "out of virtual memory" error.Either tha, or it tells me that STD_LOGIC is reference but not used in the second entity, but not for the first. I tried placing the entities in different order and it is always the second one that throws the error.&lt;br /&gt;
&lt;br /&gt;
Any help would be much appreciated!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/425769/425769/vhdl-questions/</guid>
      <pubDate>Sun, 13 Nov 2011 21:14:34 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>VHDL questions</title>
      <link>http://www.programmersheaven.com/mb/electronics/425768/425768/vhdl-questions/</link>
      <description>Hello. I was wondering how do I import and use an entity I created in one VHD file in another VHD file? What folder do I have to place the file in and how do I reference in the file I need to use it in.&lt;br /&gt;
&lt;br /&gt;
Also, every time I try to put a second entity in a single VHD file I get a weird "out of virtual memory" error.Either tha, or it tells me that STD_LOGIC is reference but not used in the second entity, but not for the first. I tried placing the entities in different order and it is always the second one that throws the error.&lt;br /&gt;
&lt;br /&gt;
Any help would be much appreciated!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/425768/425768/vhdl-questions/</guid>
      <pubDate>Sun, 13 Nov 2011 20:56:55 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>Need help with a basic VHDL test bench.</title>
      <link>http://www.programmersheaven.com/mb/electronics/425421/425421/need-help-with-a-basic-vhdl-test-bench/</link>
      <description>I am currently working on a stopwatch in VHDL, and made a counter module. Now I need to make a test bench for this module, and I am simply lost.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use ieee.std_logic_unsigned.all;

entity countermodule is
    Port ( reset : in  STD_LOGIC_VECTOR (1 downto 0);
           startstop : in  STD_LOGIC_VECTOR (1 downto 0);
           clk : in  STD_LOGIC;
           Qout1 : out  std_logic_vector (3 downto 0);
           Qout2 : out  std_logic_vector (3 downto 0);
           Qout3 : out  std_logic_vector (3 downto 0);
           Qout4 : out  std_logic_vector (3 downto 0));
end countermodule;

architecture Behavioral of countermodule is

component Counter1 is
    Port ( res1 : in  std_logic_vector (3 downto 0);
           en1 : in  STD_LOGIC_VECTOR (1 downto 0);
			  clk : in	std_logic;
           countout1 : out  std_logic_vector (3 downto 0));
end component;

component counter2 is
    Port ( res2 : in  std_logic_vector (3 downto 0);
           en2 : in  STD_LOGIC_VECTOR (1 downto 0);
           clk : in  STD_LOGIC;
           countout2 : out  std_logic_vector (3 downto 0));
end component;

component counter3 is
    Port ( res3 : in  std_logic_vector (3 downto 0);
           en3 : in  STD_LOGIC_VECTOR (1 downto 0);
           clk : in  STD_LOGIC;
           countout3 : out  std_logic_vector (3 downto 0));
end component;

component counter4 is
    Port ( res4 : in  std_logic_vector (3 downto 0);
           en4 : in  STD_LOGIC_VECTOR (1 downto 0);
           clk : in  STD_LOGIC;
           countout4 : out  std_logic_vector (3 downto 0));
end component;

component Counter is
    Port ( clk : in  STD_LOGIC;
			  en : in std_logic;
           countout : out  STD_LOGIC);
end component;
begin


end Behavioral;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
This is the code for my counter module, help will be appreciated.&lt;br /&gt;
&lt;br /&gt;
Best regards&lt;br /&gt;
&lt;br /&gt;
Fupson&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/425421/425421/need-help-with-a-basic-vhdl-test-bench/</guid>
      <pubDate>Fri, 28 Oct 2011 01:49:56 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>Need help with a basic VHDL test bench.</title>
      <link>http://www.programmersheaven.com/mb/electronics/425420/425420/need-help-with-a-basic-vhdl-test-bench/</link>
      <description>I am currently working on a stopwatch in VHDL, and made a counter module. Now I need to make a test bench for this module, and I am simply lost.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use ieee.std_logic_unsigned.all;

entity countermodule is
    Port ( reset : in  STD_LOGIC_VECTOR (1 downto 0);
           startstop : in  STD_LOGIC_VECTOR (1 downto 0);
           clk : in  STD_LOGIC;
           Qout1 : out  std_logic_vector (3 downto 0);
           Qout2 : out  std_logic_vector (3 downto 0);
           Qout3 : out  std_logic_vector (3 downto 0);
           Qout4 : out  std_logic_vector (3 downto 0));
end countermodule;

architecture Behavioral of countermodule is

component Counter1 is
    Port ( res1 : in  std_logic_vector (3 downto 0);
           en1 : in  STD_LOGIC_VECTOR (1 downto 0);
			  clk : in	std_logic;
           countout1 : out  std_logic_vector (3 downto 0));
end component;

component counter2 is
    Port ( res2 : in  std_logic_vector (3 downto 0);
           en2 : in  STD_LOGIC_VECTOR (1 downto 0);
           clk : in  STD_LOGIC;
           countout2 : out  std_logic_vector (3 downto 0));
end component;

component counter3 is
    Port ( res3 : in  std_logic_vector (3 downto 0);
           en3 : in  STD_LOGIC_VECTOR (1 downto 0);
           clk : in  STD_LOGIC;
           countout3 : out  std_logic_vector (3 downto 0));
end component;

component counter4 is
    Port ( res4 : in  std_logic_vector (3 downto 0);
           en4 : in  STD_LOGIC_VECTOR (1 downto 0);
           clk : in  STD_LOGIC;
           countout4 : out  std_logic_vector (3 downto 0));
end component;

component Counter is
    Port ( clk : in  STD_LOGIC;
			  en : in std_logic;
           countout : out  STD_LOGIC);
end component;
begin


end Behavioral;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
This is the code for my counter module, help will be appreciated.&lt;br /&gt;
&lt;br /&gt;
Best regards&lt;br /&gt;
&lt;br /&gt;
Fupson&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/425420/425420/need-help-with-a-basic-vhdl-test-bench/</guid>
      <pubDate>Fri, 28 Oct 2011 01:48:05 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>Udviklingskonsulent  | It optimering</title>
      <link>http://www.programmersheaven.com/mb/electronics/424896/424896/udviklingskonsulent---it-optimering/</link>
      <description>Database consultant is the most complete free directory of webia. hjemmeside udvikling.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://webia.dk/Udvikling/Sharepoint.aspx"&gt;http://webia.dk/Udvikling/Sharepoint.aspx&lt;/a&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/424896/424896/udviklingskonsulent---it-optimering/</guid>
      <pubDate>Sun, 25 Sep 2011 23:58:09 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>Type mismatch error in vhdl</title>
      <link>http://www.programmersheaven.com/mb/electronics/424679/424679/type-mismatch-error-in-vhdl/</link>
      <description>Greetings! This is my first thread.&lt;br /&gt;
&lt;br /&gt;
I have a package that contains the following type:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;type t_rgb_64x48 is array(0 to 47) of std_logic_vector(63 downto 0);&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
and is being used in my file.vhd file.&lt;br /&gt;
&lt;br /&gt;
------------------------&lt;br /&gt;
&lt;br /&gt;
file.vhd contains an entity that contains the type of the package mentioned earlier:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;RData_in : in t_rgb_64x48;
ColumnAddress_Start : in integer;
ColumnAddress_End : in integer;
RowAddress_Start : in integer;
RowAddress_End : in integer;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
It also contains a signal with its corresponding type:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;type t_vgaram is array(0 to 479) of std_logic_vector(639 downto 0);
signal s_rstorage : t_vgaram;
&lt;/pre&gt;&lt;br /&gt;
------------------------&lt;br /&gt;
&lt;br /&gt;
I need to access s_rstorage through the following statement:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;s_rstorage(ColumnAddress_End downto ColumnAddress_Start)
      (RowAddress_End downto RowAddress_Start)
        &amp;lt;= RData_in(ColumnAddress_End downto
                      ColumnAddress_Start)
                  (RowAddress_End downto RowAddress_Start);
&lt;/pre&gt;&lt;br /&gt;
to store the value of RData_in to s_rstorage and making sure that they are of the same width in 2D.&lt;br /&gt;
&lt;br /&gt;
The problem is this error:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;Type of s_rstorage is incompatible with type of RData_in.&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
I know that they have different types as the cause of the error. But how do I fix this problem? &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/424679/424679/type-mismatch-error-in-vhdl/</guid>
      <pubDate>Sat, 03 Sep 2011 12:12:21 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>how  do i get it done!</title>
      <link>http://www.programmersheaven.com/mb/electronics/424207/424207/how--do-i-get-it-done/</link>
      <description>heIIo most respected egineers&lt;br /&gt;
&lt;br /&gt;
I am trying to deveIop a wireIess moisture sensor transmitter and wireIess receiver. I do not know exactIy how to get started. what do I buy. How do I go about it. is it possibIe to do it in the first pIace...I wiII be gIad if someone have Ideas...&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
esedear&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/424207/424207/how--do-i-get-it-done/</guid>
      <pubDate>Sat, 09 Jul 2011 11:05:16 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>HC4538 Monostable Multivibrator in VHDL?</title>
      <link>http://www.programmersheaven.com/mb/electronics/424157/424157/hc4538-monostable-multivibrator-in-vhdl/</link>
      <description>Hello, I'm new to VHDL and trying to model the chip hc4538.  As can be seen in the datasheet, the output's pulse length is determined by Tau once the Vref is reached.  I'm not exactly sure how to account for that in VHDL since it uses external components.  Is it actually necessary to account for that?  I've attached my code thus far.&lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;strong&gt;Attachment:&lt;/strong&gt; &lt;a href="http://www.programmersheaven.com/mb/DownloadAttachment.aspx?AttachmentID=2097"&gt;multivib2.vhd&lt;/a&gt; (431 bytes | downloaded 77 times)</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/424157/424157/hc4538-monostable-multivibrator-in-vhdl/</guid>
      <pubDate>Fri, 01 Jul 2011 07:39:49 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>Open pictures through voice command.</title>
      <link>http://www.programmersheaven.com/mb/electronics/424117/424117/open-pictures-through-voice-command/</link>
      <description>Is there a way for the UART “TX” serial output pin on my VoiceGP module to tell my computer to display a picture. Is it possible to create such an interface or is there an existing piece of technology that has serial input and is able to send commands to the computer through USB? Do I have to go from serial to USB? Is the device programmable? Does a program exist which takes USB input and is able to display a certain picture? Can I use something like Visual Studio to get USB input and do a ShellExecute() to display a picture?&lt;br /&gt;
&lt;br /&gt;
THANK YOU FOR HELPING ME. &lt;br /&gt;
&lt;br /&gt;
Hardware: VoiceGP DK-T2SI&lt;br /&gt;
Software: &lt;br /&gt;
VoiceGP IDE&lt;br /&gt;
Sensory Quick Synthesis 5&lt;br /&gt;
Sensory Quick T2SI&lt;br /&gt;
Computer: &lt;br /&gt;
64-bit Dell using Windows 7 OS&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/424117/424117/open-pictures-through-voice-command/</guid>
      <pubDate>Mon, 27 Jun 2011 08:43:35 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>[VHDL PROBLEM] Won't concatenate</title>
      <link>http://www.programmersheaven.com/mb/electronics/424102/424102/vhdl-problem-wont-concatenate/</link>
      <description>Hello guy's, I have a small problem with a concatenation in vhdl.&lt;br /&gt;
I will post the code :&lt;br /&gt;
&lt;pre class="sourcecode"&gt;Router_Nr_West &amp;lt;= DATA_TO_BE_ROUTE_WEST_IN(15 downto 8) + X"01";
 i_data_vest &amp;lt;= DATA_TO_BE_ROUTE_WEST_IN(31 downto 16) &amp;amp; Router_Nr_West &amp;amp; DATA_TO_BE_ROUTE_WEST_IN(7 downto 0);&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
where  DATA_TO_BE_ROUTE_NORTH_IN : in std_logic_vector(31 downto 0);  &lt;br /&gt;
signal Router_Nr_West : std_logic_vector(7 downto 0); &lt;br /&gt;
&lt;br /&gt;
I worck with a NanoBoard NB2 and Altium Designer Winter 09 and I am stuck at the simulation because the i_data_vest will have a value without the &lt;br /&gt;
Router_Nr_West. I attached a photo to ilustrate.&lt;br /&gt;
&lt;br /&gt;
Thank's in advance. &lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;strong&gt;Attachment:&lt;/strong&gt; &lt;a href="http://www.programmersheaven.com/mb/DownloadAttachment.aspx?AttachmentID=2094"&gt;untitled.JPG&lt;/a&gt; (58104 bytes | downloaded 67 times)</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/424102/424102/vhdl-problem-wont-concatenate/</guid>
      <pubDate>Sat, 25 Jun 2011 08:15:05 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>urgent: Interfacing SD Card to Atmega16</title>
      <link>http://www.programmersheaven.com/mb/electronics/423718/423718/urgent-interfacing-sd-card-to-atmega16/</link>
      <description>Hi friends,&lt;br /&gt;
&lt;br /&gt;
I am working on my final year project. I want to interface SD card to Atmega16 microcontroller using SPI protocol. I tried interfacing but it didnt work. I need your help. Its very urgent. Please guide me on how to interface SD card and how to read and write data. I want to write three values(data) to SD card and I want to read them and display on LEDs. Please help me with interfacing and code. Its really urgent.&lt;br /&gt;
Thanks a lot.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/423718/423718/urgent-interfacing-sd-card-to-atmega16/</guid>
      <pubDate>Tue, 10 May 2011 01:28:05 -0800</pubDate>
      <category>Electronics development</category>
    </item>
    <item>
      <title>coding equation in VHDL for implementation on FPGA</title>
      <link>http://www.programmersheaven.com/mb/electronics/423471/423471/coding-equation-in-vhdl-for-implementation-on-fpga/</link>
      <description>HI !!&lt;br /&gt;
i need help to do the VHDL program of :&lt;br /&gt;
d(n)=(kpc+kic.Tpwm).esp(n)+INTcurrent(n-1)&lt;br /&gt;
with :&lt;br /&gt;
esp(n)=Iplatref(n)-Iplatmeas(n)&lt;br /&gt;
thank u a lot!&lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;strong&gt;Attachment:&lt;/strong&gt; &lt;a href="http://www.programmersheaven.com/mb/DownloadAttachment.aspx?AttachmentID=2060"&gt;equation.doc&lt;/a&gt; (36352 bytes | downloaded 50 times)</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/electronics/423471/423471/coding-equation-in-vhdl-for-implementation-on-fpga/</guid>
      <pubDate>Tue, 26 Apr 2011 06:57:33 -0800</pubDate>
      <category>Electronics development</category>
    </item>
  </channel>
</rss>
