From 90f944481c5cb8efebcc235e27e334e15299c220 Mon Sep 17 00:00:00 2001 From: occheung Date: Mon, 8 Nov 2021 12:37:36 +0800 Subject: [PATCH] kernel_cpu: add fpu if not kasli v1.x --- artiq/gateware/amp/kernel_cpu.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/artiq/gateware/amp/kernel_cpu.py b/artiq/gateware/amp/kernel_cpu.py index a770b4326..bea786be9 100644 --- a/artiq/gateware/amp/kernel_cpu.py +++ b/artiq/gateware/amp/kernel_cpu.py @@ -22,10 +22,10 @@ class KernelCPU(Module): self.cd_sys_kernel.clk.eq(ClockSignal()), self.cd_sys_kernel.rst.eq(self._reset.storage) ] + kasli_v1 = isinstance(platform, kasli.Platform) and platform.hw_rev in ("v1.0", "v1.1") self.submodules.cpu = ClockDomainsRenamer("sys_kernel")( - vexriscv.VexRiscv( - platform, - exec_address)) + vexriscv.VexRiscv(platform, exec_address, + variant="VexRiscv_IMA" if kasli_v1 else "VexRiscv_G")) # DRAM access self.wb_sdram = wishbone.Interface()