put attributes into file possible?

Guest #4166901
Rate this post
useful
not useful
Hello everyone,

I am having a huge list of attributes being comprised of KEEP, 
DONT_TOUCH and MARK_DEBUG. It's mainly the list of signals I want to 
debug within my design. Since the list takes up so much space I was 
wondering if it's possible to somehow store all those attributes within 
a file and load them into my VHDL-design depending on a global 
constant-variable/signal/whatever?

So it would look something like this:
1
entity top is
2
end top ;
3
architecture Behavioral of top is
4
    if(DEBUG_ENABLE = "TRUE") then
5
        include "../path/to/file.txt";
6
    end if;
7
begin
8
end Behavioral;

and the file would look something like this:
1
    attribute KEEP          : string;
2
    attribute DONT_TOUCH    : string;
3
    attribute MARK_DEBUG    : string;
4

5
    attribute KEEP of signal_1            : signal is "TRUE";
6
    attribute KEEP of signal_1            : signal is "TRUE";
7

8
    attribute DONT_TOUCH of signal_1      : signal is "TRUE";
9
    attribute DONT_TOUCH of signal_1      : signal is "TRUE";
10

11
    attribute MARK_DEBUG of signal_1      : signal is "TRUE";
12
    attribute MARK_DEBUG of signal_1      : signal is "TRUE";

Anyone knows, whether that is possible?

Cheers,
Spyro

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now