litex.git
7 years agogen/sim/core: do not use reset_less clock_domains for the one that are created (logic...
Florent Kermarrec [Tue, 25 Apr 2017 08:56:19 +0000 (10:56 +0200)]
gen/sim/core: do not use reset_less clock_domains for the one that are created (logic may need to access reset signal)

7 years agogen/genlib/cdc: import gcd from math and not fractions (deprecated)
Florent Kermarrec [Tue, 25 Apr 2017 08:55:13 +0000 (10:55 +0200)]
gen/genlib/cdc: import gcd from math and not fractions (deprecated)

7 years agotest: add test_gearbox skeleton
Florent Kermarrec [Mon, 24 Apr 2017 19:41:46 +0000 (21:41 +0200)]
test: add test_gearbox skeleton

7 years agotest/test_targets: check top.v generation
Florent Kermarrec [Mon, 24 Apr 2017 17:25:58 +0000 (19:25 +0200)]
test/test_targets: check top.v generation

7 years agolitex/gen/util/misc: import gcd from math and not fractions (deprecated)
Florent Kermarrec [Mon, 24 Apr 2017 17:25:24 +0000 (19:25 +0200)]
litex/gen/util/misc: import gcd from math and not fractions (deprecated)

7 years agotest: add basic test_targets.py
Florent Kermarrec [Mon, 24 Apr 2017 17:13:17 +0000 (19:13 +0200)]
test: add basic test_targets.py

7 years agosoc/integration/builder.py: don't take care of ROM when compile_software is forced...
Florent Kermarrec [Mon, 24 Apr 2017 17:12:30 +0000 (19:12 +0200)]
soc/integration/builder.py: don't take care of ROM when compile_software is forced to False

7 years agotest: add test_bitslip (initially in litedram)
Florent Kermarrec [Mon, 24 Apr 2017 16:50:06 +0000 (18:50 +0200)]
test: add test_bitslip (initially in litedram)

7 years agoadd test directory with test_code_8b10b.py (from misoc)
Florent Kermarrec [Mon, 24 Apr 2017 16:45:02 +0000 (18:45 +0200)]
add test directory with test_code_8b10b.py (from misoc)

7 years agosoc/cores: add code_8b10b from misoc
Florent Kermarrec [Wed, 19 Apr 2017 09:04:37 +0000 (11:04 +0200)]
soc/cores: add code_8b10b from misoc

7 years agosoc/cores: move flash cores to cores directory
Florent Kermarrec [Wed, 19 Apr 2017 08:55:58 +0000 (10:55 +0200)]
soc/cores: move flash cores to cores directory

7 years agosoc: move uart to a single file
Florent Kermarrec [Wed, 19 Apr 2017 08:37:59 +0000 (10:37 +0200)]
soc: move uart to a single file

7 years agosoc/cores: add new spi master, remove obsolete one
Florent Kermarrec [Wed, 19 Apr 2017 08:16:10 +0000 (10:16 +0200)]
soc/cores: add new spi master, remove obsolete one

7 years agogen/genlib/misc: add BitSlip
Florent Kermarrec [Wed, 19 Apr 2017 07:55:19 +0000 (09:55 +0200)]
gen/genlib/misc: add BitSlip

7 years agogen/genlib/cdc: add gearbox
Florent Kermarrec [Wed, 19 Apr 2017 07:54:28 +0000 (09:54 +0200)]
gen/genlib/cdc: add gearbox

7 years agoboards/platforms: add vadj, change user_sw, user_btn IOStandard to LVCMOS25
Florent Kermarrec [Mon, 3 Apr 2017 15:36:45 +0000 (17:36 +0200)]
boards/platforms: add vadj, change user_sw, user_btn IOStandard to LVCMOS25

7 years agosoc/interconnect/stream_packet.py: make error payload optional on Packetizer
Florent Kermarrec [Tue, 28 Mar 2017 10:21:54 +0000 (12:21 +0200)]
soc/interconnect/stream_packet.py: make error payload optional on Packetizer

7 years agoboards/platforms/papilio_pro: fix imports
Florent Kermarrec [Mon, 27 Mar 2017 08:40:29 +0000 (10:40 +0200)]
boards/platforms/papilio_pro: fix imports

7 years agoboards/platforms/arty: add spi pins
Florent Kermarrec [Mon, 20 Mar 2017 13:28:40 +0000 (14:28 +0100)]
boards/platforms/arty: add spi pins

7 years agoMerge pull request #22 from mithro/master
enjoy-digital [Sun, 12 Mar 2017 12:53:27 +0000 (13:53 +0100)]
Merge pull request #22 from mithro/master

soc_core: Add CPU_RESET_ADDR as a constant.

7 years agosoc_core: Add CPU_RESET_ADDR as a constant.
Tim 'mithro' Ansell [Sun, 12 Mar 2017 09:01:02 +0000 (20:01 +1100)]
soc_core: Add CPU_RESET_ADDR as a constant.

So we can do a "soft reset" by jumping to this address.

7 years agoboards/platforms/kcu105: add user_sma_gpio
Florent Kermarrec [Wed, 8 Mar 2017 15:50:53 +0000 (16:50 +0100)]
boards/platforms/kcu105: add user_sma_gpio

7 years agoMerge pull request #21 from mithro/master
enjoy-digital [Sun, 5 Mar 2017 10:13:05 +0000 (11:13 +0100)]
Merge pull request #21 from mithro/master

Allow using gcc for or1k.

7 years agoAllow using gcc for or1k.
Tim 'mithro' Ansell [Tue, 19 Apr 2016 03:29:07 +0000 (13:29 +1000)]
Allow using gcc for or1k.

 * Using CLANG can set by using CLANG=1 or CLANG=0 in the environment.
 * or1k continues to default to CLANG if environment is not net.

7 years agoMerge pull request #20 from cr1901/platforms
enjoy-digital [Tue, 21 Feb 2017 13:02:19 +0000 (14:02 +0100)]
Merge pull request #20 from cr1901/platforms

Add Mercury development board (port from MiSoC)

7 years agoAdd Mercury development board (port from MiSoC)
William D. Jones [Tue, 21 Feb 2017 10:05:48 +0000 (05:05 -0500)]
Add Mercury development board (port from MiSoC)

7 years agoboards/platforms: fix IOStandard on sfp_tx_disable_n pins
Florent Kermarrec [Mon, 20 Feb 2017 17:34:49 +0000 (18:34 +0100)]
boards/platforms: fix IOStandard on sfp_tx_disable_n pins

7 years agobuild/xilinx/programmer: add target parameter to load_bitstream to select jtag programmer
Florent Kermarrec [Mon, 20 Feb 2017 16:37:03 +0000 (17:37 +0100)]
build/xilinx/programmer: add target parameter to load_bitstream to select jtag programmer

7 years agoboards/platforms/kcu105: add sma/sfp ios
Florent Kermarrec [Mon, 20 Feb 2017 11:22:50 +0000 (12:22 +0100)]
boards/platforms/kcu105: add sma/sfp ios

7 years agoboards/platforms/kc705: add sma/sfp/xadc ios
Florent Kermarrec [Mon, 20 Feb 2017 10:07:25 +0000 (11:07 +0100)]
boards/platforms/kc705: add sma/sfp/xadc ios

7 years agobuild/lattice/diamond: add jedec file generation
Florent Kermarrec [Sat, 18 Feb 2017 16:32:01 +0000 (17:32 +0100)]
build/lattice/diamond: add jedec file generation

7 years agobuild/xilinx/vivado: set_property library only supported for vhdl
Florent Kermarrec [Fri, 17 Feb 2017 10:42:55 +0000 (11:42 +0100)]
build/xilinx/vivado: set_property library only supported for vhdl

7 years agoboards/plaforms: add FMC LPC connector to nexys_video
Florent Kermarrec [Thu, 16 Feb 2017 18:16:07 +0000 (19:16 +0100)]
boards/plaforms: add FMC LPC connector to nexys_video

7 years agoboards/targets: add dram to arty and nexys_video
Florent Kermarrec [Thu, 16 Feb 2017 17:46:14 +0000 (18:46 +0100)]
boards/targets: add dram to arty and nexys_video

7 years agobuild/lattice/diamond: remove use of tools.mkdir_noerror
Florent Kermarrec [Thu, 16 Feb 2017 10:48:22 +0000 (11:48 +0100)]
build/lattice/diamond: remove use of tools.mkdir_noerror

7 years agoboards/targets: remove build and load parameters on arty and nexys_video (consistency...
Florent Kermarrec [Fri, 10 Feb 2017 11:32:33 +0000 (12:32 +0100)]
boards/targets: remove build and load parameters on arty and nexys_video (consistency with others targets)

7 years agoboards/kc705: store bios in flash as it's done for others litex targets (we could...
Florent Kermarrec [Fri, 10 Feb 2017 08:29:50 +0000 (09:29 +0100)]
boards/kc705: store bios in flash as it's done for others litex targets (we could use flash in custom designs)

7 years agoboards/platforms/kcu105: add ddr4 dram pinout
Florent Kermarrec [Thu, 9 Feb 2017 14:11:29 +0000 (15:11 +0100)]
boards/platforms/kcu105: add ddr4 dram pinout

7 years agoboards/platforms/nexys_video: fix IOStandards on hdmi_in
Florent Kermarrec [Mon, 6 Feb 2017 17:18:36 +0000 (18:18 +0100)]
boards/platforms/nexys_video: fix IOStandards on hdmi_in

7 years agoboards/platforms/kcu105: add DP4 to DP7 to HPC connector
Florent Kermarrec [Thu, 2 Feb 2017 17:44:12 +0000 (18:44 +0100)]
boards/platforms/kcu105: add DP4 to DP7 to HPC connector

7 years agobuild/xilinx/programmer: remove open_hw_target parameters on VivadoProgrammer (now...
Florent Kermarrec [Wed, 1 Feb 2017 13:33:26 +0000 (14:33 +0100)]
build/xilinx/programmer: remove open_hw_target parameters on VivadoProgrammer (now works for ultrascale)

7 years agosoc/cores/flash/spi_flash: remove bitbanging comment (no longer supported)
Florent Kermarrec [Wed, 1 Feb 2017 11:21:56 +0000 (12:21 +0100)]
soc/cores/flash/spi_flash: remove bitbanging comment (no longer supported)

7 years agoboards/platforms/kcu105: fix GBTCLK0_M2C/GBTCLK1_M2C pins
Florent Kermarrec [Wed, 1 Feb 2017 10:58:41 +0000 (11:58 +0100)]
boards/platforms/kcu105: fix GBTCLK0_M2C/GBTCLK1_M2C pins

7 years agoboards/platforms/kcu105: add user_sma_clock_p/n
Florent Kermarrec [Wed, 1 Feb 2017 09:36:57 +0000 (10:36 +0100)]
boards/platforms/kcu105: add user_sma_clock_p/n

7 years agoboards/platforms/kcu105: add user_btns, user_dip_btns, clk300, i2c, spi_flash, rotary...
Florent Kermarrec [Tue, 31 Jan 2017 08:57:36 +0000 (09:57 +0100)]
boards/platforms/kcu105: add user_btns, user_dip_btns, clk300, i2c, spi_flash, rotary hdmi, pcie

7 years agoboards/platforms/kcu105: add LPC connector
Florent Kermarrec [Tue, 31 Jan 2017 08:28:22 +0000 (09:28 +0100)]
boards/platforms/kcu105: add LPC connector

7 years agoboards/platforms/kcu105: add user sma clock and HPC connector
Florent Kermarrec [Mon, 30 Jan 2017 17:47:22 +0000 (18:47 +0100)]
boards/platforms/kcu105: add user sma clock and HPC connector

7 years agoboards/platforms: add minimal kcu105 platform
Florent Kermarrec [Mon, 30 Jan 2017 16:20:55 +0000 (17:20 +0100)]
boards/platforms: add minimal kcu105 platform

7 years agosoc/integration/soc_core: use cpu_reset_address = self.mem_map["rom"] when using...
Florent Kermarrec [Mon, 30 Jan 2017 13:10:57 +0000 (14:10 +0100)]
soc/integration/soc_core: use cpu_reset_address = self.mem_map["rom"] when using integrated_rom

7 years agoboards/platform/arty: add spiflash_4x/spiflash_1x to test SpiFlashDualQuad and SpiFla...
Florent Kermarrec [Thu, 26 Jan 2017 12:27:15 +0000 (13:27 +0100)]
boards/platform/arty: add spiflash_4x/spiflash_1x to test SpiFlashDualQuad and SpiFlashSingle

7 years agoadd SpiFlashSingle and rename SpiFlash to SpiFlashDualQuad
Florent Kermarrec [Thu, 26 Jan 2017 11:31:26 +0000 (12:31 +0100)]
add SpiFlashSingle and rename SpiFlash to SpiFlashDualQuad

7 years agoMerge pull request #19 from mithro/master
enjoy-digital [Fri, 20 Jan 2017 00:29:12 +0000 (01:29 +0100)]
Merge pull request #19 from mithro/master

Adding paths for vivado.

7 years agoAdding paths for vivado.
Tim 'mithro' Ansell [Thu, 19 Jan 2017 23:08:16 +0000 (10:08 +1100)]
Adding paths for vivado.

7 years agoMerge pull request #14 from mithro/spiflash2
enjoy-digital [Tue, 17 Jan 2017 03:41:05 +0000 (04:41 +0100)]
Merge pull request #14 from mithro/spiflash2

spi_flash: fix bitbang with spi_width=1

7 years agosoc/software/main: fix double serialboot (merge issue)
Florent Kermarrec [Tue, 17 Jan 2017 03:36:15 +0000 (04:36 +0100)]
soc/software/main: fix double serialboot (merge issue)

7 years agoMerge pull request #17 from mithro/master
enjoy-digital [Sat, 14 Jan 2017 08:45:43 +0000 (09:45 +0100)]
Merge pull request #17 from mithro/master

Fixing missing csr_constant/config support.

7 years agoFixing missing csr_constant/config support.
Tim 'mithro' Ansell [Sat, 14 Jan 2017 08:05:55 +0000 (19:05 +1100)]
Fixing missing csr_constant/config support.

Missed as part of misoc merge at ff31959aea1e3815d95798996c3999f122314ae6.

7 years agoMerge pull request #16 from mithro/master
enjoy-digital [Fri, 13 Jan 2017 13:57:56 +0000 (14:57 +0100)]
Merge pull request #16 from mithro/master

Fixing accidental revert in merge commit.

7 years agoFixing accidental revert in merge commit.
Tim 'mithro' Ansell [Fri, 13 Jan 2017 13:12:02 +0000 (00:12 +1100)]
Fixing accidental revert in merge commit.

7 years agomerge most of misoc 54e1ef82 and migen e93d0601 changes
Florent Kermarrec [Fri, 13 Jan 2017 00:33:48 +0000 (01:33 +0100)]
merge most of misoc 54e1ef82 and migen e93d0601 changes

7 years agoMerge pull request #15 from joeladdison/master
enjoy-digital [Thu, 12 Jan 2017 03:24:28 +0000 (04:24 +0100)]
Merge pull request #15 from joeladdison/master

Add strcasecmp function to lib

7 years agogen/genlib/cdc: add GrayDecoder from misoc
Florent Kermarrec [Thu, 12 Jan 2017 03:15:33 +0000 (04:15 +0100)]
gen/genlib/cdc: add GrayDecoder from misoc

7 years agoAdd strcasecmp function to lib
Joel Addison [Thu, 12 Jan 2017 03:00:05 +0000 (14:00 +1100)]
Add strcasecmp function to lib

7 years agosoc/tools/litex_term.py: fix reader for c = b"\r" case
Florent Kermarrec [Wed, 11 Jan 2017 00:56:10 +0000 (01:56 +0100)]
soc/tools/litex_term.py: fix reader for c = b"\r" case

7 years agosoc/interconnect/stream/: add busy signal to PipelinedActor
Florent Kermarrec [Tue, 10 Jan 2017 01:12:30 +0000 (02:12 +0100)]
soc/interconnect/stream/: add busy signal to PipelinedActor

7 years agospi_flash: fix bitbang with spi_width=1
Sebastien Bourdeauducq [Wed, 21 Dec 2016 09:57:29 +0000 (10:57 +0100)]
spi_flash: fix bitbang with spi_width=1

7 years agoMerge pull request #13 from mithro/master
enjoy-digital [Fri, 23 Dec 2016 10:38:49 +0000 (11:38 +0100)]
Merge pull request #13 from mithro/master

Raise AttributeError.

7 years agoRaise AttributeError.
Tim 'mithro' Ansell [Fri, 23 Dec 2016 10:14:18 +0000 (11:14 +0100)]
Raise AttributeError.

Makes hasattr work correctly.

7 years agoMerge pull request #12 from mithro/makefile-fix
enjoy-digital [Mon, 19 Dec 2016 13:41:39 +0000 (14:41 +0100)]
Merge pull request #12 from mithro/makefile-fix

Fix Makefile dependency inclusion for other software.

7 years agoFix Makefile dependency inclusion for other software.
Tim 'mithro' Ansell [Mon, 19 Dec 2016 13:29:13 +0000 (14:29 +0100)]
Fix Makefile dependency inclusion for other software.

7 years agoMerge pull request #11 from mithro/file-dont-change
enjoy-digital [Sat, 17 Dec 2016 13:43:34 +0000 (14:43 +0100)]
Merge pull request #11 from mithro/file-dont-change

Only require rebuild on actual changes

7 years agoMerge pull request #10 from mithro/etherbone
enjoy-digital [Sat, 17 Dec 2016 13:43:10 +0000 (14:43 +0100)]
Merge pull request #10 from mithro/etherbone

Patches to make it easier to work with Etherbone

7 years agoAllow CSRElement objects to be autocompleted.
Tim 'mithro' Ansell [Fri, 16 Dec 2016 14:59:26 +0000 (15:59 +0100)]
Allow CSRElement objects to be autocompleted.

7 years agoProvide csr_data_width via the constants.
Tim 'mithro' Ansell [Fri, 16 Dec 2016 14:41:15 +0000 (15:41 +0100)]
Provide csr_data_width via the constants.

7 years agobios: Include dependency rebuild info.
Tim 'mithro' Ansell [Fri, 16 Dec 2016 17:02:28 +0000 (18:02 +0100)]
bios: Include dependency rebuild info.

7 years agomain.o is not a phony target.
Tim 'mithro' Ansell [Thu, 15 Dec 2016 18:56:58 +0000 (19:56 +0100)]
main.o is not a phony target.

7 years agoUse write_to_file helper.
Tim 'mithro' Ansell [Thu, 15 Dec 2016 18:51:36 +0000 (19:51 +0100)]
Use write_to_file helper.

7 years agoDon't modify file if contents hasn't changed.
Tim 'mithro' Ansell [Thu, 15 Dec 2016 18:14:12 +0000 (19:14 +0100)]
Don't modify file if contents hasn't changed.

7 years agoMake the csv directory if it doesn't exist.
Tim 'mithro' Ansell [Thu, 15 Dec 2016 15:33:08 +0000 (16:33 +0100)]
Make the csv directory if it doesn't exist.

7 years agolitex/boards: add machxo3 starter kit platform
Florent Kermarrec [Fri, 2 Dec 2016 16:24:13 +0000 (17:24 +0100)]
litex/boards: add machxo3 starter kit platform

7 years agolitex/build: move xcf_template to platform (xcf is specific to platform)
Florent Kermarrec [Fri, 2 Dec 2016 16:23:40 +0000 (17:23 +0100)]
litex/build: move xcf_template to platform (xcf is specific to platform)

7 years agosoc/software/bios/main: revision command becomes ident
Florent Kermarrec [Wed, 30 Nov 2016 14:45:06 +0000 (15:45 +0100)]
soc/software/bios/main: revision command becomes ident

7 years agosoc/software/bios: remove dataflow
Florent Kermarrec [Wed, 30 Nov 2016 14:44:30 +0000 (15:44 +0100)]
soc/software/bios: remove dataflow

7 years agolitex_term: nicer progress bar
whitequark [Thu, 10 Nov 2016 19:15:56 +0000 (20:15 +0100)]
litex_term: nicer progress bar

7 years agobuild/xilinx/vivado: fix settings source on linux
Florent Kermarrec [Wed, 30 Nov 2016 14:28:38 +0000 (15:28 +0100)]
build/xilinx/vivado: fix settings source on linux

8 years agoMerge pull request #9 from mithro/vprintf-fix
enjoy-digital [Sun, 30 Oct 2016 08:43:43 +0000 (09:43 +0100)]
Merge pull request #9 from mithro/vprintf-fix

libbase: Adding missing vprintf function.

8 years agoMerge pull request #7 from mithro/master
enjoy-digital [Sun, 30 Oct 2016 08:43:27 +0000 (09:43 +0100)]
Merge pull request #7 from mithro/master

soc/software/Makefile: Fix Makefile depend generation.

8 years agolibbase: Adding missing vprintf function.
Tim 'mithro' Ansell [Sun, 30 Oct 2016 05:14:59 +0000 (16:14 +1100)]
libbase: Adding missing vprintf function.

Fixes #8.

```
int vprintf(const char *format, va_list ap);

The functions vprintf(), vfprintf(), vsprintf(), vsnprintf() are equivalent to
the functions printf(), fprintf(), sprintf(), snprintf(), respectively, except
that  they  are  called  with  a  va_list instead of a variable number of
arguments.
```

8 years agosoc/software/Makefile: Fix Makefile depend generation.
Tim 'mithro' Ansell [Thu, 27 Oct 2016 12:54:42 +0000 (23:54 +1100)]
soc/software/Makefile: Fix Makefile depend generation.

Previously the flags were not actually set and the *.d files were never
actually generated.

8 years agoboards/targets/sim: fix
Florent Kermarrec [Fri, 14 Oct 2016 15:49:04 +0000 (17:49 +0200)]
boards/targets/sim: fix

8 years agoElasticBuffer: infer reset
Robert Jordens [Fri, 14 Oct 2016 07:43:09 +0000 (09:43 +0200)]
ElasticBuffer: infer reset

8 years agogen/genlib/cdc: add ElasticBuffer
Florent Kermarrec [Thu, 13 Oct 2016 15:04:39 +0000 (17:04 +0200)]
gen/genlib/cdc: add ElasticBuffer

8 years agoboards/platforms: add papilio_pro
Florent Kermarrec [Thu, 1 Sep 2016 14:27:49 +0000 (16:27 +0200)]
boards/platforms: add papilio_pro

8 years agosoc/tools/remote: allow direct use of comm_udp and some fixes
Florent Kermarrec [Mon, 18 Jul 2016 15:04:58 +0000 (17:04 +0200)]
soc/tools/remote: allow direct use of comm_udp and some fixes

8 years agobuild/xilinx/ise: remove debug print
Florent Kermarrec [Wed, 29 Jun 2016 21:32:43 +0000 (23:32 +0200)]
build/xilinx/ise: remove debug print

8 years agosetup.py: remove litex_client from console_scripts, we just need to import RemoteClie...
Florent Kermarrec [Wed, 29 Jun 2016 21:29:45 +0000 (23:29 +0200)]
setup.py: remove litex_client from console_scripts, we just need to import RemoteClient in our test scripts

8 years agobuild/xilinx/ise: fix top name
Florent Kermarrec [Wed, 29 Jun 2016 21:22:57 +0000 (23:22 +0200)]
build/xilinx/ise: fix top name

8 years agoboards/targets/sim: desactivate refresh for simulation
Florent Kermarrec [Mon, 20 Jun 2016 14:00:19 +0000 (16:00 +0200)]
boards/targets/sim: desactivate refresh for simulation

8 years agosoc/tools/remove/comm_uart: limit write bursts to 8 32bits words
Florent Kermarrec [Mon, 30 May 2016 14:16:05 +0000 (16:16 +0200)]
soc/tools/remove/comm_uart: limit write bursts to 8 32bits words

8 years agogen/sim/vcd: allow continous update of vcd file and dynamic signals
Florent Kermarrec [Sat, 28 May 2016 08:25:48 +0000 (10:25 +0200)]
gen/sim/vcd: allow continous update of vcd file and dynamic signals

With continous update, VCD header needs to be writen at the beginning of the simulation.
When a new signal is created, we rewrite the header and the content.