You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i define one const member parameter (const unsigned int tRCD; ) in class Test (example), class Test is a modular interface. Then use class Test as: Test t_test[10].
After SCT operation, i see the sv_out/.sv file, the code as: localparam logic [31] tRCD = `d22; //on the top module, because Test is the modular interface
In each t_test[i],I think it should use tRCD the whole 32bit value. But it use as:
//example t_wait_time = tRCD[i];// i think it shoud be t_wait_time = tRCD here.
Please help me check whether it is a limitation for ScTool? Thanks very much.
The text was updated successfully, but these errors were encountered:
Thank you for feedback, that looks as a bug. Will check and update near days.
As a quick workaround you can use static const instead of const. Also, please consider that array of modular interfaces is not supported yet, but array of pointers to modular interfaces supported. So, I would suggest you to declare the array as
Test* t_test[10];
...
for (int i = 0; i < 10; ++i) {
t_test[i] = newTest("Test");
}
i define one const member parameter (const unsigned int tRCD; ) in class Test (example), class Test is a modular interface. Then use class Test as: Test t_test[10].
After SCT operation, i see the sv_out/.sv file, the code as:
localparam logic [31] tRCD = `d22; //on the top module, because Test is the modular interface
In each t_test[i],I think it should use tRCD the whole 32bit value. But it use as:
//example
t_wait_time = tRCD[i];// i think it shoud be t_wait_time = tRCD here.
Please help me check whether it is a limitation for ScTool? Thanks very much.
The text was updated successfully, but these errors were encountered: