Skip to content

userguide #72

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fpgafinder opened this issue Mar 29, 2024 · 2 comments
Closed

userguide #72

fpgafinder opened this issue Mar 29, 2024 · 2 comments

Comments

@fpgafinder
Copy link

fpgafinder commented Mar 29, 2024

Can userguide add the following information?

  1. What kind of systemc coding can be translated into "assign" statements, for exanple "assign a = b;" ?
  2. How does systemc describe bit operations, e.g. assign b[0] = a[0] & a[1]; ?

Looking forward to your reply。

@mikhailmoiseev
Copy link
Contributor

Answering your questions:

  1. 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.
  2. Bit operations implemented in SystemC integer types. See sc_uint/sc_biuint in IEEE 1666-2023.

@fpgafinder
Copy link
Author

It's all settled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants