accellera-official / systemc

SystemC Reference Implementation
https://systemc.org/overview/systemc/
Apache License 2.0
445 stars 141 forks source link

Some questions about assignment #43

Closed Yonghao-Tan closed 1 year ago

Yonghao-Tan commented 1 year ago

Hi, I'm a rookie studying systemc. In systemc, an input is sc_in<sc_uint<8>> a, a local variable is sc_uint<8> b. I want to ask what is the difference between b = a and b = a.read()? Also, if an input is sc_out<sc_uint<8>> a, a local variable is sc_uint<8> b, what is the difference between a = b and a.write(b)? Thank you.

AmeyaVS commented 1 year ago

I think it would be better to take this conversation in the SystemC forum here: https://forums.accellera.org/