Skip to content

Commit

Permalink
make: Add Sipeed Tang Primer 20K support with DDR3/SPI-SDCard.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Aug 29, 2023
1 parent ca24da4 commit 8c10f2a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion make.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
#---------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit 8c10f2a

Please sign in to comment.