Florent Kermarrec
52f36b1257
integration/soc/sdcard: cleanup emulator integration, fix sim.
2020-07-07 15:05:07 +02:00
Florent Kermarrec
7602977c16
integration/soc: move pads.rst control to PHY.
2020-07-07 14:58:06 +02:00
Florent Kermarrec
51f2e6ce64
build/io/InferedSDRTristate: pass clock domain to SDROutput/SDRInput.
2020-07-07 12:11:47 +02:00
Florent Kermarrec
23dfefb9be
software/liblitesdcard: improve sdcard_init and handle errors.
2020-07-07 11:03:26 +02:00
Florent Kermarrec
8d76509032
litesdcard: use new Block2Mem/Mem2Block DMAs.
2020-07-07 09:24:08 +02:00
Florent Kermarrec
eeea30eada
litex/gen: remove io that has been replaced with litex/build/io (and should have been removed).
2020-07-07 08:14:42 +02:00
enjoy-digital
0a3095ead2
Merge pull request #583 from gsomlo/gls-sdcard-timeout
...
liblitesdcard/sdcard: adjust card-ready timeout
2020-07-07 08:06:55 +02:00
Gabriel Somlo
6fdb36b84a
liblitesdcard/sdcard: adjust card-ready timeout
...
Testing on nexys4ddr and rocket, approximately 12 iterations of the
timeout loop (using `busy_wait(1)`) are needed to receive a "ready"
response from the SDcard, assuming a "warm" reset where the card has
already been previously initialized.
If the SDcard is ejected and re-inserted, or if the board is "cold-reset"
(e.g., reprogrammed via openocd vs. a simple push of the reset button),
it takes approximately 450 iterations before the SDCard responds with a
"ready" message.
In either case, a timeout of 10 is insufficient. This patch increases
the busy-wait to 10, and the timeout loop counter to 128, which should
cover most cases.
Additionally, make a few minor cosmetic improvements.
Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
2020-07-06 17:38:07 -04:00
Florent Kermarrec
e473c6f29e
liblitesdcard/sdcard: add timeout when waiting card to be ready.
2020-07-06 20:07:20 +02:00
Florent Kermarrec
31d4d7c22c
liblitesdcard/sdcard: use new SDClocker enable CSR.
2020-07-06 18:59:28 +02:00
Florent Kermarrec
f0a97791a9
interconnect/csr_bus: move/rewrite paged access warning.
...
Was incorrectly triggered with csr_data_width=32.
2020-07-06 12:26:24 +02:00
Florent Kermarrec
9e46195299
interconnect/csr_bus: remove 64-bit CSR bus alignment support (no longer supported in SoCs).
2020-07-06 09:51:32 +02:00
enjoy-digital
527798f734
Merge pull request #582 from gsomlo/gls-minor-fixup
...
Minor sdcard fixes
2020-07-05 10:06:01 +02:00
Gabriel Somlo
c52731d1f1
liblitesdcard/sdcard: return error code outside '#ifdef SDCARD_DEBUG'
2020-07-04 15:24:05 -04:00
Gabriel Somlo
499d291daa
liblitesdcard/sdcard: cosmetic: fix indentation, eliminate redundant counter
2020-07-04 15:22:28 -04:00
Florent Kermarrec
2bfa372b7c
targets: remove sdcard clock domain (now generated in the PHY).
2020-07-03 20:11:05 +02:00
Florent Kermarrec
31a9273c6d
litesdcard: use new clocker.
2020-07-03 20:06:42 +02:00
Florent Kermarrec
ee8da87e41
liblitesdcard/sdcard: use new register names and new software initalization register.
2020-07-03 19:30:06 +02:00
Florent Kermarrec
e6b94b1663
interconnect/stream: allow empty description/payload on Endpoint.
2020-07-03 19:29:05 +02:00
Florent Kermarrec
2f6b27da23
litelitesdcard/sdcard: remove wait workaround and replace remove SDCARD_MULTIPLE_BLOCK_SUPPORT define (replace it with SDCARD_CMD23_SUPPORT).
2020-07-03 18:48:43 +02:00
Florent Kermarrec
94821cb73c
litesdcard: update integration.
2020-07-03 14:57:40 +02:00
Florent Kermarrec
2c53f9b2ff
interconnect/stream: add ClockDomainCrossing wrapper around AsyncFIFO.
2020-07-03 14:39:31 +02:00
Florent Kermarrec
23a95bea1d
integration/soc/etherbone: always run ethcore in eth_tx clock domain and remove clock_domain parameter.
...
This avoid issues when sys_clk_freq < eth_tx clock like sys_clk_freq < 125MHz with 1Gbps link.
2020-07-02 11:38:54 +02:00
enjoy-digital
4575a11748
Merge pull request #581 from antmicro/i2s_tx_fix
...
i2s: Fix the incorrect TX fifo almost empty offset
2020-07-01 15:27:06 +02:00
Pawel Sagan
16a0aebcad
i2s: Fix the incorrect TX fifo almost empty offset
2020-07-01 13:32:53 +02:00
Florent Kermarrec
8f204e7797
sdcard: rename cd_sdcard to cd_sd to avoid unnecessary clock domain.
2020-07-01 12:50:24 +02:00
Florent Kermarrec
42bfb90f14
liblitesdcard/sdcard: add SDCARD_MULTIPLE_BLOCK_SUPPORT define.
2020-07-01 12:40:23 +02:00
Florent Kermarrec
e492e96bf7
integration/soc/add_sdcard: update SDEmulator.
2020-07-01 12:39:56 +02:00
Florent Kermarrec
996e9a9180
tools/litex_sim: cleanup cpu endianness.
2020-07-01 09:47:10 +02:00
enjoy-digital
1c631ceeee
Merge pull request #580 from Dolu1990/patch-2
...
Improve verilator compilation speed
2020-07-01 08:37:03 +02:00
Florent Kermarrec
949a8e73c2
boards/platforms/versa_ecp5: fix mising update.
2020-07-01 08:35:54 +02:00
Florent Kermarrec
c0dba18d59
tools/litex_crossover_uart: add host argument to connect to a remote server.
...
example: litex_server over PCIe running on a remote machine and create virtual uart on our local machine.
2020-06-30 19:19:00 +02:00
Florent Kermarrec
6fe4994f66
targets: add identifier on all targets and update Versa ECP5.
2020-06-30 18:32:11 +02:00
Florent Kermarrec
5713c21017
tools/remote/comm_pcie: use ctypes.c_uint32 to do 32-bit accesses and avoid double writes/reads.
2020-06-30 14:12:35 +02:00
Florent Kermarrec
68297fce9e
tools/litex_crossover_uart: add base_address argument (required when wishbone translation).
2020-06-30 14:11:27 +02:00
Dolu1990
b455a81678
Improve verilator compilation speed
...
by asking verilator to split the C++ model into multiple files.
2020-06-30 10:38:26 +02:00
Florent Kermarrec
54598ed2f8
software/bios/Makefile: fix #578 merge. (get back #579 ).
2020-06-29 17:01:36 +02:00
Florent Kermarrec
7beffba187
software/libbase/memtest: fix bus errors reporting.
2020-06-29 16:46:03 +02:00
enjoy-digital
ad76f5f3d8
Merge pull request #578 from scanakci/blackparrot_litex
...
Blackparrot litex syn with master BP, upgrade to IMA
2020-06-29 14:53:33 +02:00
enjoy-digital
eafceb94f9
Merge branch 'master' into blackparrot_litex
2020-06-29 14:53:13 +02:00
enjoy-digital
5a1c3a7c16
Merge pull request #579 from antmicro/fix_building_bios
...
Fix ordering of libraries
2020-06-29 14:52:37 +02:00
sadullah
caf520c854
clean Makefile
2020-06-28 21:23:56 -04:00
sadullah
9256a4db6d
minor change in BP top module
2020-06-28 13:10:24 -04:00
sadullah
7c83a1b858
syn with master blackparrot, upgrade BP to IMA
2020-06-28 13:07:59 -04:00
enjoy-digital
dae23f2a82
Merge pull request #576 from betrusted-io/deprecate_slave
...
Deprecate slave terminology
2020-06-27 09:35:04 +02:00
Florent Kermarrec
1e605fb23d
liblitesdcard/sdcard: update with litesdcard.
2020-06-26 20:10:10 +02:00
Florent Kermarrec
34e9d12ef2
interconnect/axi/AXIStreamInterface: add tuser support.
2020-06-26 08:36:16 +02:00
Florent Kermarrec
4094a6ec3a
liblitesdcard/sdcard: increase busy_wait and use common timeout.
2020-06-25 20:07:39 +02:00
Florent Kermarrec
e8f84c96a7
liblitesdcard/sdcard: decode cid only when SDCARD_DEBUG is set.
2020-06-25 13:48:49 +02:00
Florent Kermarrec
c07703124f
liblitesdcard/sdcard_read: enable multiple block read.
...
>10MB/s read speed with a 25MHz clock.
2020-06-25 13:46:39 +02:00