can we use two foreign attribute in single module?

P

priya

Hi,
I am using fli code to send the input for and gate. and also
i want to send the vhdl AndGate output to fli code in the same
module..Here I am pasting my vhdl code


entity and4 is


port ( in1, in2 : in bit;
out1 : out bit
);
end;


architecture only of and4 is
attribute foreign : string;
attribute foreign of only : architecture "and_gate_init ./gates.sl";


begin
out1<=in1 and in2;
end;


-- -- --


entity testbench is
end testbench;


architecture a of testbench is


component and4
port ( in1, in2 : in bit;
out1 : out bit
);
end component;


signal bv1 : bit;
signal bv2 : bit;
signal bv3 : bit;


begin


t1 : and4
port map ( bv1, bv2, bv3 );


end a;


Here i am using single attribute for getting and gate value from fli
code...Its working fine..
here I have to send the output of andgate to fli code.


can we use two attribute in single module ?
if yes,
how to use two attribute in the same module.


regards,
priya..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top