C++ automatic port update

Hi everyone,

I am using C++ blocks in my simulation. Whenever I add or remove a port on the block, the code does not update accordingly. What am I doing wrong?



Yes, I also delete manually on the c code.

Hi, samosmodis.

Adding/removing ports does not automatically change the C++ code. You’ll need to regenerate the C-Block and copy/paste the uData changes into your existing code.

I’ve posted a QSpice code generator that takes some of the annoyance out of the process. If you’re interested, see the QCodeGen project on the dev branch of my GitHub repo here.


1 Like