readme

来自「SystemC片上系统设计源代码 希望对大家有帮助哈」· 代码 · 共 39 行

TXT
39
字号
This example shows how to overload the operation of thenext() method inside a constraint, in order to havefunctions called before and/or after randomization.Overloading the next() method is a powerful way ofcustomizing randomization.NOTE: You can also overload the next() method in anextended data object.The following source files arg part of this example:  constraint.h a user defined constraint which constrains               a data object with respect to the current               value of an sc_signal<> object.  test.h       a SystemC module definition with a signal to               which the constraint is applied   test.cc      definition of the SystemC sc_main routine               where the SystemC module is instantiated and               simulation begun.  Makefile     Targets for sun-gnu, hppa-native and linuxA makefile for use with SystemC is provided with targets forthree different platforms:  make sun-gnu        # Gnu C++ compiler on Sun  make hppa-native    # HP C++ compiler on HP  make linux          # Gnu C++ compiler on Linux%%CATEGORIES            notebook examples introspection randomization%%TBARGS        ncsc    --sconly sctop%%LinePrefix    all%%Files         none    %%REGSRC/test.cc %%REGSRC/test_reg.cc%%Files         osci    %%REGSRC/test.cc%%Files         schdl   %%REGSRC/test.cc%%Files         ncsc    %%REGSRC/test_reg.cc%%CheckTest     all     %%REGSRC/checktest.sh %%TBLOG %%REGSRC/tb_log.au%%REALCLEAN             %%REGBLD/logfile.diff

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?