A
AnandA
I have following code:
library IEEE;
use IEEE.STD_LOGIC_1164.all;
package my_pkg is
COMPONENT my_comp
PORT(
clk : IN STD_LOGIC;
a : IN STD_LOGIC;
b : OUT STD_LOGIC;
c : IN STD_LOGIC;
d : INOUT STD_LOGIC;
);
END my_comp;
END my_pkg;
During compilation, I'm getting error:
near "library": syntax error
What am I missing here?
thanks,
Anand
library IEEE;
use IEEE.STD_LOGIC_1164.all;
package my_pkg is
COMPONENT my_comp
PORT(
clk : IN STD_LOGIC;
a : IN STD_LOGIC;
b : OUT STD_LOGIC;
c : IN STD_LOGIC;
d : INOUT STD_LOGIC;
);
END my_comp;
END my_pkg;
During compilation, I'm getting error:
near "library": syntax error
What am I missing here?
thanks,
Anand