YoussefHefny
Newbie level 2
- Joined
- Apr 11, 2014
- Messages
- 2
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 22
hello there, here is my VHDL code :
"library ieee;
use ieee.std_logic_1164.all;
package andpackage is
compackage andpackage is
component and2 is
port (a, b: IN std_logic;
c: OUT std_logic);
end component and2;
end package andpackage;
Use work.andpackage.and2;
entity circuit2 is
port (a, b, x, y: IN std_logic;
d: OUT std_logic);
end entity circuit2;
architecture mixed of ciponent and2 is
port (a, b: IN std_logic;
c: OUT std_logic);
end component and2;
end package andpackage;
Use work.andpackage.and2;
entity circuit2 is
port (a, b, x, y: IN std_logic;
d: OUT std_logic);
end entity circuit2;
architecture mixed of circuit2 is
for gate: and2 use entity work.and2(and2);
signal c,z: std_logic;
begin
gate: and2 port map (a,b,c);
d <= c XOR z;
op: process (x,y) is
begin
z <= x OR y;
end process op;
end architecture mixed;"
the errors are :
"** Error: C:/Modeltech_pe_edu_10.2c/examples/circuit2.vhd(14): (vcom-1136) Unknown identifier "std_logic".
** Error: C:/Modeltech_pe_edu_10.2c/examples/circuit2.vhd(15): (vcom-1136) Unknown identifier "std_logic".
** Error: C:/Modeltech_pe_edu_10.2c/examples/circuit2.vhd(16): VHDL Compiler exiting"
Any help would be greatly appreciated, thanks in advance.
"library ieee;
use ieee.std_logic_1164.all;
package andpackage is
compackage andpackage is
component and2 is
port (a, b: IN std_logic;
c: OUT std_logic);
end component and2;
end package andpackage;
Use work.andpackage.and2;
entity circuit2 is
port (a, b, x, y: IN std_logic;
d: OUT std_logic);
end entity circuit2;
architecture mixed of ciponent and2 is
port (a, b: IN std_logic;
c: OUT std_logic);
end component and2;
end package andpackage;
Use work.andpackage.and2;
entity circuit2 is
port (a, b, x, y: IN std_logic;
d: OUT std_logic);
end entity circuit2;
architecture mixed of circuit2 is
for gate: and2 use entity work.and2(and2);
signal c,z: std_logic;
begin
gate: and2 port map (a,b,c);
d <= c XOR z;
op: process (x,y) is
begin
z <= x OR y;
end process op;
end architecture mixed;"
the errors are :
"** Error: C:/Modeltech_pe_edu_10.2c/examples/circuit2.vhd(14): (vcom-1136) Unknown identifier "std_logic".
** Error: C:/Modeltech_pe_edu_10.2c/examples/circuit2.vhd(15): (vcom-1136) Unknown identifier "std_logic".
** Error: C:/Modeltech_pe_edu_10.2c/examples/circuit2.vhd(16): VHDL Compiler exiting"
Any help would be greatly appreciated, thanks in advance.