Quantcast
Channel: SystemC Language Forum RSS Feed
Viewing all articles
Browse latest Browse all 595

Assigning value to parametrized signals

$
0
0

Consider the following signal:

 

sc_signal<sc_lv<size>  > aux;

 

Suppose "size" is something passed to the module through the use of template parametrization. How can I set the value of this guy to 0b0000....0000 or 0b1111....111 ?

 

In VHDL there is the OTHERS keyword:

 

aux <= (OTHERS => '1');

 

What about systemC? How can I achieve the same effect?


Viewing all articles
Browse latest Browse all 595

Latest Images

Trending Articles



Latest Images