From 1b676f929a4acdf2e12d91643ea1e60ab42c5a18 Mon Sep 17 00:00:00 2001 From: alainlou Date: Sun, 3 Oct 2021 13:06:54 -0400 Subject: [PATCH] cleanup and ease of use - update README - delete some unnecessary toolchain commands (copied from trenz boards) - use minimal cpu_variant by default when vexriscv is selected --- README.md | 2 +- litex_boards/platforms/rz_easyfpga.py | 4 ---- litex_boards/targets/rz_easyfpga.py | 5 +++++ 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 45efc025..83d7f17c 100644 --- a/README.md +++ b/README.md @@ -153,7 +153,7 @@ The Colorlight5A is a very nice board to start with, cheap, powerful, easy to us | QMTech XC7A35T | Xilinx Artix7 | XC7A35T | 100MHz | FTDI | 16-bit 256MB DDR3 | No | 1Gbps GMII** | 16MB QSPI | Yes**| | QMTech Wukong1 | Xilinx Artix7 | XC7A100T | 100MHz | FTDI | 16-bit 256MB DDR3 | No | 1Gbps GMII | 16MB QSPI | Yes**| | QMTech Wukong2 | Xilinx Artix7 | XC7A100T/200T | 100MHz | FTDI | 16-bit 256MB DDR3 | No | 1Gbps GMII | 16MB QSPI | Yes | -| RZ-EasyFPGA | Intel Cyclone4 | EP4CE6 | 25MHz | IOs | 16-bit 8MB SDR | No | No | No | No | +| RZ-EasyFPGA | Intel Cyclone4 | EP4CE6 | 50MHz | IOs | 16-bit 8MB SDR | No | No | No | No | | SP605 | Xilinx Spartan6 | XC6SLX45T | 100MHz | FTDI | 16-bit 128MB DDR3* | Gen1 X1* | 1Gbps GMII | 8MB QSPI* | Yes* | | Tagus | Xilinx Artix7 | XC7A200T | 100MHz | PCIe | 16-bit 256MB DDR3 | Gen2 X1 | 1Gbps-BASE-X* | 16MB QSPI* | No | | VC707 | Xilinx Virex7 | XC7VX485T | 125MHz | FTDI | 64-bit 1GB DDR3 | Gen3 X8* | 1Gbps GMII | 16MB QSPI* | Yes* | diff --git a/litex_boards/platforms/rz_easyfpga.py b/litex_boards/platforms/rz_easyfpga.py index 10603f01..f67985dd 100644 --- a/litex_boards/platforms/rz_easyfpga.py +++ b/litex_boards/platforms/rz_easyfpga.py @@ -62,7 +62,3 @@ class Platform(AlteraPlatform): def do_finalize(self, fragment): AlteraPlatform.do_finalize(self, fragment) self.add_period_constraint(self.lookup_request("clk50", loose=True), 1e9/50e6) - # Generate PLL clock in STA - self.toolchain.additional_sdc_commands.append("derive_pll_clocks") - # Calculates clock uncertainties - self.toolchain.additional_sdc_commands.append("derive_clock_uncertainty") diff --git a/litex_boards/targets/rz_easyfpga.py b/litex_boards/targets/rz_easyfpga.py index 8934efbe..d9a9e69b 100755 --- a/litex_boards/targets/rz_easyfpga.py +++ b/litex_boards/targets/rz_easyfpga.py @@ -2,6 +2,7 @@ # # This file is part of LiteX-Boards. +# # Copyright (c) 2021 Alain Lou # SPDX-License-Identifier: BSD-2-Clause @@ -64,6 +65,10 @@ class BaseSoC(SoCCore): kwargs["integrated_rom_size"] = 0x6200 kwargs["integrated_sram_size"] = 0x1000 + # Can only support minimal variant of vexriscv + if kwargs.get("cpu_type", "vexriscv") == "vexriscv": + kwargs["cpu_variant"] = "minimal" + # SoCCore ---------------------------------------------------------------------------------- SoCCore.__init__(self, platform, sys_clk_freq, ident = "LiteX SoC on RZ-EasyFPGA",