litex.git
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 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.

8 years agobuild/sim/dut_tb: add bottom line on surface to show frame count
Florent Kermarrec [Mon, 23 May 2016 08:20:05 +0000 (10:20 +0200)]
build/sim/dut_tb: add bottom line on surface to show frame count

8 years agogen/sim/core: add Display support
Florent Kermarrec [Wed, 18 May 2016 13:47:10 +0000 (15:47 +0200)]
gen/sim/core: add Display support

8 years agogen/fhdl/structure: fix Display
Florent Kermarrec [Wed, 18 May 2016 10:41:29 +0000 (12:41 +0200)]
gen/fhdl/structure: fix Display

8 years agobuild/sim/dut_tb: rename needs to wait
Florent Kermarrec [Thu, 12 May 2016 13:39:51 +0000 (15:39 +0200)]
build/sim/dut_tb: rename needs to wait

8 years agobuid/sim: add vga framebuffer with SDL
Florent Kermarrec [Wed, 4 May 2016 18:17:02 +0000 (20:17 +0200)]
buid/sim: add vga framebuffer with SDL

8 years agoadapt to litedram changes
Florent Kermarrec [Tue, 3 May 2016 22:59:02 +0000 (00:59 +0200)]
adapt to litedram changes

8 years agosoc/integration/soc_dram: sync with litedram
Florent Kermarrec [Tue, 3 May 2016 17:44:33 +0000 (19:44 +0200)]
soc/integration/soc_dram: sync with litedram

8 years agoboards/targets/sim: update litedram
Florent Kermarrec [Sun, 1 May 2016 08:26:21 +0000 (10:26 +0200)]
boards/targets/sim: update litedram

8 years agogen/fhdl: add Display for debug in simulation
Florent Kermarrec [Fri, 29 Apr 2016 21:03:43 +0000 (23:03 +0200)]
gen/fhdl: add Display for debug in simulation

8 years agoboards/targets: SDRAM modules are now litedram.modules
Florent Kermarrec [Fri, 29 Apr 2016 17:05:23 +0000 (19:05 +0200)]
boards/targets: SDRAM modules are now litedram.modules

8 years agotargets: remove sdram_controller_type parameter (minicon removed)
Florent Kermarrec [Fri, 29 Apr 2016 15:51:16 +0000 (17:51 +0200)]
targets: remove sdram_controller_type parameter (minicon removed)

8 years agosoc/integration/soc_sdram: use new LiteDRAM names
Florent Kermarrec [Fri, 29 Apr 2016 15:40:55 +0000 (17:40 +0200)]
soc/integration/soc_sdram: use new LiteDRAM names

