Commit Graph

6517 Commits

Author SHA1 Message Date
Florent Kermarrec 88ef2a330b software/bios/cmds/cmd_litedram: rename spdread command to sdram_spd. 2020-09-16 22:48:32 +02:00
Florent Kermarrec 3380de4adf software/bios/cmds/cmd_i2c: rename commands to i2c_xy. 2020-09-16 22:45:19 +02:00
Florent Kermarrec 79009f762d software/bios/cmds/cmd_spiflash: rename commands to flash_xy. 2020-09-16 22:44:47 +02:00
Florent Kermarrec cb55d7119c software/bios/cmds/cmd_liteeth: rename commands to mdio_xy. 2020-09-16 22:39:56 +02:00
Florent Kermarrec d5162a2a2b software/bios/cmds: use _handler suffix on all cmds functions. 2020-09-16 22:37:46 +02:00
Florent Kermarrec d4018b7ccf software/bios/cmds/cmd_litesdcard: rename commands to sdcard_xy. 2020-09-16 22:32:27 +02:00
Florent Kermarrec 400bf13400 bios/cmds/cmd_mem: rename commands to mem_xy. 2020-09-16 22:25:33 +02:00
Florent Kermarrec 21cc7df2fa software/bios/cmds/cmd_mem: remove debug cmds that shouldn't have been merged. 2020-09-16 21:18:37 +02:00
Florent Kermarrec 74fb086322 software/liblitedram: rename functions/commands and expose mode register write function to user. 2020-09-16 20:01:39 +02:00
Florent Kermarrec dc087f948a software/liblitedram/sdram: keep sdrwlon/sdrwloff private. 2020-09-16 11:56:39 +02:00
Florent Kermarrec 9c2975e8b4 software/liblitedram/sdram: remove low level manual controls of the DFI interface.
This was too low level and unused.
2020-09-16 11:22:15 +02:00
Florent Kermarrec 8a9d17c768 software/liblitedram/sdram.c: move sdrwl_delays definition to write_leveling section and add #ifdef on reinitialization. 2020-09-16 11:03:10 +02:00
enjoy-digital f208a5db2c
Merge pull request #649 from gsomlo/gls-misc-fixup
misc. fixes for a few recent commits
2020-09-15 21:17:14 +02:00
Gabriel Somlo 9729d053eb software/memtest: use "unsigned long" to represent pointers 2020-09-15 14:46:18 -04:00
Gabriel Somlo 6c838cedcd libbase/sim_debug: wrap markers variables within appropriate #ifdef 2020-09-15 14:46:18 -04:00
Gabriel Somlo e2719d4d71 fixup for e28e808c - don't define variable in .h file 2020-09-15 14:46:18 -04:00
Florent Kermarrec a69273db50 boards/targets/arty: switch SDRAM to NETWORKING mode (interface_type no longer supported). 2020-09-15 19:59:20 +02:00
Florent Kermarrec 404104be21 software/liblitedram/sdram.c: increase ddrphy reset time. 2020-09-15 19:58:17 +02:00
Florent Kermarrec cfe6f56572 software/liblitedram/sdram.c: improve reporting.
- ident sub-reports.
- avoid displaying software/hardware swich if set to previous value.
2020-09-15 19:41:20 +02:00
Florent Kermarrec e63a40370e software/libbase/memtest: improve reporting.
- indent sub-reports.
- report speed in MiB/s.
2020-09-15 19:37:09 +02:00
Florent Kermarrec e28e808c24 software/liblitedram: allow forced write leveling delays, improve delay printf when failing. 2020-09-15 19:34:09 +02:00
Florent Kermarrec 1d63d66a09 software/libbase/memtest: improve memtest_data progress.
Add base/current tested address and current/total tested size.

