From c022b53578fde8d900a1fce974d9a4b5a3c2b3f4 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Sat, 11 Feb 2017 14:22:28 +0100 Subject: [PATCH] kernel_cpu: enable perf counters --- artiq/gateware/amp/kernel_cpu.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/artiq/gateware/amp/kernel_cpu.py b/artiq/gateware/amp/kernel_cpu.py index 6aca00d32..c698ee024 100644 --- a/artiq/gateware/amp/kernel_cpu.py +++ b/artiq/gateware/amp/kernel_cpu.py @@ -23,7 +23,11 @@ class KernelCPU(Module): self.cd_sys_kernel.rst.eq(self._reset.storage) ] self.submodules.cpu = ClockDomainsRenamer("sys_kernel")( - mor1kx.MOR1KX(platform, exec_address)) + mor1kx.MOR1KX( + platform, + OPTION_RESET_PC=exec_address, + FEATURE_PERFCOUNTERS="ENABLED", + OPTION_PERFCOUNTERS_NUM=7)) # DRAM access self.wb_sdram = wishbone.Interface()