litex.git
4 years agoMerge pull request #619 from antmicro/jboc/sim-clocker
enjoy-digital [Tue, 4 Aug 2020 13:38:28 +0000 (15:38 +0200)]
Merge pull request #619 from antmicro/jboc/sim-clocker

Allow to define multiple simulation clocks

4 years agobuild/sim: improve timebase calculation (strict checks) and update modules
Jędrzej Boczar [Tue, 4 Aug 2020 12:00:58 +0000 (14:00 +0200)]
build/sim: improve timebase calculation (strict checks) and update modules

4 years agocores/uart: add txempty/rxfull CSRs.
Florent Kermarrec [Tue, 4 Aug 2020 11:49:50 +0000 (13:49 +0200)]
cores/uart: add txempty/rxfull CSRs.

Useful in some use cases, like flushing tx.

4 years agotools/litex_server: enable read_merger with CommUDP.
Florent Kermarrec [Tue, 4 Aug 2020 08:40:34 +0000 (10:40 +0200)]
tools/litex_server: enable read_merger with CommUDP.

Limited to 4 (current size of the buffer in liteeth.frontend.etherbone).

4 years agotest: specify wishbone adr_width on AXI(Lite)<-->Wishbone tests and remove debug...
Florent Kermarrec [Tue, 4 Aug 2020 07:37:53 +0000 (09:37 +0200)]
test: specify wishbone adr_width on AXI(Lite)<-->Wishbone tests and remove debug traces.

4 years agoMerge pull request #617 from gsomlo/gls_rocket_dma
enjoy-digital [Tue, 4 Aug 2020 07:38:58 +0000 (09:38 +0200)]
Merge pull request #617 from gsomlo/gls_rocket_dma

RFC: enable DMA with Rocket

4 years agodebug: make CI print offending values
Gabriel Somlo [Mon, 3 Aug 2020 20:59:39 +0000 (16:59 -0400)]
debug: make CI print offending values

4 years agoliblitesdcard/sdcard: (temporarily) slow down SDCARD_CLK_FREQ to 25MHz
Gabriel Somlo [Mon, 3 Aug 2020 16:03:39 +0000 (12:03 -0400)]
liblitesdcard/sdcard: (temporarily) slow down SDCARD_CLK_FREQ to 25MHz

Rocket's DMA slave interface (and/or internal routing) currently
appears unable to route DMA writes from LiteSDCard at frequencies
above 25MHz (as tested on nexys4ddr, with Rocket, at 75MHz main
system clock frequency).

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
4 years agocores/cpu/rocket: expose slave port for DMA
Gabriel Somlo [Wed, 29 Jul 2020 10:59:59 +0000 (06:59 -0400)]
cores/cpu/rocket: expose slave port for DMA

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
4 years agointegration/soc: make DMA slave region cover (at least) the lower 4GB
Gabriel Somlo [Mon, 3 Aug 2020 18:40:45 +0000 (14:40 -0400)]
integration/soc: make DMA slave region cover (at least) the lower 4GB

Assuming we currently support a 32-bit (4GB) physical address space,
ensure that the dma_bus slave covers the entire range, covering any
possible layout of the LiteX SoC memory map (e.g., rocket has MMIO
in a wide range of registers located below 2GB, and DRAM starting at
the 2GB mark, needing DMA accesses to be routed appropriately for the
entire 4GB physical address range).

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
4 years agointerconnect/wishbone: increase WB address width to 31
Gabriel Somlo [Mon, 3 Aug 2020 18:32:26 +0000 (14:32 -0400)]
interconnect/wishbone: increase WB address width to 31

This is needed to support memory regions up to 4GB in size (currently
limited to 2GB, or 0x8000_0000).

FIXME: CI complains about assertions re. axi_lite.address_width in
       relationship to len(wishbone.adr) and wishbone_adr_shift, which
       seems to be a problem on the 32bit (vexriscv?) CPU used for CI,
       but seems to work fine on Rocket.

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
foo

4 years agosoc/interconnect/axi: add Wishbone2AXI converter
Gabriel Somlo [Sat, 1 Aug 2020 21:06:02 +0000 (17:06 -0400)]
soc/interconnect/axi: add Wishbone2AXI converter

4 years agocores/gpio: add support for Record on GPIOOut, GPIOIn and GPIOInOut.
Florent Kermarrec [Mon, 3 Aug 2020 16:47:17 +0000 (18:47 +0200)]
cores/gpio: add support for Record on GPIOOut, GPIOIn and GPIOInOut.

4 years agobuild/sim: allow for arbitrary clocks generation using clockers
Jędrzej Boczar [Mon, 3 Aug 2020 14:52:54 +0000 (16:52 +0200)]
build/sim: allow for arbitrary clocks generation using clockers

4 years agobuild/sim: use a real timebase in the simulation
Jędrzej Boczar [Mon, 3 Aug 2020 13:21:24 +0000 (15:21 +0200)]
build/sim: use a real timebase in the simulation

4 years agoMerge pull request #615 from pepijndevos/openfpgaloader
enjoy-digital [Mon, 3 Aug 2020 12:01:50 +0000 (14:01 +0200)]
Merge pull request #615 from pepijndevos/openfpgaloader

Add openFPGALoader programmer

4 years agoremove debugging
Pepijn de Vos [Sat, 1 Aug 2020 09:06:08 +0000 (11:06 +0200)]
remove debugging

4 years agoadd openFPGAloader programmer
Pepijn de Vos [Sat, 1 Aug 2020 09:05:09 +0000 (11:05 +0200)]
add openFPGAloader programmer

4 years agocpu/vexriscv/core: use variant name as human_name.
Florent Kermarrec [Fri, 31 Jul 2020 06:59:53 +0000 (08:59 +0200)]
cpu/vexriscv/core: use variant name as human_name.

Allow it to be shown in the BIOS and help support.

4 years agocpu/vexriscv/system.h: provide empty flush_cpu_i/dcache functions for variants with...
Florent Kermarrec [Fri, 31 Jul 2020 06:58:30 +0000 (08:58 +0200)]
cpu/vexriscv/system.h: provide empty flush_cpu_i/dcache functions for variants with no i/d cache.

4 years agocpu/zynq7000: set csr map to 0x00000000.
Florent Kermarrec [Thu, 30 Jul 2020 19:37:25 +0000 (21:37 +0200)]
cpu/zynq7000: set csr map to 0x00000000.

4 years agoMerge pull request #611 from antmicro/jboc/axi-lite
enjoy-digital [Thu, 30 Jul 2020 12:22:21 +0000 (14:22 +0200)]
Merge pull request #611 from antmicro/jboc/axi-lite

soc/interconnect/axi: add AXILite -> AXI converter

4 years agotools/litex_server/read_merger: review/simplify a bit.
Florent Kermarrec [Thu, 30 Jul 2020 11:58:40 +0000 (13:58 +0200)]
tools/litex_server/read_merger: review/simplify a bit.

4 years agoMerge pull request #605 from cklarhorst/feature-uart-read-merger
enjoy-digital [Thu, 30 Jul 2020 11:56:48 +0000 (13:56 +0200)]
Merge pull request #605 from cklarhorst/feature-uart-read-merger

Merge sequential reads for the UART litex_server backend

4 years agosoc/interconnect/axi: add AXILite -> AXI converter
Jędrzej Boczar [Thu, 30 Jul 2020 11:38:17 +0000 (13:38 +0200)]
soc/interconnect/axi: add AXILite -> AXI converter

4 years agocpu/blackparrot: minor cleanups, add sim variant (since use different flist).
Florent Kermarrec [Thu, 30 Jul 2020 10:10:32 +0000 (12:10 +0200)]
cpu/blackparrot: minor cleanups, add sim variant (since use different flist).

4 years agoMerge pull request #610 from Dolu1990/vexriscv_smp
enjoy-digital [Wed, 29 Jul 2020 16:11:00 +0000 (18:11 +0200)]
Merge pull request #610 from Dolu1990/vexriscv_smp

soc/cores/cpu/vexriscv_smp enable dynamic litedram datawidth

4 years agosoc/cores/cpu/vexriscv_smp enable dynamic litedram datawidth
Dolu1990 [Wed, 29 Jul 2020 10:40:16 +0000 (12:40 +0200)]
soc/cores/cpu/vexriscv_smp enable dynamic litedram datawidth

4 years agoMerge branch 'master' into vexriscv_smp
Dolu1990 [Wed, 29 Jul 2020 09:14:09 +0000 (11:14 +0200)]
Merge branch 'master' into vexriscv_smp

