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

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.