Forum Discussion
Altera_Forum
Honored Contributor
15 years agointerface code
Hello friends, I have 2 circuits viz cir1 and cir 3. Now i want to link these 2 circuits via an independent entity say-cir2. In other words cir2 will act as a bridge between cir1 and cir3. i ha...
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- Hello Sir, Thanks for the reply. u r right they are all in different files viz cir1.vhd,cir2.vhd and cir3.vhd. Now u mentioned the entities at the top of the code for both cir1 and cir2.will i need to just declare the entities there or also the architecture as well? --- Quote End --- no, you dont need the entites at the top of cir2.vhd. They were just there to illustrate the port maps. --- Quote Start --- So basically i shall write a new code for cir3 viz- cir3.vhd and follow the steps stated by you. also, as to "entity work.cir1" - this means that we need all the 3 vhdl files in the same work directory,right sir? Thanks, Vinod. --- Quote End --- they dont need to be the same working directory, just compiled into the same library. In VHDL the default local library is called "work".