nvdla / hw

RTL, Cmodel, and testbench for NVDLA
Other
1.72k stars 567 forks source link

The functions in CMOD #297

Open huayangshiboqi opened 5 years ago

huayangshiboqi commented 5 years ago

Hi, everyone There is a forward declare class:"// Forward declarating cmacro parsed register model class class CNVDLA_CMAC_A_REGSET;" in cmac_a_reg_model.h file. What makes me confused is that I could not find the defination of CNVDLA_CMAC_A_REGSET class. And in camc_a_reg_model.cpp file, there are some sentences, such as "cmac_a_register_group_0->Set(offset, data);" "cmac_a_register_group_0->rS_POINTER.uPRODUCER();"......, which call the functions I could not find also. I think the problem is the position of the defination of CNVDLA_CMAC_A_REGSET class. Anyone can help me? Thanks a lot.

fanqifei commented 5 years ago

Hi @huayangshiboqi , CNVDLA_CMAC_A_REGSET is generated by macro MK_UREGSET_CLASS in cmod/cmac/gen/cmac_a_reg_model.cpp. The macro MK_UREGSET_CLASS is defined in cmod/include/cmacros.uh