8 years agosoc_sdram: remove minicon support (we will make lasmicon more configurable to reduce...
Florent Kermarrec [Fri, 29 Apr 2016 14:24:24 +0000 (16:24 +0200)]
soc_sdram: remove minicon support (we will make lasmicon more configurable to reduce ressource usage)

8 years agosoftware/sdram: cleanup artix7 init
Florent Kermarrec [Fri, 29 Apr 2016 13:55:10 +0000 (15:55 +0200)]
software/sdram: cleanup artix7 init

8 years agosetup.py: fix version (0.1)
Florent Kermarrec [Fri, 29 Apr 2016 12:39:14 +0000 (14:39 +0200)]
setup.py: fix version (0.1)

8 years agomove sdram code to litedram (https://github.com/enjoy-digital/litedram)
Florent Kermarrec [Fri, 29 Apr 2016 05:21:42 +0000 (07:21 +0200)]
move sdram code to litedram (https://github.com/enjoy-digital/litedram)

8 years agogen/fhdl/verilog: add do in reserved_keywords
Florent Kermarrec [Tue, 26 Apr 2016 15:13:41 +0000 (17:13 +0200)]
gen/fhdl/verilog: add do in reserved_keywords

8 years agosoc/integration/soc_sdram: always generate L2_SIZE constant
Florent Kermarrec [Wed, 27 Apr 2016 10:34:18 +0000 (12:34 +0200)]
soc/integration/soc_sdram: always generate L2_SIZE constant

8 years agosoc/software/bios/sdram: add sdrlevel_artix7 (bitslip and delays have to be found...
Florent Kermarrec [Wed, 27 Apr 2016 10:33:44 +0000 (12:33 +0200)]
soc/software/bios/sdram: add sdrlevel_artix7 (bitslip and delays have to be found manually)

8 years agoboards/platforms/arty: use 1.5V and the 16bits instead of only 8bits
Florent Kermarrec [Tue, 26 Apr 2016 21:29:35 +0000 (23:29 +0200)]
boards/platforms/arty: use 1.5V and the 16bits instead of only 8bits

8 years agosoc/interconnect/wishbone: add FlipFlop (should be removed)
Florent Kermarrec [Mon, 25 Apr 2016 17:14:20 +0000 (19:14 +0200)]
soc/interconnect/wishbone: add FlipFlop (should be removed)

8 years agoplatforms/arty: add missing address pins, was not going to work :(
Florent Kermarrec [Mon, 25 Apr 2016 14:56:23 +0000 (16:56 +0200)]
platforms/arty: add missing address pins, was not going to work :(

8 years agogen/genlib/record: fix connect
Florent Kermarrec [Thu, 21 Apr 2016 17:05:01 +0000 (19:05 +0200)]
gen/genlib/record: fix connect

8 years agogen/genlib/record: fix connect
Florent Kermarrec [Thu, 21 Apr 2016 10:16:26 +0000 (12:16 +0200)]
gen/genlib/record: fix connect

8 years agoboards/platforms/nexys_video: use TDMS_33 on hdmi
Florent Kermarrec [Thu, 21 Apr 2016 09:13:29 +0000 (11:13 +0200)]
boards/platforms/nexys_video: use TDMS_33 on hdmi

8 years agouse new Record.connect omit parameter (replace leave_out)
Florent Kermarrec [Thu, 21 Apr 2016 07:39:21 +0000 (09:39 +0200)]
use new Record.connect omit parameter (replace leave_out)

8 years agogen/genlib/record: rename leave_out by omit and add keep parameter to Record.connect
Florent Kermarrec [Thu, 21 Apr 2016 06:08:47 +0000 (08:08 +0200)]
gen/genlib/record: rename leave_out by omit and add keep parameter to Record.connect

8 years agoboards/plaforms/nexys_video: fix hdmi_out pinout
Florent Kermarrec [Tue, 19 Apr 2016 16:41:16 +0000 (18:41 +0200)]
boards/plaforms/nexys_video: fix hdmi_out pinout

8 years agosoc/software/bios: show cpu on first banner line
Florent Kermarrec [Tue, 19 Apr 2016 07:19:37 +0000 (09:19 +0200)]
soc/software/bios: show cpu on first banner line

8 years agoMerge pull request #2 from mithro/master
enjoy-digital [Tue, 19 Apr 2016 07:07:23 +0000 (09:07 +0200)]
Merge pull request #2 from mithro/master

More fixes.

8 years agosoc/integration/cpu_interface: fix clang detection
Florent Kermarrec [Tue, 19 Apr 2016 06:06:56 +0000 (08:06 +0200)]
soc/integration/cpu_interface: fix clang detection

8 years agoMake verilator build output error messages.
Tim 'mithro' Ansell [Tue, 19 Apr 2016 05:57:56 +0000 (15:57 +1000)]
Make verilator build output error messages.

8 years agobios: Print CPU architecture on boot.
Tim 'mithro' Ansell [Tue, 19 Apr 2016 05:13:42 +0000 (15:13 +1000)]
bios: Print CPU architecture on boot.

8 years agoMerge pull request #1 from mithro/master
enjoy-digital [Tue, 19 Apr 2016 05:49:24 +0000 (07:49 +0200)]
Merge pull request #1 from mithro/master

Bunch of small fixes

8 years agolibcompiler_rt: Fixing Makefile for CPU endianness.
Tim 'mithro' Ansell [Tue, 19 Apr 2016 04:55:01 +0000 (14:55 +1000)]
libcompiler_rt: Fixing Makefile for CPU endianness.

8 years agosoc/cores: fix spi
Florent Kermarrec [Tue, 19 Apr 2016 04:49:23 +0000 (06:49 +0200)]
soc/cores: fix spi

8 years agoMerge branch 'master' of https://github.com/enjoy-digital/litex
Florent Kermarrec [Tue, 19 Apr 2016 04:05:22 +0000 (06:05 +0200)]
Merge branch 'master' of https://github.com/enjoy-digital/litex

8 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.

8 years agobios: Use single characters for boot modes.
Tim 'mithro' Ansell [Thu, 14 Apr 2016 07:00:59 +0000 (17:00 +1000)]
bios: Use single characters for boot modes.

 * The function keys never really worked properly.
 * Also add commands for the ROM/Flash/etc.

8 years agosoc/cores/sdram/settings: simplify modules and fix timing margins computation
Florent Kermarrec [Mon, 18 Apr 2016 16:22:53 +0000 (18:22 +0200)]
soc/cores/sdram/settings: simplify modules and fix timing margins computation

8 years agoMerge branch 'master' of https://github.com/enjoy-digital/litex
Florent Kermarrec [Fri, 15 Apr 2016 06:09:42 +0000 (08:09 +0200)]
Merge branch 'master' of https://github.com/enjoy-digital/litex

8 years agobuild/xilinx/ise: use Tim's fix on add_period_constraint and add_false_path_constraint
Florent Kermarrec [Thu, 14 Apr 2016 19:48:52 +0000 (21:48 +0200)]
build/xilinx/ise: use Tim's fix on add_period_constraint and add_false_path_constraint

8 years agosoc/interconnect/dma_lasmi: change endpoint names
Florent Kermarrec [Wed, 13 Apr 2016 16:28:52 +0000 (18:28 +0200)]
soc/interconnect/dma_lasmi: change endpoint names

8 years agoMerge branch 'master' of https://github.com/enjoy-digital/litex
Florent Kermarrec [Tue, 12 Apr 2016 23:19:21 +0000 (01:19 +0200)]
Merge branch 'master' of https://github.com/enjoy-digital/litex

8 years agosoc/integration/soc_sdram: allow passing controller settings in register_sdram
Florent Kermarrec [Tue, 12 Apr 2016 18:16:47 +0000 (20:16 +0200)]
soc/integration/soc_sdram: allow passing controller settings in register_sdram

8 years agosoftware/include/base: fix system.h for or1k
Florent Kermarrec [Sun, 10 Apr 2016 15:21:54 +0000 (17:21 +0200)]
software/include/base: fix system.h for or1k

8 years agosoftware/common: use -std=gnu99 for GCC
Florent Kermarrec [Sun, 10 Apr 2016 15:21:17 +0000 (17:21 +0200)]
software/common: use -std=gnu99 for GCC

8 years agosoc/interconnect/stream/PipelinedActor: add latency attribute
Florent Kermarrec [Thu, 7 Apr 2016 10:10:32 +0000 (12:10 +0200)]
soc/interconnect/stream/PipelinedActor: add latency attribute

8 years agobuild/sim: adapt verilator simulation to new stream signals
Florent Kermarrec [Thu, 7 Apr 2016 06:56:53 +0000 (08:56 +0200)]
build/sim: adapt verilator simulation to new stream signals

8 years agosoc/software/libcompiler_rt: fix mulsi3 compilation
Florent Kermarrec [Thu, 7 Apr 2016 06:26:21 +0000 (08:26 +0200)]
soc/software/libcompiler_rt: fix mulsi3 compilation

8 years agosoc/software/libnet/microudp: fix debug flag
Florent Kermarrec [Sun, 3 Apr 2016 20:54:06 +0000 (22:54 +0200)]
soc/software/libnet/microudp: fix debug flag

8 years agosoc/software: fix libcompiler_rt mulsi3.c compile
Florent Kermarrec [Mon, 4 Apr 2016 06:36:23 +0000 (08:36 +0200)]
soc/software: fix libcompiler_rt mulsi3.c compile

8 years agoinitial RISC-V support (with picorv32), still some software to do (manage IRQ, L2...
Florent Kermarrec [Thu, 31 Mar 2016 22:09:17 +0000 (00:09 +0200)]
initial RISC-V support (with picorv32), still some software to do (manage IRQ, L2 cache flush)

8 years agosoc/software/bios: update default ip addresses (local: 192.168.1.50 / remote: 192...
Florent Kermarrec [Wed, 30 Mar 2016 13:26:44 +0000 (15:26 +0200)]
soc/software/bios: update default ip addresses (local: 192.168.1.50 / remote: 192.168.1.100)

8 years agosoc/interconnect/stream_sim: add more genericity to PacketStreamer/PacketLogger to...
Florent Kermarrec [Wed, 30 Mar 2016 21:39:26 +0000 (23:39 +0200)]
soc/interconnect/stream_sim: add more genericity to PacketStreamer/PacketLogger to use them for all cores

8 years agosoc/cores/sdram/phy: fix S6QuarterRateDDRPHY
Florent Kermarrec [Tue, 29 Mar 2016 12:59:30 +0000 (14:59 +0200)]
soc/cores/sdram/phy: fix S6QuarterRateDDRPHY

8 years agoREADME: update
Florent Kermarrec [Mon, 28 Mar 2016 21:05:16 +0000 (23:05 +0200)]
README: update

8 years agogen/sim: hack to update vcd output file during simulation (allow visualizing progress...
Florent Kermarrec [Fri, 25 Mar 2016 12:08:39 +0000 (13:08 +0100)]
gen/sim: hack to update vcd output file during simulation (allow visualizing progress directly and having a vcd file even when simulation fails or doesn't stop)

8 years agogen/sim, fhdl: remove port.we_granularity limitation on simulations
Florent Kermarrec [Wed, 23 Mar 2016 08:46:54 +0000 (09:46 +0100)]
gen/sim, fhdl: remove port.we_granularity limitation on simulations

We have to find a way to eliminate all replaced memory ports from specials,
here we use a workaround and remove remaining _MemPorts before simulating.

If possible, proper way would be to remove replaced ports from specials.
Another solution can to remove all ports that are no longer associated with
a Memory.

8 years agosoc/interconnect/stream_sim: use passive generators and some cleanup
Florent Kermarrec [Wed, 23 Mar 2016 00:04:33 +0000 (01:04 +0100)]
soc/interconnect/stream_sim: use passive generators and some cleanup