'Assign sc_lv to sc_vector<sc_signal<sc_logic>>>
Is there a more elegant way to assign a sc_lv to a sc_vector<sc_signal<sc_logic>>> than the following:
sc_lv<8> a; // has some value of course
sc_vector<sc_signal<sc_logic>>> b;
b.init(8);
for (int i = 0; i < 8; ++i) {
b[i].write(a[i]);
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
