Commit Graph

9408 Commits

Author SHA1 Message Date
Florent Kermarrec bd7921cda8 soc/add_master: Add region support to allow remapping.
Allow connecting a master to a specific region of the SoC and limiting access to it.
2024-02-13 15:59:42 +01:00
Florent Kermarrec 36767c66b4 soc/SoCRegion: Ensure fixed indentation in __str__. 2024-02-13 14:52:29 +01:00
enjoy-digital 46a2e6fe78
Merge pull request #1887 from Dolu1990/jtag
tools/litex_sim support for remote_bitbang (openocd)
2024-02-13 14:29:11 +01:00
enjoy-digital 89bf0fb0cf
Merge pull request #1888 from Dolu1990/reset_vector
core/vexriscv_smp add reset vector support
2024-02-13 11:43:40 +01:00
Dolu1990 795fa1e1fc core/vexriscv_smp add reset vector support 2024-02-13 11:22:05 +01:00
Dolu1990 0a315cda2d Merge branch 'master' into jtag
# Conflicts:
#	litex/soc/cores/cpu/vexriscv_smp/core.py
2024-02-13 10:41:26 +01:00
Dolu1990 fe37dcf6dd tools/litex_sim now support remote_bitbang (openocd)
soc/cores/vexriscv_smp add jtag tap support
2024-02-13 10:35:53 +01:00
Florent Kermarrec f36e7d379a CHANGES.md: Update. 2024-02-12 17:21:42 +01:00
Florent Kermarrec 244bc43886 soc/integration/builder: Add add_json method to allow adding exported .json from Sub-SoCs.
Ex: builder.add_json("icebreaker_soc.json", 0x30000000, "icebreaker_soc") to import/merge
a SoC's json file from a Sub-SoC in Main-SoC.
2024-02-12 17:19:04 +01:00
Florent Kermarrec 38ff48a543 soc/integration/export: Add load_csr_json function to load/import .json exports.
Useful to merge SoC/Sub-SoCs Constants/CSRs/Memory Regions.
2024-02-12 17:16:54 +01:00
Florent Kermarrec 1b32d8a341 soc/add_etherbone: Revert sys_clk domain renaming when ethmac is disabled. 2024-02-09 15:10:47 +01:00
Florent Kermarrec afcf78f643 soc/add_etherbone: Rename ethmac parameters with ethmac suffix since related to ethmac. 2024-02-07 19:21:38 +01:00
enjoy-digital 0ed44a2c04
Merge pull request #1886 from trabucayre/etherbone_hybrid_ip_mac
Etherbone hybrid ip mac
2024-02-07 14:15:42 +01:00
Gwenhael Goavec-Merou 7f211048ac soc/integration/soc/add_etherbone: adding ethernet mac address, local/remote ip as parameters, sanity check when hybrid mode and adding ip/mac constants 2024-02-07 12:49:03 +01:00
Gwenhael Goavec-Merou 177df0b57e soc/integration/soc: move add_ip_constant to helpers with a renaming to add_ip_address_constants, adding function to add MACADDRx constant 2024-02-07 12:44:59 +01:00
Gwenhael Goavec-Merou e866892798 soc/software/bios/boot: allow to override macaddr by using constant MACADDRx 2024-02-07 11:16:12 +01:00
Gwenhael Goavec-Merou 13c57e8304 soc/integration/soc: add_etherbone/ClockDomainRenamer: keep sys connected to sys instead of eth rx 2024-02-07 07:21:35 +01:00
Florent Kermarrec 57bc0369c7 integration/soc/SocCSRHandler: Make supported_address_width/paging values explicit. 2024-02-05 12:57:06 +01:00
enjoy-digital 88e530d0e8
Merge pull request #1885 from smunaut/csr-paging-0x400
soc/integration: Allow 0x400 CSR paging
2024-02-05 12:44:51 +01:00
enjoy-digital cd1088dbe9
Merge pull request #1884 from motec-research/efinix_spi_width
Efinix: suport spi width for passive loading
2024-02-05 12:43:30 +01:00
Sylvain Munaut 3127e504d3 soc/integration: Allow 0x400 CSR paging
It's a convenient way to get more CSR locations without changing
the whole address space layout (i.e. more space for CSR).

It still leaves 256 full 32b registers in each location which
I've never encountered a device even coming close to this, so
it should be fairly safe to do.

This doesn't change the default, just allow the user to select it.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2024-02-05 11:45:34 +01:00
Andrew Dennison f81c940e7b litex/build/efinix: add binary output
This is the file required for passive SPI loading.
2024-02-05 11:00:39 +11:00
Andrew Dennison d9f006e123 litex/build/efinix: add spi_width
Doesn't seem needed for Trion but probably essential for Titanium?
2024-02-05 11:00:39 +11:00
Florent Kermarrec a59b67e4ee soc: Avoid .upper() on add_config/constant since already done in methods. 2024-02-01 08:44:52 +01:00
Florent Kermarrec e498a56698 soc/add_spi_flash: Minor integration cleanup and remove PHY_FREQUENCY constants that is no longer used. 2024-02-01 08:42:11 +01:00
Florent Kermarrec e44631294a CHANGES.md: Update. 2024-02-01 08:34:17 +01:00
enjoy-digital be23467cb1
Merge pull request #1881 from motec-research/spiflash_fixes
Spiflash fixes for issues exposed by sys_clk = 200MHz and L2 cache
2024-02-01 08:33:36 +01:00
Andrew Dennison fc85fdd178 build/openfpgaloader: support args with '-'
many openfpgaloader args have a name with '-' as per normal convention.

