From 8c10f2af18b07ef5d34c3126ca17b5b18582c5bc Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 29 Aug 2023 16:51:08 +0200 Subject: [PATCH] make: Add Sipeed Tang Primer 20K support with DDR3/SPI-SDCard. --- make.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/make.py b/make.py index 49c6e354..31ebb389 100755 --- a/make.py +++ b/make.py @@ -731,7 +731,7 @@ def __init__(self): # Gowin Boards #--------------------------------------------------------------------------------------------------- -# Sipeed Tang nano 20K support ------------------------------------------------------------------------------- +# Sipeed Tang Nano 20K support --------------------------------------------------------------------- class Sipeed_tang_nano_20k(Board): soc_kwargs = {"l2_size" : 2048} # Use Wishbone and L2 for memory accesses. @@ -743,6 +743,18 @@ def __init__(self): "sdcard", }) +# Sipeed Tang Primer 20K support ------------------------------------------------------------------- + +class Sipeed_tang_primer_20k(Board): + soc_kwargs = {"l2_size" : 512} # Use Wishbone and L2 for memory accesses. + def __init__(self): + from litex_boards.targets import sipeed_tang_primer_20k + Board.__init__(self, sipeed_tang_primer_20k.BaseSoC, soc_capabilities={ + # Communication + "serial", + "spisdcard", + }) + #--------------------------------------------------------------------------------------------------- # Build #--------------------------------------------------------------------------------------------------- @@ -805,6 +817,7 @@ def __init__(self): # Gowin "sipeed_tang_nano_20k" : Sipeed_tang_nano_20k, + "sipeed_tang_primer_20k" : Sipeed_tang_primer_20k, } def main():