www.pudn.com > noc.rar > ATE.h
/*
name: ate.h
function: This file is used to create a module used to test chips. It reads test stimuli from its dedicated memory and send these datas
to CUT. And receive the test respondes from the CUT, check whether the responses are correct.
author: fbz, key labtorary of computer system and architecture, CAS
Email: fubinzhang@ict.ac.cn
*/
#define STI_BANDWIDTH 4
#define RES_BANDWIDTH 4
SC_MODULE(ATE)
{
sc_in clk, rst;
sc_in> test_response;
sc_out> test_stimuli;
sc_out valid;
enum ate_state {FIRST_SLICE, SECOND_SLICE, THIRD_SLICE, CAPTURE, FIRST_RESPONSE, SECOND_RESPONSE};
ate_state state;
bool en, r_en;
SC_CTOR(ATE)
{
SC_METHOD(rst_state);
sensitive_pos<