コード例 #1
0
/* record write data bitline and memory cell activity */
inline int FUNC(SIM_buf_power_data_write, SIM_power_array_info_t *info, SIM_power_array_t *arr, char *data_line, char *old_data, char *new_data)
{
  /* drive the wordline */
  SIM_power_array_dec(info, arr, NULL, 0, SIM_ARRAY_WRITE);
  /* write data */
  SIM_power_array_data_write(info, arr, NULL, PARM(flit_width) / 8, data_line, old_data, new_data);

  return 0;
}
コード例 #2
0
ファイル: SIM_reg.c プロジェクト: boy999/sample
/* record write data bitline and memory cell activity */
inline int FUNC( SIM_reg_power_data_write, SIM_power_array_info_t *info, SIM_power_array_t *arr, u_int port, LIB_Type_max_uint old_data, LIB_Type_max_uint new_data )
{
  return SIM_power_array_data_write( info, arr, NULL, sizeof(old_data), (u_char *)&GLOB(reg_write_port)[port].data_line, (u_char *)&old_data, (u_char *)&new_data );
}