I'm converting some verilog code to SC. Here is a case made me confused: In verilog, a continuous assignment such as:
wire a;
assign a =1;
Where a will get 1 immediately after the assignment. If we write it in SC:
sc_signal<bool> a;
a.write(1);
The current value of a will not be 1. How to resolve this problem? Like the following?
bool a;
a = 1;