📄 cam_example.uc
字号:
//------------------------------------------------------------------------------------
//
// I N T E L P R O P R I E T A R Y
//
// COPYRIGHT (c) 2001 BY INTEL CORPORATION. ALL RIGHTS
// RESERVED. NO PART OF THIS PROGRAM OR PUBLICATION MAY
// BE REPRODUCED, TRANSMITTED, TRANSCRIBED, STORED IN A
// RETRIEVAL SYSTEM, OR TRANSLATED INTO ANY LANGUAGE OR COMPUTER
// LANGUAGE IN ANY FORM OR BY ANY MEANS, ELECTRONIC, MECHANICAL,
// MAGNETIC, OPTICAL, CHEMICAL, MANUAL, OR OTHERWISE, WITHOUT
// THE PRIOR WRITTEN PERMISSION OF :
//
// INTEL CORPORATION
//
// 2200 MISSION COLLEGE BLVD
//
// SANTA CLARA, CALIFORNIA 95052-8119
//
//------------------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////
//
//
// File Name: cam_example.uc
//
// Purpose:
//
// History:
//
//
// Date Comment By
// ---------------------------------------------------------------------
//
// 10/23/2001 Created David Meng
//
//
/////////////////////////////////////////////////////////////////////////////
#include "cam_example.h"
#include "cam_example_util.uc"
//Only clean the CAM in the context 0
.if(ctx()==0)
CAM_Clear //Clear the CAM module
//Local memory read and write test
//lm_rd_wr_test[]
#ifdef _CAM_INIT_FROM_SRAM
//Initialize cam from sram
//Move CAM tags to SRAM for examination
//Analyze the test result
//Do a cam lookup with local memory
cam_init_from_sram[0xF]
cam_entry_to_sram[]
cam_lookup_analyze_sram[]
cam_lookup_lm_sram[]
#endif
#ifdef _CAM_INIT_FROM_DRAM
//Initialize cam from dram
//Move CAM tags to dram for examination
//Analyze the test result
//Do a cam lookup with local memory
cam_init_from_dram[0xF]
cam_entry_to_dram[]
cam_lookup_analyze_dram[]
cam_lookup_lm_dram[]
#endif
//Test cam look up
cam_lookup_test[]
.endif
//The test program finished and kill the thread
end_of_program#:
ctx_arb[kill]
nop
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -