Altera_Forum
Honored Contributor
16 years agouse of 'path_name in if generate
I've defined some global signals in a package :-
signal TB_TESTPOINT_A : std_logic; signal TB_TESTPOINT_B : std_logic; signal TB_TESTPOINT_C : std_logic; and I want to connect them down the hierarchy to point in my design. The module I'm connecting them to has several instantiations (3 in this example), and I want to connect a different test probe to each instantiation. I've tried :- if local_signal'path_name = ":tb_top:uut:full_path:local_signal" generate TB_TESTPOINT_A <= local_signal; end generate; however Modelsim Altera gives me this error :- ** Warning: module.vhd(256): (vcom-1148) Condition in IF GENERATE must be static. If I use a generic in an if generate statement, that compiles OK but surely is not static at compile time, so why is 'path_name any different? Any suggestions please?