Altera_Forum
Honored Contributor
11 years agoHow to write software independent of module instance name in Qsys or SOPC Builder?
Hi All,
I am not sure that this is the correct place to post this question. I have designed an IP Core and I have written low level driver to verify it. I am able to verify it. My question is that I have used macro in my c file which indicates my ip core instance name in Qsys/SOPC.For example, when I select my IP Core in Qsys/SOPC,it creates instance name ip_core_0 and in system.h file macro is created with name ip_core_0_BASE.This macro I am using in my c file.Now suppose I rename instance name from ip_core_0 to ip_core.Now macro in system.h file is also updated from ip_core_0_BASE to ip_core_BASE and due to that I am getting an error in c file.I want to add automation i.e whatever instance name I used for my IP Core,my software should not generate any error. I hope it should be done using tcl. Would some one please provide my any link or suggestion to implement it? Thanks, Krupesh