4 years agointegration/soc/add_sdram: allow the CPU to add the direct memory buses when adding...
Florent Kermarrec [Wed, 29 Jul 2020 09:10:05 +0000 (11:10 +0200)]
integration/soc/add_sdram: allow the CPU to add the direct memory buses when adding the sdram.

This is useful for CPUs elaborated at buildtime to use sdram's native data width on the CPU memory ports.

4 years agocores/cpu/rocket: add use_memory_bus parameter to easily disable direct memory bus...
Florent Kermarrec [Wed, 29 Jul 2020 07:34:07 +0000 (09:34 +0200)]
cores/cpu/rocket: add use_memory_bus parameter to easily disable direct memory bus for testing.

Useful for current tests with LiteSDCard using DMA and that requires the DMA to be connnected to
the DMA bus of Rocket when the direct memory bus is used.

4 years agoMerge branch 'master' into vexriscv_smp
Dolu1990 [Tue, 28 Jul 2020 17:11:54 +0000 (19:11 +0200)]
Merge branch 'master' into vexriscv_smp

4 years agosoc/cores/cpu/vexriscv_smp config update
Dolu1990 [Tue, 28 Jul 2020 17:07:02 +0000 (19:07 +0200)]
soc/cores/cpu/vexriscv_smp config update

4 years agoCHANGES: update.
Florent Kermarrec [Tue, 28 Jul 2020 16:37:23 +0000 (18:37 +0200)]
CHANGES: update.

4 years agocpu/vexriscv_smp: move litedram import, remove os.path import.
Florent Kermarrec [Tue, 28 Jul 2020 16:10:32 +0000 (18:10 +0200)]
cpu/vexriscv_smp: move litedram import, remove os.path import.

4 years agolitex_setup: fix vexriscv-smp repository.
Florent Kermarrec [Tue, 28 Jul 2020 14:56:32 +0000 (16:56 +0200)]
litex_setup: fix vexriscv-smp repository.

4 years agoMerge pull request #607 from Dolu1990/vexriscv_smp
enjoy-digital [Tue, 28 Jul 2020 14:53:55 +0000 (16:53 +0200)]
Merge pull request #607 from Dolu1990/vexriscv_smp

soc/cores/cpu/vexriscv_smp integration

4 years agosoc/cores/cpu/vexriscv_smp integration
Dolu1990 [Tue, 28 Jul 2020 14:20:16 +0000 (16:20 +0200)]
soc/cores/cpu/vexriscv_smp integration

4 years agoliblitesdcard/sdcard: increase SDCARD_CLK_FREQ to 50MHz.
Florent Kermarrec [Tue, 28 Jul 2020 12:36:49 +0000 (14:36 +0200)]
liblitesdcard/sdcard: increase SDCARD_CLK_FREQ to 50MHz.

4 years agointegration/soc/etherbone: expose ethcore (useful to combine udp/etherbone).
Florent Kermarrec [Mon, 27 Jul 2020 17:57:29 +0000 (19:57 +0200)]
integration/soc/etherbone: expose ethcore (useful to combine udp/etherbone).

4 years agointegration/soc: fix dma_bus typo.
Florent Kermarrec [Mon, 27 Jul 2020 09:06:09 +0000 (11:06 +0200)]
integration/soc: fix dma_bus typo.

4 years agoMerge sequential reads for the UART litex_server backend
Christian Klarhorst [Sun, 26 Jul 2020 11:19:32 +0000 (13:19 +0200)]
Merge sequential reads for the UART litex_server backend

The UART backend writes [read identifier, num_reads, addr] for
every read request.
Etherbone packets are able to include multiple read requests.
Therefore, it is beneficial to merge sequential read requests to reduce writes
(and possible latency overhead).

Benchmark:
A typical litescope fetch script with the following
signals [ddrphy.dfi,cpu.ibus.cyc,cpu.ibus.stb] results in 1 read for the
data_valid register and 24 sequential reads for the scope data per timestamp.
Fetching data for a capture length of 512 over a 921600 baud UART (arty board)
took:
205s (current master branch)
 18s (with this merge function)

The proposed merger only merges read requests from one etherbone packet
at a time and doesn't change the read order.

4 years agotargets: keep in sync with litex-boards.
Florent Kermarrec [Fri, 24 Jul 2020 14:34:17 +0000 (16:34 +0200)]
targets: keep in sync with litex-boards.

