gem5 v24.0.0.0
Loading...
Searching...
No Matches
cycle_model.h File Reference
#include "common.h"

Go to the source code of this file.

Classes

struct  operand
 
struct  instr
 
struct  stack_el
 

Macros

#define MEM_SIZE   65536
 
#define INT_SIZE   2048
 

Enumerations

enum  op_type {
  o_null , o_acc , o_reg , o_dir ,
  o_ind , o_ext , o_rel , o_cst ,
  o_lcst , o_add , o_ladd
}
 
enum  instr_type {
  i_add , i_sub , i_inc , i_dec ,
  i_mul , i_div , i_and , i_or ,
  i_xor , i_clr , i_cpl , i_rl ,
  i_rr , i_mov , i_call , i_ret ,
  i_jmp , i_sjmp , i_jz , i_jnz ,
  i_cjne , i_djnz , i_nop
}
 
enum  bus_cycle_type { OP_IDLE , OP_MEM_READ , OP_MEM_WRITE }
 

Functions

 SC_MODULE (cycle_model)
 

Macro Definition Documentation

◆ INT_SIZE

#define INT_SIZE   2048

Definition at line 41 of file cycle_model.h.

Referenced by SC_MODULE().

◆ MEM_SIZE

#define MEM_SIZE   65536

Definition at line 40 of file cycle_model.h.

Referenced by SC_MODULE().

Enumeration Type Documentation

◆ bus_cycle_type

Enumerator
OP_IDLE 
OP_MEM_READ 
OP_MEM_WRITE 

Definition at line 92 of file cycle_model.h.

◆ instr_type

enum instr_type
Enumerator
i_add 
i_sub 
i_inc 
i_dec 
i_mul 
i_div 
i_and 
i_or 
i_xor 
i_clr 
i_cpl 
i_rl 
i_rr 
i_mov 
i_call 
i_ret 
i_jmp 
i_sjmp 
i_jz 
i_jnz 
i_cjne 
i_djnz 
i_nop 

Definition at line 60 of file cycle_model.h.

◆ op_type

enum op_type
Enumerator
o_null 
o_acc 
o_reg 
o_dir 
o_ind 
o_ext 
o_rel 
o_cst 
o_lcst 
o_add 
o_ladd 

Definition at line 44 of file cycle_model.h.

Function Documentation

◆ SC_MODULE()

SC_MODULE ( cycle_model )

Definition at line 136 of file cycle_model.h.

References data, INT_SIZE, MEM_SIZE, name(), SC_HAS_PROCESS, and SC_THREAD.


Generated on Tue Jun 18 2024 16:24:08 for gem5 by doxygen 1.11.0