userguide
Closed this issue · 2 comments
guojt10 commented
Can userguide add the following information?
- What kind of systemc coding can be translated into "assign" statements, for exanple "assign a = b;" ?
- How does systemc describe bit operations, e.g. assign b[0] = a[0] & a[1]; ?
Looking forward to your reply。
mikhailmoiseev commented
Answering your questions:
- Generally, designing in SystemC it make sense to understand which hardware will be created in ASIC/FPGA, not which SV will be generated. To assign one signal to another SC_METHOD is used in SystemC, which is normally translated into always_comb block. SC_METHOD without sensitivity is translated into assign, but right part can be a constant or literal only.
- Bit operations implemented in SystemC integer types. See sc_uint/sc_biuint in IEEE 1666-2023.
guojt10 commented
It's all settled.