4 years agoMerge pull request #604 from antmicro/jboc/axi-lite
enjoy-digital [Fri, 24 Jul 2020 12:54:11 +0000 (14:54 +0200)]
Merge pull request #604 from antmicro/jboc/axi-lite

Improve AXI Lite data width converters

4 years agosoc/interconnect/axi: add basic AXI Lite up-converter
Jędrzej Boczar [Fri, 24 Jul 2020 11:46:51 +0000 (13:46 +0200)]
soc/interconnect/axi: add basic AXI Lite up-converter

4 years agoMerge pull request #603 from enjoy-digital/socdoc-extensions
Sean Cross [Fri, 24 Jul 2020 08:42:23 +0000 (16:42 +0800)]
Merge pull request #603 from enjoy-digital/socdoc-extensions

Socdoc extensions

4 years agodoc: socdoc: document new `sphinx_extra_config` parameter
Sean Cross [Fri, 24 Jul 2020 08:03:24 +0000 (16:03 +0800)]
doc: socdoc: document new `sphinx_extra_config` parameter

This allows for appending additional configuration to `conf.py`.

Signed-off-by: Sean Cross <sean@xobs.io>
4 years agoMerge pull request #602 from enjoy-digital/socdoc-extensions
enjoy-digital [Fri, 24 Jul 2020 08:02:06 +0000 (10:02 +0200)]
Merge pull request #602 from enjoy-digital/socdoc-extensions

doc: socdoc: document `sphinx_extensions` parameter

4 years agolitex: add `sphinx_extra_config` to `generate_docs()`
Sean Cross [Fri, 24 Jul 2020 08:01:54 +0000 (16:01 +0800)]
litex: add `sphinx_extra_config` to `generate_docs()`

This allows us to append additional strings to the sphinx `conf.py`.

Signed-off-by: Sean Cross <sean@xobs.io>
4 years agodoc: socdoc: document `sphinx_extensions` parameter
Sean Cross [Fri, 24 Jul 2020 07:47:59 +0000 (15:47 +0800)]
doc: socdoc: document `sphinx_extensions` parameter

This adds documentation for `sphinx_extensions` which can be used to add
additional features to output.

Signed-off-by: Sean Cross <sean@xobs.io>
4 years agosoc/interconnect/axi: separate AXI Lite converter channels
Jędrzej Boczar [Thu, 23 Jul 2020 14:54:02 +0000 (16:54 +0200)]
soc/interconnect/axi: separate AXI Lite converter channels

4 years agoCHANGES: update.
Florent Kermarrec [Thu, 23 Jul 2020 16:02:58 +0000 (18:02 +0200)]
CHANGES: update.

4 years agocore/cpu: integrate Zynq as a classical CPU (Zynq7000), deprecate SoCZynq.
Florent Kermarrec [Thu, 23 Jul 2020 15:40:46 +0000 (17:40 +0200)]
core/cpu: integrate Zynq as a classical CPU (Zynq7000), deprecate SoCZynq.

This is the logical continuation of the recent change to avoid specific SoC classes.
A Zynq FPGA can be used with or without the PS7. When used without the PS7, a softcore CPU
can be used as with others FPGAs. When using the PS7, the softcore is replaced with the PS7
and connected to the SoC through one of the AXI GP interface.

An example is available on litex-boards.

