Commit Graph

8854 Commits

Author SHA1 Message Date
Arne Jansen 5524a17702 add tx_write_only flag to add_ethernet
This can save some resources in case reading the tx buffer is not needed.
It also makes it easier for synthesis to infer BRAM, tested on Spartan6.
2023-06-27 09:45:50 +02:00
Nate Slager 7a7c74faa9
fix radiant bug 'Mal-formed command line - please check for extra quotes in macro' (#1718)
* fix radiant bug 'Mal-formed command line - please check for extra quotes in macro'

* fix Radiant Mal-formed command line bug (more pythonic)

* (typo, rm line 159) fix Radiant Mal-formed command line bug

---------

Co-authored-by: slagernate@github.com <slagernate@github.com>
2023-06-24 08:57:44 +02:00
Florent Kermarrec a9d6a0c6c9 CHANGES: Update. 2023-06-22 17:40:41 +02:00
Florent Kermarrec fbe3fcf76a CHANGES: Update. 2023-06-21 12:46:16 +02:00
Florent Kermarrec 7b5515ced4 cores/pwm: Simplify pwm generation and avoid potential glitch on reset. 2023-06-19 23:02:50 +02:00
enjoy-digital 298ec03dae
Merge pull request #1713 from shenki/microwatt-socregion
microwatt: Correct SoCRegion typo
2023-06-19 19:23:11 +02:00
Florent Kermarrec d2aae18957 soc/add_pcie/MSI-X: Pass csr_ordering to LitePCIeMSIX. 2023-06-19 19:21:05 +02:00
Florent Kermarrec 94a0a5b0d8 soc/add_pcie: Add msi_width parameter to select MSI width. 2023-06-19 09:54:56 +02:00
Florent Kermarrec a9cbb16785 soc/add_pcie: Add msi_type parameter to select MSI, MSI-Multi-Vector or MSI-X. 2023-06-19 09:45:21 +02:00
Joel Stanley ae22f4028a microwatt: Correct SoCRegion typo
Fixes: 45b9636902 ("integration/soc: Avoid soc_region_cls workaround and update CPUs.")
2023-06-18 21:56:31 +09:30
Florent Kermarrec 6e5651b320 CHANGES: Update. 2023-06-16 08:33:23 +02:00
Florent Kermarrec 56927ee73a cpu/vexriscv_smp/core: Add add_synthesis_define function to add 'define SYNTHESIS to VexRiscv-SMP generated code for toolchains requiring it.
This was causing issue with Gowin synthesis tool and it's not yet clear how to define it from Gowin project.
So do it directly in the generated code for now until we find a better solution.

See https://github.com/enjoy-digital/litex/issues/1698.
2023-06-15 15:45:34 +02:00
Florent Kermarrec 3d3ca05359 tools/litex_client: Fix read regression. 2023-06-14 16:59:47 +02:00
Florent Kermarrec 7a4fa58cbf CHANGES: Update. 2023-06-13 18:37:34 +02:00
Florent Kermarrec 57840c63a3 cores/clock/xilinx_common: Add BUFH support and lower buf parameter before use to allow user to specify it in upper or lower case. 2023-06-13 13:23:47 +02:00
Florent Kermarrec 3a7aaf5124 cores/code_8b10b: Add D function. 2023-06-13 10:00:37 +02:00
Florent Kermarrec a7ba5771b1 integration/soc/add_etherbone: Fix typo. 2023-06-09 15:18:23 +02:00
Florent Kermarrec c6adf703a3 CHANGES.md: Update. 2023-06-06 11:09:44 +02:00
Andrew Dennison e84881072f software/liblitespi: fix building with debug 2023-06-06 10:02:50 +02:00
Andrew Dennison 9c426c14a2 software/liblitespi: add read_id() 2023-06-06 10:02:37 +02:00
Andrew Dennison d0b7f54d27 build/openfpgaloader: support --fpga-part 2023-06-06 10:02:25 +02:00
Andrew Dennison bd7b951af0 soc/software/liblitesdcard: be less verbose
debug is now more usable:

Booting from SDCard in SD-Mode...
Booting from boot.json...
Setting SDCard clk freq to 781 KHz
CMD0: GO_IDLE
cmdevt: wait for event & 0x1
cmdevt: 00000001
00000000 00000000 00000000 00000000
CMD8: SEND_EXT_CSD, arg: 0x000001aa
cmdevt: wait for event & 0x1
cmdevt: 00000005
00000000 00000000 00000000 00000000
Booting from boot.bin...
Setting SDCard clk freq to 781 KHz
CMD0: GO_IDLE
cmdevt: wait for event & 0x1
cmdevt: 00000001
00000000 00000000 00000000 00000000
CMD8: SEND_EXT_CSD, arg: 0x000001aa
cmdevt: wait for event & 0x1
cmdevt: 00000005
00000000 00000000 00000000 00000000
SDCard boot failed.
No boot medium found
2023-06-06 10:02:03 +02:00
Andrew Dennison 51dd5277af soc/integration: support software_debug for add_spi_flash() 2023-06-06 10:01:38 +02:00
Andrew Dennison 93bc2760fe build/openfpgaloader: support jtag index-chain
* allows loading a FPGA that is not the only device in a JTAG scan chain
2023-06-06 10:01:21 +02:00
Andrew Dennison d60f5c221c build/efinity: document SLEW 1 is fast 2023-06-06 10:00:49 +02:00
Andrew Dennison f8a604e0fa build/efinity: assert DRIVE_STRENGTH is valid
With invalid drive strength Efinity 2021.2 fails with an unhelpful message:
 "WARNING: Fail to generate summary report file"

 Efinity 2022.2 does report DRIVE_STRENGTH is invalid
2023-06-06 10:00:27 +02:00
Andrew Dennison 8066a9e265 efinix/dbparser: support more Titanium pll_in pins
* Veridied to fix using A11 on Ti60F255. Without this the wrong GPIO was silently used
* Seems to correctly select PLL_IN clock for these Ti60F255 pins:
** H6, B2, C5, E6, A11, C14, L11, R13, P11, R5, A2
2023-06-06 08:51:41 +02:00
Andrew Dennison e10643bfd5 yosys: add command line arg to be quiet 2023-06-06 08:51:22 +02:00
Andrew Dennison 4eed62143c litex_client: remove duplicate read 2023-06-06 08:49:54 +02:00
Andrew Dennison 5e667f17d7 csr: fix field access check
* Broken in 5dc440e80d
2023-06-06 08:49:32 +02:00
Richard Tucker 88ec1b3f5e tools: include LITESD in zephyr dts generator 2023-06-06 08:42:49 +02:00
Andrew Dennison eb67197a46 tools/linux: fix dts warning: missing #address-cells 2023-06-06 08:42:35 +02:00
Andrew Dennison 9b67898e99 tools/linux: add sys_clk to device tree
* required for using standard devm_clk_get() clock mechanism in linux drivers
2023-06-06 08:41:58 +02:00
Andrew Dennison 200a1a18ee soc/software: move helpers to hw/common.h
Fixes warning:
liblitespi/spiflash.c: In function 'spiflash_erase_range':
liblitespi/spiflash.c:202:4: warning: implicit declaration of function 'cdelay' [-Wimplicit-function-declaration]
    cdelay(CONFIG_CLOCK_FREQUENCY/25);
    ^~~~~~

Fixes link failure with spiflash and without liblitedram after commit: 118dd6ed08

ld: ../liblitespi/liblitespi.a(spiflash.o): in function `spiflash_erase_range':
../liblitespi/spiflash.c:209: undefined reference to `cdelay'
2023-06-06 08:41:35 +02:00
Florent Kermarrec d8ba2e8f65 build/xilinx/vivado: Add project commands to add commands just after project creation. 2023-06-05 14:20:59 +02:00
Florent Kermarrec a1106b997e soc/add_spi_sdcard: Fix broken/useless add_module.
Was already useless before and raise a valid assertion.
2023-06-04 08:19:15 +02:00
enjoy-digital e5f790f29f
Merge pull request #1699 from bjonnh/fix_lattice_programmer
Fix frequency specification for ECPDAP on Lattice
2023-05-30 10:41:23 +02:00
Florent Kermarrec 93b45a687f interconnect/stream/Pipeline: Finalize Pipeline if modules are provided during __init__ (for retro-compatibility). 2023-05-30 08:25:08 +02:00
Jonathan Bisson eb8e43359d
Fix frequency specification for ECPDAP on Lattice
It was given as kHz but it takes Hz
2023-05-27 18:59:07 -05:00
Florent Kermarrec 2a27ca18ea stream/Pipeline: Allow Pipeline to be created dynamically.
Ex:
self.submodules.pipeline = Pipeline()
self.pipeline.add(m0)
self.pipeline.add(m1)
self.pipeline.add(m3)
2023-05-26 10:17:02 +02:00
enjoy-digital c6ccb626e8
Merge pull request #1673 from jiegec/vcu128
Add support for clam shell topology
2023-05-25 22:22:56 +02:00
enjoy-digital 57bffbbb92
Merge pull request #1697 from hansfbaier/master
AvalonMM/AvalonMM2Wishbone: fix read bursts (readdatavalid one cycle too short)
2023-05-22 19:22:56 +02:00
Hans Baier 6ad14ef644 AvalonMM/AvalonMM2Wishbone: fix read bursts (readdatavalid one cycle too short) 2023-05-22 10:04:38 +07:00
Florent Kermarrec 54192651d8 build/xilinx/ise/add_period_constraint: Add keep parameter. 2023-05-21 09:33:19 +02:00
Florent Kermarrec f5a9efd8ba build/add_period_constraint: Fix trellis (thanks bjonnh and zyp) and avoid specific add_period_constraint in libero_soc. 2023-05-21 09:06:20 +02:00
Gwenhael Goavec-Merou 60537fc39f build/xilinx/yosys_nextpnr: fix f4pga_device for xc7a100 : xc7a35t -> xc7a100t 2023-05-18 12:13:29 +02:00
Florent Kermarrec 9c890a0a27 gen/fhdl/verilog: Simplify/Rename registers initialization parameter. 2023-05-17 17:24:06 +02:00
enjoy-digital be1d64acaf
Merge pull request #1690 from bunnie/asic-target
add an option to generate without reg initializers (asic targets)
2023-05-17 16:53:51 +02:00
Florent Kermarrec fb0c9e846d build/add_period_constraint: Simplify by using new integrated cases in generic add_period_constraint. 2023-05-17 16:45:45 +02:00
Florent Kermarrec 53a0bc92e4 build/generic_toolchain: Directly handle specific cases with clk None and differential clk. 2023-05-17 16:44:35 +02:00