gck
Joined: 17 Oct 2006 Posts: 136 Helped: 4
|
28 Aug 2008 11:00 error using generic |
|
|
|
I have written following code.
entity and_m is
generic (
delay : TIME );
port (
in1, in2 : in std_logic;
op : out std_logic);
end and_m;
architecture and_m_arc of and_m is
begin -- and_m_arc
op <= in1 and in2 after delay;
end and_m_arc;
This code is getting compiled but when I am trying to simulate in modelsim
its giving error as"Generic 'delay' has not been given a value."
Is it necessary to initialize the generic.
I tried to do that also but still it gives error. Please help me.
|
|