4 years agoliblitesdcard/sdcard: use max divider of 256 (128 was not enough for the initial...
Florent Kermarrec [Wed, 22 Jul 2020 21:15:36 +0000 (23:15 +0200)]
liblitesdcard/sdcard: use max divider of 256 (128 was not enough for the initial 400Khz clock frequency).

4 years agoCHANGES: update.
Florent Kermarrec [Wed, 22 Jul 2020 21:10:26 +0000 (23:10 +0200)]
CHANGES: update.

4 years agoMerge pull request #600 from antmicro/jboc/axi-lite
enjoy-digital [Wed, 22 Jul 2020 21:03:07 +0000 (23:03 +0200)]
Merge pull request #600 from antmicro/jboc/axi-lite

Implement AXI Lite interconnect

4 years agosoc: add initial DMA bus support (optionally provided by CPU(s) for cache coherency).
Florent Kermarrec [Wed, 22 Jul 2020 16:43:28 +0000 (18:43 +0200)]
soc: add initial DMA bus support (optionally provided by CPU(s) for cache coherency).

When provided, the modules doing DMA shall connect the DMA to the dma_bus to allow the CPU(s) to manage cache coherency
and avoid the manual cache flushes.

This has been tested with VexRiscv SMP and LiteSDCard doing DMA while loading Linux binaries.

4 years agotest/axi: move all AXI Lite tests to separate file
Jędrzej Boczar [Wed, 22 Jul 2020 14:59:17 +0000 (16:59 +0200)]
test/axi: move all AXI Lite tests to separate file

4 years agosoc/integration: use AXILiteSRAM when using bus_standard="axi-lite"
Jędrzej Boczar [Wed, 22 Jul 2020 14:57:51 +0000 (16:57 +0200)]
soc/integration: use AXILiteSRAM when using bus_standard="axi-lite"

4 years agotest/axi: add crossbar stress tests
Jędrzej Boczar [Wed, 22 Jul 2020 14:31:51 +0000 (16:31 +0200)]
test/axi: add crossbar stress tests

4 years agosoc/integration: add bus standard parser arguments
Jędrzej Boczar [Wed, 22 Jul 2020 13:55:49 +0000 (15:55 +0200)]
soc/integration: add bus standard parser arguments

4 years agosoc/interconnect/axi: improve Timeout module and test it with shared interconnect
Jędrzej Boczar [Wed, 22 Jul 2020 13:02:42 +0000 (15:02 +0200)]
soc/interconnect/axi: improve Timeout module and test it with shared interconnect

4 years agotest/axi: add shared AXI Lite interconnect tests
Jędrzej Boczar [Wed, 22 Jul 2020 12:01:02 +0000 (14:01 +0200)]
test/axi: add shared AXI Lite interconnect tests

4 years agosoc/interconnect/axi: implement AXI Lite decoder
Jędrzej Boczar [Tue, 21 Jul 2020 12:25:24 +0000 (14:25 +0200)]
soc/interconnect/axi: implement AXI Lite decoder

4 years agosoc/interconnect/axi: lock AXILiteArbiter until all requests have been responded to
Jędrzej Boczar [Mon, 20 Jul 2020 16:08:56 +0000 (18:08 +0200)]
soc/interconnect/axi: lock AXILiteArbiter until all requests have been responded to

4 years agotest/test_axi: add AXI Lite interconnect arbiter tests
Jędrzej Boczar [Mon, 20 Jul 2020 14:00:21 +0000 (16:00 +0200)]
test/test_axi: add AXI Lite interconnect arbiter tests

4 years agosocinterconnect/axi: interconnect shared sketch
Jędrzej Boczar [Fri, 17 Jul 2020 14:54:57 +0000 (16:54 +0200)]
socinterconnect/axi: interconnect shared sketch

4 years agosoc/interconnect/axi: point-to-point interconnect and timeout module with tests
Jędrzej Boczar [Fri, 17 Jul 2020 14:48:46 +0000 (16:48 +0200)]
soc/interconnect/axi: point-to-point interconnect and timeout module with tests

4 years agosoc/integration: choose interconnect based on bus standard
Jędrzej Boczar [Fri, 17 Jul 2020 10:47:29 +0000 (12:47 +0200)]
soc/integration: choose interconnect based on bus standard

4 years agosoc/integration: add axi-lite standard to SoCBusHandler
Jędrzej Boczar [Fri, 17 Jul 2020 07:59:30 +0000 (09:59 +0200)]
soc/integration: add axi-lite standard to SoCBusHandler

4 years agoMerge pull request #599 from antmicro/gen-mmcm-pr
enjoy-digital [Wed, 22 Jul 2020 12:52:26 +0000 (14:52 +0200)]
Merge pull request #599 from antmicro/gen-mmcm-pr

litex-gen: add mmcm core

4 years agolitex-gen: add mmcm core
Piotr Binkowski [Thu, 2 Jul 2020 12:07:12 +0000 (14:07 +0200)]
litex-gen: add mmcm core

4 years agoboards: keep in sync with litex-boards.
Florent Kermarrec [Wed, 22 Jul 2020 06:50:38 +0000 (08:50 +0200)]
boards: keep in sync with litex-boards.

4 years agosoc/integration/add_sdcard: add direct connection to VexRiscv's dmabus for testing.
Florent Kermarrec [Tue, 21 Jul 2020 17:54:42 +0000 (19:54 +0200)]
soc/integration/add_sdcard: add direct connection to VexRiscv's dmabus for testing.

4 years agocpu/vexriscv/system.h: update flush_cpu_dcache.
Florent Kermarrec [Tue, 21 Jul 2020 17:43:00 +0000 (19:43 +0200)]
cpu/vexriscv/system.h: update flush_cpu_dcache.

4 years agointerconnect/wishbone: add minimal UpConverter.
Florent Kermarrec [Tue, 21 Jul 2020 17:35:14 +0000 (19:35 +0200)]
interconnect/wishbone: add minimal UpConverter.

4 years agoMerge pull request #597 from antmicro/jboc/litex-buildenv-add-adapter-fix
enjoy-digital [Mon, 20 Jul 2020 21:11:01 +0000 (23:11 +0200)]
Merge pull request #597 from antmicro/jboc/litex-buildenv-add-adapter-fix

Fix Vivado crash when using 1:1 wishbone.Converter

4 years agoMerge pull request #595 from betrusted-io/master
enjoy-digital [Mon, 20 Jul 2020 20:47:16 +0000 (22:47 +0200)]
Merge pull request #595 from betrusted-io/master

wire up missing register bits.

4 years agoMerge pull request #598 from sergachev/master
enjoy-digital [Mon, 20 Jul 2020 17:24:21 +0000 (19:24 +0200)]
Merge pull request #598 from sergachev/master

interconnect/csr_bus: fix paged access warning

4 years agointerconnect/csr_bus: fix paged access warning
Ilia Sergachev [Mon, 20 Jul 2020 16:23:09 +0000 (18:23 +0200)]
interconnect/csr_bus: fix paged access warning

4 years agofix/Vivado: don't instantiate wishbone.Converter in add_adapter when not needed
Jędrzej Boczar [Mon, 20 Jul 2020 13:17:56 +0000 (15:17 +0200)]
fix/Vivado: don't instantiate wishbone.Converter in add_adapter when not needed

Fixes an issue with Vivado which crashes with SIGSEGV when building litex-buildenv at:
https://github.com/antmicro/litex-buildenv/commit/cc003bef3ac1407f9788ec8b7cc52d5981f8364a
and litex bumped to 4a18b828bc81522a654f51a73f20faece4dc313c,
with options:
    CPU=mor1kx; CPU_VARIANT=linux; PLATFORM=arty; FIRMWARE=linux; TARGET=net
The only difference in Verilog is that we avoid creating new Interface and doing
`new_interface.connect(interface)`, so this shouldn't make any difference, but
this somehow generates the error in Vivado (tested on v2018.3 and v2019.2).

4 years agosoftware/liblitesdcard/spisdcard: remove optimization on receive_block (not working...
Florent Kermarrec [Mon, 20 Jul 2020 10:28:29 +0000 (12:28 +0200)]
software/liblitesdcard/spisdcard: remove optimization on receive_block (not working on all configs) and increase max clk_freq to 20MHz.

4 years agosoc/cores/spi/SPIMaster: rewrite/simplify.
Florent Kermarrec [Mon, 20 Jul 2020 08:36:35 +0000 (10:36 +0200)]
soc/cores/spi/SPIMaster: rewrite/simplify.
- Make sure MOSI is latched on start, MISO is stable during Xfer (last value).
- Allow clk_divider down to 2.
- improve test errors reporting with hex() on AssertEqual.

4 years agowire up missing register bits.
bunnie [Sat, 18 Jul 2020 19:00:25 +0000 (03:00 +0800)]
wire up missing register bits.

Not sure how they went missing...but just noticed them.

4 years agoliblitesdcard/spisdcard: update comments.
Florent Kermarrec [Fri, 17 Jul 2020 13:39:39 +0000 (15:39 +0200)]
liblitesdcard/spisdcard: update comments.

4 years agosoc/cores/spi: make sure done and miso are synchronous.
Florent Kermarrec [Fri, 17 Jul 2020 13:38:52 +0000 (15:38 +0200)]
soc/cores/spi: make sure done and miso are synchronous.

4 years agospisdcard: revert to 8-bit SPI, optimize spisdcardreceive_block and reduce clk to...
Florent Kermarrec [Fri, 17 Jul 2020 09:58:26 +0000 (11:58 +0200)]
spisdcard: revert to 8-bit SPI, optimize spisdcardreceive_block and reduce clk to 12.5MHz for now.

4 years agosoc/cores/spi: make sure miso is stable during xfer.
Florent Kermarrec [Fri, 17 Jul 2020 09:56:27 +0000 (11:56 +0200)]
soc/cores/spi: make sure miso is stable during xfer.

4 years agobios/boot: add bootargs support on netboot/sdcardboot to optionally specify r1/r2...
Florent Kermarrec [Thu, 16 Jul 2020 16:09:18 +0000 (18:09 +0200)]
bios/boot: add bootargs support on netboot/sdcardboot to optionally specify r1/r2/r3/addr.

For example:
{
"Image":  "0x40000000",
"bootargs": {
"r1":  "0x12345678",
}
}

will copy Image to 0x40000000 and set r1 to 0x12345678.

By default, r1,r2,r3 are set to 0 and addr is the address if the last loaded image, so:

{
"Image":         "0x40000000",
"rootfs.cpio":   "0x40800000",
"rv32.dtb":      "0x41000000",
"emulator.bin":  "0x41100000",
}

is equivalent to:

{
"Image":         "0x40000000",
"rootfs.cpio":   "0x40800000",
"rv32.dtb":      "0x41000000",
"emulator.bin":  "0x41100000",
"bootargs": {
"r1":   "0x00000000",
"r2":   "0x00000000",
"r3":   "0x00000000",
"addr": "0x00000000",
}
}

4 years agoMerge pull request #594 from antmicro/jboc/axi-lite
enjoy-digital [Thu, 16 Jul 2020 15:56:33 +0000 (17:56 +0200)]
Merge pull request #594 from antmicro/jboc/axi-lite

Add AXILiteDownConverter

4 years agosoc/interconnect/axi: propagate response errors in AXILiteDownConverter
Jędrzej Boczar [Thu, 16 Jul 2020 15:15:58 +0000 (17:15 +0200)]
soc/interconnect/axi: propagate response errors in AXILiteDownConverter

4 years agosoc/interconnect/axi: implement AXILite down-converter
Jędrzej Boczar [Thu, 16 Jul 2020 08:21:43 +0000 (10:21 +0200)]
soc/interconnect/axi: implement AXILite down-converter

4 years agoMerge pull request #593 from antmicro/jboc/axi-lite
enjoy-digital [Thu, 16 Jul 2020 09:56:57 +0000 (11:56 +0200)]
Merge pull request #593 from antmicro/jboc/axi-lite

Add AXILite components: AXILiteSRAM and AXILite2CSR

4 years agosoc/integration: revert `bus` argument for add_ram/add_rom
Jędrzej Boczar [Thu, 16 Jul 2020 08:26:12 +0000 (10:26 +0200)]
soc/integration: revert `bus` argument for add_ram/add_rom

4 years agosoc/integration: use AXILiteConverter (dummy implementation) in add_adapter()
Jędrzej Boczar [Wed, 15 Jul 2020 13:59:16 +0000 (15:59 +0200)]
soc/integration: use AXILiteConverter (dummy implementation) in add_adapter()

4 years agosoc/interconnect/axi: add connect methods for convenience
Jędrzej Boczar [Wed, 15 Jul 2020 13:47:06 +0000 (15:47 +0200)]
soc/interconnect/axi: add connect methods for convenience

4 years agotest/axi: add AXILite2CSR and AXILiteSRAM tests
Jędrzej Boczar [Wed, 15 Jul 2020 10:30:28 +0000 (12:30 +0200)]
test/axi: add AXILite2CSR and AXILiteSRAM tests

4 years agoMerge pull request #592 from antmicro/fix-symbiflow-makefile
enjoy-digital [Wed, 15 Jul 2020 10:08:21 +0000 (12:08 +0200)]
Merge pull request #592 from antmicro/fix-symbiflow-makefile

symbiflow: changed toolchain command names in Makefile

4 years agosoc/interconnect/axi: improve SRAM/CSR access speed
Jędrzej Boczar [Wed, 15 Jul 2020 09:28:21 +0000 (11:28 +0200)]
soc/interconnect/axi: improve SRAM/CSR access speed

4 years agosymbiflow: changed toolchain command names in Makefile
Alessandro Comodi [Wed, 15 Jul 2020 09:31:06 +0000 (11:31 +0200)]
symbiflow: changed toolchain command names in Makefile

Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>