OpenCores
URL https://opencores.org/ocsvn/neorv32/neorv32/trunk

Subversion Repositories neorv32

[/] [neorv32/] [trunk/] [sw/] [example/] [coremark/] [core_portme.c] - Diff between revs 14 and 22

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 14 Rev 22
Line 154... Line 154...
  } exe_instructions, exe_time;
  } exe_instructions, exe_time;
 
 
  exe_time.uint64 = (uint64_t)elapsed_cycles;
  exe_time.uint64 = (uint64_t)elapsed_cycles;
  exe_instructions.uint64 = neorv32_cpu_get_instret();
  exe_instructions.uint64 = neorv32_cpu_get_instret();
 
 
  neorv32_uart_printf("\nNEORV32: Executed instructions      0x%x_%x\n", (uint32_t)exe_instructions.uint32[1], (uint32_t)exe_instructions.uint32[0]);
  neorv32_uart_printf("\nNEORV32: All reported numbers only show the integer results.\n\n");
 
 
 
  neorv32_uart_printf("NEORV32: Executed instructions      0x%x_%x\n", (uint32_t)exe_instructions.uint32[1], (uint32_t)exe_instructions.uint32[0]);
  neorv32_uart_printf("NEORV32: CoreMark core clock cycles 0x%x_%x\n", (uint32_t)exe_time.uint32[1], (uint32_t)exe_time.uint32[0]);
  neorv32_uart_printf("NEORV32: CoreMark core clock cycles 0x%x_%x\n", (uint32_t)exe_time.uint32[1], (uint32_t)exe_time.uint32[0]);
 
 
  uint64_t average_cpi = exe_time.uint64 / exe_instructions.uint64;
  uint64_t average_cpi = exe_time.uint64 / exe_instructions.uint64;
  neorv32_uart_printf("NEORV32: Average CPI (integer part only): %u cycles/instruction\n", (uint32_t)average_cpi);
  neorv32_uart_printf("NEORV32: Average CPI (integer part only): %u cycles/instruction\n", (uint32_t)average_cpi);
}
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.