ex:
Memtest at 0x40000000...
Write: 0x40000000-0x40200000 (2/2MiB)
Read:  0x40000000-0x40200000 (2/2MiB)
2020-09-14 11:51:16 +02:00
Florent Kermarrec c169494793 litex_setup: detect and allow execution from a cloned LiteX repository.
Others dependencies will be installed alongside the Litex repository.
2020-09-10 13:19:34 +02:00
Florent Kermarrec b39fea4ecb software/liblitedram/write_level_scan: reset write delay even if not succeeding. 2020-09-07 18:53:31 +02:00
Florent Kermarrec 658f712001 software/liblitedram/write_level: add support for manual command delay.
Required on some configurations where automatic cmd/clk scan still has troubles.
2020-09-07 18:47:18 +02:00
enjoy-digital 5ee074f422
Merge pull request #642 from gsomlo/gls-sdcard-blk-vs-sec
RFC: bios/sdcard: use (512 byte) blocks as the smallest addressable data unit
2020-09-07 17:41:50 +02:00
enjoy-digital c0fb3691e6
Merge pull request #647 from antmicro/jboc/sim-debug
Improve dynamic tracing support in the simulator
2020-09-07 16:46:37 +02:00
Jędrzej Boczar 7c3fbf1d06 sim: improve tracing reset value and behaviour with sim_debug=False 2020-09-07 15:29:02 +02:00
Jędrzej Boczar 3fd567c4c9 sim: additional simulation tracing and debugging tools 2020-09-07 15:28:26 +02:00
Florent Kermarrec c247814ed4 software/liblitedram/sdram.c: add ifdef on MPR functions. 2020-09-05 11:37:07 +02:00
Florent Kermarrec f7b6dd05ae cores/clock: add initial Xilinx Ultrascale Plus PLL/MMCM/IDELAYCTRL support. 2020-09-03 18:58:10 +02:00
Florent Kermarrec 6d8a367abe software/liblitedram: add separators, expose read_level. 2020-09-03 17:47:32 +02:00
Florent Kermarrec ae152e28a7 software/liblitedram: add sdrmpr functions. 2020-09-03 15:25:04 +02:00
Florent Kermarrec 3e083958b0 software/liblitedram: move calibration to sdrcal function. 2020-09-03 14:55:37 +02:00
Florent Kermarrec 31afe55821 tools/litex_sim: avoid build/run duplication. 2020-09-03 09:21:37 +02:00
Florent Kermarrec e8f21cd958 build/sim/verilator: cleanup SimVerilatorToolchain, return to initial path after build/run. 2020-09-03 09:21:14 +02:00
Gabriel Somlo d86d20671e bios/sdcard: use (512 byte) blocks as the smallest addressable data unit
In liblitesdcard/sdcard.c, replace s/sector/block/ as the 512 byte sized
unit of data transfer to/from the sdcard.

In bios/cmds/cmd_litesdcard.c, do NOT multiply block numbers by 512,
allowing any "block" (a.k.a. "sector") on the sdcard to be addressed for
testing.

Before this patch, user-input "block numbers" were multiplied by 512 and
passed into sdcard_[read|write]() as "sector numbers", with the sdcard
logic internally treating these as 512-byte sized addressable units on
the card. This resulted in only every 512'th 512-byte sized "sector" being
accessible from the bios command line.

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
2020-09-02 12:07:38 -04:00
Florent Kermarrec 222e3f4003 tools/remote/comm_uart: fix offset on write bursts. 2020-09-02 17:23:56 +02:00
Florent Kermarrec 6250d4fa41 integration/builder: fix bios_option typo. 2020-09-01 15:39:43 +02:00
Florent Kermarrec 267f3e30df integration/soc/add_spi_flash: update to use new API. 2020-09-01 12:27:43 +02:00
enjoy-digital ee6dd5cd20
Merge pull request #644 from Xiretza/sdram-csr-map
integration/soc: use csr.add() instead of add_csr()
2020-09-01 12:08:33 +02:00
Florent Kermarrec 2538b2c300 soc/cores/clock: add with_reset parameter to create_clkout on iCE40PLL/ECP5PLL (similar to others PLLs).
Avoid instantiating the AsyncResetSynchronizer manually.
2020-09-01 11:50:08 +02:00
Florent Kermarrec f07efcb97f integration/builder: change bios_options to list and add assert for supported options. 2020-09-01 11:48:52 +02:00
Xiretza 05e8ecf2e2
integration/soc: use csr.add() instead of add_csr()
add_csr() is defined by SoCCore, so won't work for any instances of
LiteXSoC that aren't also SoCCores. Also, use use_loc_if_exists=True
so SoCCore.csr_map can be used without double allocation errors.
2020-08-31 19:09:49 +02:00
Florent Kermarrec 043cfc5df7 soc/interconnect/axi/AXIStreamInterface: manage user as param. 2020-08-31 09:59:05 +02:00
enjoy-digital cb8a30944f
Merge pull request #643 from gregdavill/crt0_data_fix
crt0: fix .data section initialise on [Serv,Minerva]
2020-08-30 19:14:17 +02:00
Greg Davill 632cfcc257 soc/cores/cpu/serv: fix crt0 .data initialize 2020-08-30 10:52:16 +09:30
Greg Davill dcd99cc999 soc/cores/cpu/minerva: fix crt0 .data initialize 2020-08-30 10:52:04 +09:30
Florent Kermarrec bda54b1177 software/liblitedram: reset ddrphy before initialization if rst CSR present (added on 7-series). 2020-08-28 17:59:24 +02:00
Florent Kermarrec b44ca6d61a soc/core/uart: add fixed burst support to UARTBone.
Allows speeding-up consecutives accesses on the same address. This is currently
used by LiteDRAM bench to speed-up the logging of the BIOS over the crossover UART,
but could be useful for other purposes.
2020-08-28 03:49:50 +02:00