This kwarg now works: file_type="raw"
2024-02-01 15:53:51 +11:00
Andrew Dennison afe7b93995 software/liblitespi/spiflash: fix warnings 2024-02-01 14:37:22 +11:00
Andrew Dennison de594e44c9 software/bios/cmds: fix crc command with L2 cache
Same CRC was always reported if the memory region was in the cache...
Noticed when manually testing spiflash divisor.
2024-02-01 14:37:22 +11:00
Andrew Dennison 3a890a077b software/liblitespi/spiflash: fix clk_freq tuning with L2 cache
Correct CRC was always calculated, regardless of divisor, as the
test flash block was in the L2 cache. This resulted in the minimum
divisor being used and incorrect flash reads with 200MHz sys_clock.
2024-02-01 14:37:22 +11:00
Andrew Dennison e0416639f7 software/liblitespi/spiflash: fix reported flash clk 2024-02-01 14:37:22 +11:00
Andrew Dennison 51c3cb3552 soc/add_spi_flash: default clk_freq to 20MHz
This is safer than defaulting to sys_clock / 2 if sys_clock > 100MHz
clk_freq tuning will result in a faster clock if supported by hardware.
2024-02-01 14:37:22 +11:00
Andrew Dennison 1dddfa6841 soc/add_spi_flash: fix default divisor and PHY_CLOCK calculation
Ensure default_divisor is set to desired default - 1 as required by LiteSPIClkGen
Calculate actual PHY_CLK based on default_divisor
2024-02-01 14:37:22 +11:00
Andrew Dennison 08189663ba soc/add_spi_flash: fix bios 1x mode support
require both phy and flash support to enable QUAD/QPI capability.

Many flash devices support 4x read but may be on a 1x phy
2024-02-01 14:37:22 +11:00
Andrew Dennison 4dae3a9f4d build/openfpgaloader: report command line on error
Helps explain failures
2024-02-01 14:37:16 +11:00
Florent Kermarrec f73fbee309 cores/spi/spi_master: Improve documentation, especially on Raw/Aligned mode and CS control. 2024-01-30 10:57:09 +01:00
Florent Kermarrec a3904ac26d CHANGES.md: Update. 2024-01-30 09:51:05 +01:00
Florent Kermarrec 488247e4f7 build/efinix/programmer: Define EFXDBG_HOME now required by latest Efinity versions. 2024-01-30 09:44:52 +01:00
Gwenhael Goavec-Merou 245bed7195 soc/cores/clock/efinix: fix input clock code for trion when the input clock comes from another PLL 2024-01-25 17:39:12 +01:00
Gwenhael Goavec-Merou d32095540a soc/integration/soc: add_ethernet/add_ip_constants: cast str to int (avoid double quote in soc.h 2024-01-24 16:06:44 +01:00
Florent Kermarrec f543b18d02 soc/add_ethernet: Refactor local/remote_ip configuration and add basic checks for IP address length + validity. 2024-01-24 15:28:18 +01:00
enjoy-digital 115e87ff4f
Merge pull request #1877 from trabucayre/ethernet_local_remote_ip
soc/integration/soc: add_etherbone: allowing to specify local/remote IP
2024-01-24 15:15:31 +01:00
Gwenhael Goavec-Merou bcde71b051 soc/integration/soc: add_etherbone: allowing to specify local/remote IP 2024-01-24 15:13:42 +01:00
enjoy-digital 1be3f0297d
Merge pull request #1876 from trabucayre/vexriscv_configurable_clint_csr_addr
soc/cores/cpu/vexriscv_smp/core: allowing configure CSR/CLINT base address by overriding default value or using args
2024-01-23 16:27:16 +01:00
Florent Kermarrec c31ec79981 CHANGES.md: Update. 2024-01-23 16:02:11 +01:00
Gwenhael Goavec-Merou bb62f7aa63 soc/cores/cpu/vexriscv_smp/core: allowing configure CSR/CLINT/PLIC base address by overriding default value or using args 2024-01-22 18:36:51 +01:00
enjoy-digital 4c07d72af3
Merge pull request #1874 from trabucayre/naxriscv_arch
soc/cores/cpu/naxriscv fix arch definition and small adjust
2024-01-19 10:22:43 +01:00
Gwenhael Goavec-Merou 854541d5c7 soc/cores/cpu/naxriscv/core: adding argument to enable rvc extension 2024-01-19 07:37:55 +01:00
Gwenhael Goavec-Merou f00d49211b soc/cores/cpu/naxriscv/core: force go back previous directory after git clone 2024-01-18 15:21:37 +01:00