f



[coding,icarus]How do I get an attribute value attached to a module instance

I'd like to grok snippets like these:
(1)
> STM32F030K6 X1(.BOOT0(boot0));
> $attribute (X1, "pcba_refdes", "K3");
(2)
> (*pcba_refdes="K3"*)
> STM32F030K6 X1(.BOOT0(boot0));

I was trying to get the scope attributes via the ivl_scope_attr_cnt
and ivl_scope_attr_val functions. I only get the internal attributes(defined inside the scope)
I believe I need to use another function. But which one?
there's:

ivl_target.h has:

ivl_logic_attr..
ivl_scope_attr..
ivl_signal_attr..
ivl_process_attr..

which one's the one...?
maybe none.. the datatypes do not seem to match ....

0
Johann
11/17/2016 4:04:10 PM
comp.lang.verilog 3837 articles. 2 followers. Post Follow

0 Replies
90 Views

Similar Articles

[PageSpeed] 15

Reply: