acc_sysC Posted August 26, 2022 Report Share Posted August 26, 2022 My stimulus is in 0's and 1's So the input I think is fine. But there are SC_METHODs used where the values are computed and and given to these ports. How do I know if the SC_METHOD is working fine? I tried using gdb. But it just points to a port declaration which does not give a lot of information. Please guide me. Quote Link to comment Share on other sites More sharing options...
Philipp A Hartmann Posted August 27, 2022 Report Share Posted August 27, 2022 In PIM.h:38, you are not defining a port, but a literal sc_bv value. sc_bv<2*N> sY{"sY_PIM"}; So the debugger could have helped you eventually. 😉  Quote Link to comment Share on other sites More sharing options...
acc_sysC Posted August 27, 2022 Author Report Share Posted August 27, 2022 That worked!! I didn't know we couldn't name variables that are not ports. I named like that to debug another error. Thanks so much. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.