Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Hardware > help for VHDL program

Reply
Thread Tools

help for VHDL program

 
 
srimannarayanakarthik srimannarayanakarthik is offline
Junior Member
Join Date: Nov 2006
Posts: 1
 
      11-03-2006
hi.my program is not getting comiled when tryin to run it its showing me errors,can anyone helpmetorectify them
here i am posting the code



entity motordriver is
Port ( a : in std_logic_vector(7 downto 0);
b : out std_logic_vector(1 downto 0));
end motordriver;

architecture Behavioral of motordriver is
signal d : std_logic;
component selector is
port(a in: std_logic_vector(7 downto 0);
d out: std_logic);
end component selector;
begin
s1: selector port map(a,d);

end Behavioral;





library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;

---- Uncomment the following library declaration if instantiating
---- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;

entity selector is
Port ( a : in std_logic_vector(7 downto 0);
d : out std_logic);
end selector;

architecture Behavioral of selector is

begin
d<=((a(0)xor a(7))and(a(1)xor a(6))and(a(2)xor a(5))and (a(3)xor a(4)));


end Behavioral;
 
Reply With Quote
 
 
 
 
Nirmala Nirmala is offline
Junior Member
Join Date: Nov 2006
Posts: 5
 
      11-11-2006
entity motordriver is
Port ( a : in std_logic_vector(7 downto 0);
b : out std_logic_vector(1 downto 0));
end motordriver;

architecture Behavioral of motordriver is
signal d : std_logic;
component selector is
port(a in: std_logic_vector(7 downto 0);---error in this line it should be
port(a :in std_logic_vector(7 downto 0);

d out: std_logic);---error it should be d ut std_logic);
end component selector;
begin
s1: selector port map(a,d);

end Behavioral;
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VHDL-2002 vs VHDL-93 vs VHDL-87? afd VHDL 1 03-23-2007 09:33 AM
BPSK on VHDL (warning - VHDL newbie) pygmalion VHDL 6 06-23-2006 07:30 PM
VHDL 2002 vs VHDL 1993 dude VHDL 1 03-23-2006 01:18 PM
multiD-vhdl: Multi Dimensional Arrays (allowing generics on each dimension) for VHDL (including ports) albert.neu@gmail.com VHDL 2 03-21-2006 04:05 PM
what's the difference between VHDL 93 CONCATENATION and VHDL 87 CONCATENATION? walala VHDL 3 09-18-2003 04:17 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57