144 void parse_hex(
char *
name);
146 bool request_address(
int addr);
147 int fetch_instr(
int ad);
148 int fetch_data(
int ad);
149 int write_data(
int ad,
int data);
150 int fetch_operand(
operand* op);
151 int write_back(
operand *,
int);
152 void execute(
instr *i);
153 void decode(
int opcode,
instr* i);
160 sc_signal<bool>& mem_wr_n;
161 sc_signal<bool>& mem_rd_n;
162 sc_signal<bool>& mem_pswr_n;
163 sc_signal<bool>& mem_psrd_n;
164 sc_signal<bool>& mem_ale;
165 const sc_signal<bool>& mem_ea_n;
167 sc_signal<bool>& p0_mem_reg_n;
168 sc_signal<bool>& p0_addr_data_n;
169 sc_signal<bool>& p2_mem_reg_n;
187 cycle_model(sc_module_name NAME,
188 const sc_signal_in_if<bool>& CLK,
194 sc_signal<bool>& MEM_WR_N,
195 sc_signal<bool>& MEM_RD_N,
196 sc_signal<bool>& MEM_PSWR_N,
197 sc_signal<bool>& MEM_PSRD_N,
198 sc_signal<bool>& MEM_ALE,
199 const sc_signal<bool>& MEM_EA_N,
201 sc_signal<bool>& P0_MEM_REG_N,
202 sc_signal<bool>& P0_ADDR_DATA_N,
203 sc_signal<bool>& P2_MEM_REG_N
208 mem_data_out(MEM_DATA_OUT),
209 mem_data_in(MEM_DATA_IN),
212 mem_pswr_n(MEM_PSWR_N),
213 mem_psrd_n(MEM_PSRD_N),
216 p0_mem_reg_n(P0_MEM_REG_N),
217 p0_addr_data_n(P0_ADDR_DATA_N),
218 p2_mem_reg_n(P2_MEM_REG_N)
224 parse_hex(hex_file_name);