litex.git
10 years agouse new direct access on endpoints
Florent Kermarrec [Mon, 20 Oct 2014 15:13:33 +0000 (23:13 +0800)]
use new direct access on endpoints

10 years agoremove trailing whitespaces
Florent Kermarrec [Fri, 17 Oct 2014 09:14:35 +0000 (17:14 +0800)]
remove trailing whitespaces

10 years agomor1kx: sync
Sebastien Bourdeauducq [Fri, 10 Oct 2014 07:38:05 +0000 (15:38 +0800)]
mor1kx: sync

10 years agouart: minor cleanup and fix
Sebastien Bourdeauducq [Fri, 10 Oct 2014 07:33:27 +0000 (15:33 +0800)]
uart: minor cleanup and fix

10 years agouart: split it and use dataflow
Florent Kermarrec [Wed, 24 Sep 2014 19:30:25 +0000 (21:30 +0200)]
uart: split it and use dataflow

This make the code easier to understand and allow the reuse of UARTRX & UARTTX
on designs without CPU (e.g miscope).

10 years agoupdate README with new Kintex-7 support
Florent Kermarrec [Sat, 20 Sep 2014 19:51:37 +0000 (21:51 +0200)]
update README with new Kintex-7 support

10 years agotargets: add simple design (vendor agnostic and usable on all platforms with UART...
Florent Kermarrec [Sat, 20 Sep 2014 20:48:53 +0000 (22:48 +0200)]
targets: add simple design (vendor agnostic and usable on all platforms with UART pins).

Designing a SoC with Migen is easy, but we have to provide a very simple design that can
be used on all boards with only 1 clock and 2 UARTs pins defined. This will encourage the
newcomer to invest time in Migen/MiSoC and see its real potential.

10 years agosoftware: remove setjmp
Sebastien Bourdeauducq [Tue, 23 Sep 2014 13:57:05 +0000 (21:57 +0800)]
software: remove setjmp

10 years agolibbase: use __builtin_setjmp and __builtin_longjmp
Sebastien Bourdeauducq [Sun, 21 Sep 2014 09:43:17 +0000 (17:43 +0800)]
libbase: use __builtin_setjmp and __builtin_longjmp

10 years agomor1kx: sync
Sebastien Bourdeauducq [Fri, 12 Sep 2014 08:00:32 +0000 (16:00 +0800)]
mor1kx: sync

10 years agospi_flash: simplify usage by removing cmd, cmd_width, addr_width parameters
Florent Kermarrec [Wed, 3 Sep 2014 16:37:04 +0000 (18:37 +0200)]
spi_flash: simplify usage by removing cmd, cmd_width, addr_width parameters

10 years agosdram: merge DFII_PIX_RDDATA_SIZE and DFII_PIX_WRDATA_SIZE
Sebastien Bourdeauducq [Wed, 3 Sep 2014 07:02:38 +0000 (15:02 +0800)]
sdram: merge DFII_PIX_RDDATA_SIZE and DFII_PIX_WRDATA_SIZE

10 years agobios: support DDR3 write leveling and read calibration. This makes the full DDR3...
Sebastien Bourdeauducq [Wed, 3 Sep 2014 06:25:26 +0000 (14:25 +0800)]
bios: support DDR3 write leveling and read calibration. This makes the full DDR3 SODIMM work on the KC705.

10 years agosdramphy/initsequence: cleanup and expose DDR3 MR1 value
Sebastien Bourdeauducq [Wed, 3 Sep 2014 06:21:30 +0000 (14:21 +0800)]
sdramphy/initsequence: cleanup and expose DDR3 MR1 value

10 years agosdramphy/initsequence: clean up mr1/mr2 computation on DDR3 and enable Dynamic ODT
Florent Kermarrec [Mon, 1 Sep 2014 21:11:15 +0000 (23:11 +0200)]
sdramphy/initsequence: clean up mr1/mr2 computation on DDR3 and enable Dynamic ODT

10 years agok7ddrphy: add bitslip control for incoming DQ
Sebastien Bourdeauducq [Mon, 1 Sep 2014 11:54:39 +0000 (19:54 +0800)]
k7ddrphy: add bitslip control for incoming DQ

10 years agotargets/kc705: add ddrphy to CSR map
Sebastien Bourdeauducq [Mon, 1 Sep 2014 08:40:10 +0000 (16:40 +0800)]
targets/kc705: add ddrphy to CSR map

10 years agobios: add sdrrderr
Sebastien Bourdeauducq [Mon, 1 Sep 2014 07:23:37 +0000 (15:23 +0800)]
bios: add sdrrderr

10 years agobios: add DQ filtering to sdrrd, add sdrrdbuf command
Sebastien Bourdeauducq [Mon, 1 Sep 2014 06:58:58 +0000 (14:58 +0800)]
bios: add DQ filtering to sdrrd, add sdrrdbuf command

10 years agok7ddrphy: write leveling and read calibration support
Sebastien Bourdeauducq [Sun, 31 Aug 2014 13:54:28 +0000 (21:54 +0800)]
k7ddrphy: write leveling and read calibration support

10 years agok7ddrphy: do not register T at SERDES (fixes timing problem)
Sebastien Bourdeauducq [Sun, 31 Aug 2014 13:53:35 +0000 (21:53 +0800)]
k7ddrphy: do not register T at SERDES (fixes timing problem)

10 years agolibcompiler-rt: add moddi3
Sebastien Bourdeauducq [Thu, 28 Aug 2014 08:54:12 +0000 (16:54 +0800)]
libcompiler-rt: add moddi3

10 years agok7ddrphy: update comment
Sebastien Bourdeauducq [Fri, 22 Aug 2014 11:02:57 +0000 (19:02 +0800)]
k7ddrphy: update comment

10 years agok7ddrphy: decrease CAS latency to account for cmd/data flight time
Sebastien Bourdeauducq [Fri, 22 Aug 2014 10:46:01 +0000 (18:46 +0800)]
k7ddrphy: decrease CAS latency to account for cmd/data flight time

10 years agok7ddrphy: suppress idiotic bitgen warning about ISERDES IOBDELAY parameter
Sebastien Bourdeauducq [Fri, 22 Aug 2014 10:45:25 +0000 (18:45 +0800)]
k7ddrphy: suppress idiotic bitgen warning about ISERDES IOBDELAY parameter

10 years agotargets/kc705: BIOS XIP
Sebastien Bourdeauducq [Fri, 22 Aug 2014 09:13:10 +0000 (17:13 +0800)]
targets/kc705: BIOS XIP

10 years agotargets/ppro: reduce SPI flash clock frequency
Sebastien Bourdeauducq [Fri, 22 Aug 2014 07:24:14 +0000 (15:24 +0800)]
targets/ppro: reduce SPI flash clock frequency

10 years agotargets/ppro: fix BIOS address
Sebastien Bourdeauducq [Fri, 22 Aug 2014 07:24:00 +0000 (15:24 +0800)]
targets/ppro: fix BIOS address

10 years agomake.py: add set_flash_proxy_dir to flash-bios
Florent Kermarrec [Thu, 21 Aug 2014 11:32:32 +0000 (13:32 +0200)]
make.py: add set_flash_proxy_dir to flash-bios

10 years agotargets/ppro: clean up indentation
Sebastien Bourdeauducq [Fri, 22 Aug 2014 06:41:28 +0000 (14:41 +0800)]
targets/ppro: clean up indentation

10 years agok7ddrphy: fix read_latency (CL is 2 sys_clk since we use quarter rate)
Florent Kermarrec [Thu, 14 Aug 2014 14:33:59 +0000 (16:33 +0200)]
k7ddrphy: fix read_latency (CL is 2 sys_clk since we use quarter rate)

10 years agok7ddrphy: set bitslip to 0 on ISERDESE2 (needed at least for sim)
Florent Kermarrec [Thu, 14 Aug 2014 14:32:29 +0000 (16:32 +0200)]
k7ddrphy: set bitslip to 0 on ISERDESE2 (needed at least for sim)

10 years agok7ddrphy: add ODELAYE2 on dm path to match dq path (ODELAYE2 even configure with...
Florent Kermarrec [Thu, 14 Aug 2014 13:58:58 +0000 (15:58 +0200)]
k7ddrphy: add ODELAYE2 on dm path to match dq path (ODELAYE2 even configure with a delay of 0 generates a delay)

10 years agok7ddrphy: fix write_latency and take care of OSERDESE2 latency on oe
Florent Kermarrec [Thu, 14 Aug 2014 13:57:25 +0000 (15:57 +0200)]
k7ddrphy: fix write_latency and take care of OSERDESE2 latency on oe

10 years agosdramphy/initsequence: fix and add format_mr0 function
Florent Kermarrec [Wed, 13 Aug 2014 14:44:20 +0000 (16:44 +0200)]
sdramphy/initsequence: fix and add format_mr0 function

10 years agok7ddrphy: add SERDES reset
Florent Kermarrec [Thu, 14 Aug 2014 06:16:38 +0000 (14:16 +0800)]
k7ddrphy: add SERDES reset

10 years agolasmicon: fix reset_n level
Florent Kermarrec [Thu, 14 Aug 2014 06:15:38 +0000 (14:15 +0800)]
lasmicon: fix reset_n level

10 years agoflash_extra: use new programmer
Sebastien Bourdeauducq [Sat, 9 Aug 2014 06:39:38 +0000 (14:39 +0800)]
flash_extra: use new programmer

10 years agomake.py: do not use prog.needs_flash_proxy
Sebastien Bourdeauducq [Sat, 9 Aug 2014 06:38:56 +0000 (14:38 +0800)]
make.py: do not use prog.needs_flash_proxy

10 years agomor1kx: sync
Sebastien Bourdeauducq [Sat, 9 Aug 2014 06:32:57 +0000 (14:32 +0800)]
mor1kx: sync

10 years agok7ddrphy: send rddata_valid on all phases
Sebastien Bourdeauducq [Sat, 9 Aug 2014 03:00:13 +0000 (11:00 +0800)]
k7ddrphy: send rddata_valid on all phases

10 years agotargets/kc705: integrate DDR3
Sebastien Bourdeauducq [Fri, 8 Aug 2014 13:58:41 +0000 (21:58 +0800)]
targets/kc705: integrate DDR3

10 years agobios/sdram: cleanup
Sebastien Bourdeauducq [Fri, 8 Aug 2014 13:57:58 +0000 (21:57 +0800)]
bios/sdram: cleanup

10 years agobios/sdram: set ODT and RESET_N through DFII
Sebastien Bourdeauducq [Fri, 8 Aug 2014 13:57:42 +0000 (21:57 +0800)]
bios/sdram: set ODT and RESET_N through DFII

10 years agodfii: drive ODT and RESET_N
Sebastien Bourdeauducq [Fri, 8 Aug 2014 13:56:35 +0000 (21:56 +0800)]
dfii: drive ODT and RESET_N

10 years agolasmicon: drive ODT and RESET_N
Sebastien Bourdeauducq [Fri, 8 Aug 2014 13:55:34 +0000 (21:55 +0800)]
lasmicon: drive ODT and RESET_N

10 years agolasmicon: add CWL to PHY settings
Sebastien Bourdeauducq [Fri, 8 Aug 2014 13:55:12 +0000 (21:55 +0800)]
lasmicon: add CWL to PHY settings

10 years agosdramphy/gensdrphy: fix rddata_en generation
Sebastien Bourdeauducq [Fri, 8 Aug 2014 13:41:07 +0000 (21:41 +0800)]
sdramphy/gensdrphy: fix rddata_en generation

10 years agosdramphy: initial K7 DDR3 support
Sebastien Bourdeauducq [Fri, 8 Aug 2014 13:28:26 +0000 (21:28 +0800)]
sdramphy: initial K7 DDR3 support

10 years agosdramphy/bios: make sdrrd/sdrwr generic
Florent Kermarrec [Fri, 8 Aug 2014 11:23:57 +0000 (19:23 +0800)]
sdramphy/bios: make sdrrd/sdrwr generic

10 years agosdramphy/initsequence: rewrite DDR3 initialization sequence
Sebastien Bourdeauducq [Fri, 8 Aug 2014 11:15:05 +0000 (19:15 +0800)]
sdramphy/initsequence: rewrite DDR3 initialization sequence

10 years agos6ddrphy: fix DFI interface data width computation
Sebastien Bourdeauducq [Fri, 8 Aug 2014 11:14:15 +0000 (19:14 +0800)]
s6ddrphy: fix DFI interface data width computation

10 years agogensoc: add id for KC705
Sebastien Bourdeauducq [Wed, 6 Aug 2014 15:53:51 +0000 (23:53 +0800)]
gensoc: add id for KC705

10 years agoplatforms/kc705: generate clocks for SDRAM
Sebastien Bourdeauducq [Wed, 6 Aug 2014 15:53:26 +0000 (23:53 +0800)]
platforms/kc705: generate clocks for SDRAM

10 years agotargets/ppro: use migen reset synchronizer
Sebastien Bourdeauducq [Wed, 6 Aug 2014 11:38:11 +0000 (19:38 +0800)]
targets/ppro: use migen reset synchronizer

10 years agogensoc/cpuif: do not generate access functions for registers > 64 bits
Florent Kermarrec [Sat, 2 Aug 2014 14:42:26 +0000 (16:42 +0200)]
gensoc/cpuif: do not generate access functions for registers > 64 bits

10 years agotargets/kc705: use PLL for clocking
Sebastien Bourdeauducq [Sun, 3 Aug 2014 13:42:39 +0000 (21:42 +0800)]
targets/kc705: use PLL for clocking

10 years agomor1kx: sync
Sebastien Bourdeauducq [Sun, 3 Aug 2014 07:57:55 +0000 (15:57 +0800)]
mor1kx: sync

10 years agoREADME: update
Sebastien Bourdeauducq [Sun, 3 Aug 2014 07:48:55 +0000 (15:48 +0800)]
README: update

10 years agotargets: add basic KC705
Sebastien Bourdeauducq [Sun, 3 Aug 2014 07:48:30 +0000 (15:48 +0800)]
targets: add basic KC705

10 years agoKeep only basic SoC designs in MiSoC
Sebastien Bourdeauducq [Sun, 3 Aug 2014 04:30:15 +0000 (12:30 +0800)]
Keep only basic SoC designs in MiSoC

10 years agoremove stale programmer.py
Sebastien Bourdeauducq [Fri, 1 Aug 2014 04:34:38 +0000 (12:34 +0800)]
remove stale programmer.py

10 years agomove programmer to mibuild
Florent Kermarrec [Thu, 31 Jul 2014 16:17:32 +0000 (18:17 +0200)]
move programmer to mibuild

10 years agosdramphy: add init sequence for DDR3
Florent Kermarrec [Wed, 30 Jul 2014 10:20:40 +0000 (12:20 +0200)]
sdramphy: add init sequence for DDR3

10 years agoBetter UART baudrate generator, and testbench
Yann Sionneau [Thu, 31 Jul 2014 02:23:59 +0000 (10:23 +0800)]
Better UART baudrate generator, and testbench

This enables high speed (tested to 4Mbps) operation.

10 years agomor1kx: sync
Sebastien Bourdeauducq [Tue, 29 Jul 2014 03:36:00 +0000 (21:36 -0600)]
mor1kx: sync

10 years agostyle
Sebastien Bourdeauducq [Sat, 5 Jul 2014 16:56:20 +0000 (18:56 +0200)]
style

10 years agocrt-or1k: trim useless exception vectors
Sebastien Bourdeauducq [Sat, 5 Jul 2014 16:53:23 +0000 (18:53 +0200)]
crt-or1k: trim useless exception vectors

10 years agoMerge branch 'master' of github.com:m-labs/misoc
Sebastien Bourdeauducq [Fri, 4 Jul 2014 08:29:53 +0000 (10:29 +0200)]
Merge branch 'master' of github.com:m-labs/misoc

10 years agoUpgrade mor1kx. This fixes the UART bug that was due to IRQ 0 and 1 being non-maskable.
Sebastien Bourdeauducq [Fri, 4 Jul 2014 08:29:42 +0000 (10:29 +0200)]
Upgrade mor1kx. This fixes the UART bug that was due to IRQ 0 and 1 being non-maskable.

10 years agocpuif: remove limitations on csr data_width
Florent Kermarrec [Thu, 26 Jun 2014 08:44:26 +0000 (10:44 +0200)]
cpuif: remove limitations on csr data_width

10 years agomake.py: add platform-option
Sebastien Bourdeauducq [Sat, 7 Jun 2014 11:43:23 +0000 (13:43 +0200)]
make.py: add platform-option

10 years agolibbase: remove crt during make clean
Sebastien Bourdeauducq [Sun, 1 Jun 2014 21:17:43 +0000 (23:17 +0200)]
libbase: remove crt during make clean

10 years agotargets/simple: pass kwargs
Sebastien Bourdeauducq [Sat, 24 May 2014 09:29:03 +0000 (11:29 +0200)]
targets/simple: pass kwargs

10 years agocrt0: remove macadress for or1k as well
Sebastien Bourdeauducq [Sat, 24 May 2014 08:43:50 +0000 (10:43 +0200)]
crt0: remove macadress for or1k as well

10 years agobios/crt0.S: remove unused macaddr, add syscall handler stub
Robert Jordens [Fri, 23 May 2014 23:37:05 +0000 (17:37 -0600)]
bios/crt0.S: remove unused macaddr, add syscall handler stub

10 years agospiflash: redundant slice
Robert Jordens [Fri, 23 May 2014 23:37:08 +0000 (17:37 -0600)]
spiflash: redundant slice

10 years agoprogrammer: make xc3sprog verbose
Robert Jordens [Fri, 23 May 2014 23:37:07 +0000 (17:37 -0600)]
programmer: make xc3sprog verbose

10 years agocrt: add umoddi3
Robert Jordens [Fri, 23 May 2014 23:37:06 +0000 (17:37 -0600)]
crt: add umoddi3

10 years agobios: remove references to 'DDR' SDRAM, as we also support SDR SDRAM
Sebastien Bourdeauducq [Fri, 23 May 2014 19:31:26 +0000 (21:31 +0200)]
bios: remove references to 'DDR' SDRAM, as we also support SDR SDRAM

10 years agoUse SDRAM on the Papilio Pro
Sebastien Bourdeauducq [Fri, 23 May 2014 19:26:09 +0000 (21:26 +0200)]
Use SDRAM on the Papilio Pro

Based on code by Robert Jordens

10 years agomake.py: init bios memory in build-bitstream action otherwise it is not possible...
Florent Kermarrec [Mon, 19 May 2014 17:49:32 +0000 (19:49 +0200)]
make.py: init bios memory in build-bitstream action otherwise it is not possible to run clean or build-csr-csv or build-headers without build-bios

10 years agogensdrphy: fix dm generation
Florent Kermarrec [Mon, 19 May 2014 15:45:13 +0000 (17:45 +0200)]
gensdrphy: fix dm generation

10 years agogensdrphy: fix memtype and change phase shift in comments.
Florent Kermarrec [Fri, 16 May 2014 09:46:33 +0000 (11:46 +0200)]
gensdrphy: fix memtype and change phase shift in comments.

10 years agosdramphy: remove fixed parameters
Sebastien Bourdeauducq [Wed, 14 May 2014 14:08:40 +0000 (16:08 +0200)]
sdramphy: remove fixed parameters

10 years agobios: fill delay slot in boot_helper
Sebastien Bourdeauducq [Wed, 14 May 2014 14:08:25 +0000 (16:08 +0200)]
bios: fill delay slot in boot_helper

10 years agotargets/mlabs_video: pass with_memtest as kwargs
Sebastien Bourdeauducq [Wed, 14 May 2014 13:02:07 +0000 (15:02 +0200)]
targets/mlabs_video: pass with_memtest as kwargs

10 years agosoftware: factorize exception_handler
Sebastien Bourdeauducq [Wed, 14 May 2014 13:01:38 +0000 (15:01 +0200)]
software: factorize exception_handler

10 years agobios: fix boot for or1k
Sebastien Bourdeauducq [Wed, 14 May 2014 13:01:02 +0000 (15:01 +0200)]
bios: fix boot for or1k

10 years agoInitial mor1kx (OpenRISC) support
Sebastien Bourdeauducq [Wed, 14 May 2014 08:24:56 +0000 (10:24 +0200)]
Initial mor1kx (OpenRISC) support
Based on milkymist-ng-mor1kx by Stefan Kristiansson

10 years agofix minimac bases addresses
Florent Kermarrec [Mon, 12 May 2014 17:28:27 +0000 (19:28 +0200)]
fix minimac bases addresses

10 years agogensdrphy: clean up and implement data mask
Florent Kermarrec [Wed, 30 Apr 2014 22:29:18 +0000 (00:29 +0200)]
gensdrphy: clean up and implement data mask

10 years agomake.py: add missing --csr_csv argument
Florent Kermarrec [Thu, 24 Apr 2014 20:08:33 +0000 (22:08 +0200)]
make.py: add missing --csr_csv argument

10 years agogensdrphy: use 'dm' not 'dqm' (follow s6ddrphy and majority of platforms)
Robert Jordens [Fri, 25 Apr 2014 00:29:36 +0000 (18:29 -0600)]
gensdrphy: use 'dm' not 'dqm' (follow s6ddrphy and majority of platforms)

10 years agoRefactor CRC tools
Sebastien Bourdeauducq [Fri, 18 Apr 2014 22:01:29 +0000 (00:01 +0200)]
Refactor CRC tools

10 years agotools: replace mkmscimg with mkmscimg.py (mkmscimg.c was platform dependent)
Florent Kermarrec [Fri, 18 Apr 2014 11:56:18 +0000 (13:56 +0200)]
tools: replace mkmscimg with mkmscimg.py (mkmscimg.c was platform dependent)

10 years agodefine platform.soc_ext_path when --external argument is used (to use it to include...
Florent Kermarrec [Fri, 18 Apr 2014 11:51:56 +0000 (13:51 +0200)]
define platform.soc_ext_path when --external argument is used (to use it to include verilog files in the external target)

10 years agosimple: create PowerOnRst and use it (remove vendor-dependent code)
Florent Kermarrec [Mon, 14 Apr 2014 15:44:12 +0000 (17:44 +0200)]
simple: create PowerOnRst and use it (remove vendor-dependent code)

10 years agosdramphy: move and clean up s6ddrphy, add generic SDRAM PHY
Florent Kermarrec [Thu, 17 Apr 2014 17:38:13 +0000 (19:38 +0200)]
sdramphy: move and clean up s6ddrphy, add generic SDRAM PHY

10 years agoprogrammer: add USBBlaster and use platform.bitstream_ext in make
Florent Kermarrec [Mon, 14 Apr 2014 15:23:04 +0000 (17:23 +0200)]
programmer: add USBBlaster and use platform.bitstream_ext in make