litex.git
9 years agotimer: add prescaler
Florent Kermarrec [Fri, 10 Apr 2015 11:58:44 +0000 (13:58 +0200)]
timer: add prescaler

9 years agoAdd example of hamming generator and checker instances
Guy Hutchison [Thu, 9 Apr 2015 00:24:09 +0000 (17:24 -0700)]
Add example of hamming generator and checker instances

--089e01294e809a874205133faa19
Content-Type: text/plain; charset=UTF-8

<div dir="ltr"><br></div>

9 years agos6ddrphy: redo phase_sel, get rid of CLOCK_DEDICATED_ROUTE
Robert Jordens [Fri, 10 Apr 2015 01:17:02 +0000 (19:17 -0600)]
s6ddrphy: redo phase_sel, get rid of CLOCK_DEDICATED_ROUTE

9 years agoliteeth: adapt to new ModuleTransformer
Sebastien Bourdeauducq [Fri, 10 Apr 2015 03:42:25 +0000 (11:42 +0800)]
liteeth: adapt to new ModuleTransformer

9 years agostrace_tailor: make more generic, cleanup
Robert Jordens [Thu, 9 Apr 2015 21:17:19 +0000 (15:17 -0600)]
strace_tailor: make more generic, cleanup

9 years agoforgot other cordic files
Sebastien Bourdeauducq [Thu, 9 Apr 2015 04:00:20 +0000 (12:00 +0800)]
forgot other cordic files

9 years agolitesata: update build core target generation
Florent Kermarrec [Wed, 8 Apr 2015 22:00:25 +0000 (00:00 +0200)]
litesata: update build core target generation

9 years agolite*: finish ModuleTransformer adaptations (need to be tested on board)
Florent Kermarrec [Wed, 8 Apr 2015 21:27:22 +0000 (23:27 +0200)]
lite*: finish ModuleTransformer adaptations (need to be tested on board)

9 years agosoc,cpuif: support user defined constants
Sebastien Bourdeauducq [Wed, 8 Apr 2015 16:34:36 +0000 (00:34 +0800)]
soc,cpuif: support user defined constants

9 years agointroduce conversion output object (prevents file IO in FHDL backends)
Sebastien Bourdeauducq [Wed, 8 Apr 2015 12:28:23 +0000 (20:28 +0800)]
introduce conversion output object (prevents file IO in FHDL backends)

9 years agomibuild/tools/write_to_file: use context manager
Sebastien Bourdeauducq [Wed, 8 Apr 2015 11:41:54 +0000 (19:41 +0800)]
mibuild/tools/write_to_file: use context manager

9 years agogenlib: remove cordic (will live in pdq2)
Sebastien Bourdeauducq [Wed, 8 Apr 2015 03:35:53 +0000 (11:35 +0800)]
genlib: remove cordic (will live in pdq2)

9 years agomake: add target in build names
Sebastien Bourdeauducq [Mon, 6 Apr 2015 15:53:04 +0000 (23:53 +0800)]
make: add target in build names

9 years agosoc: use new ModuleTransformer API
Sebastien Bourdeauducq [Mon, 6 Apr 2015 15:52:34 +0000 (23:52 +0800)]
soc: use new ModuleTransformer API

9 years agodecorators: remove deprecated semantics
Robert Jordens [Sun, 5 Apr 2015 09:49:07 +0000 (03:49 -0600)]
decorators: remove deprecated semantics

9 years agodecorators: fix stacklevel, export in std
Robert Jordens [Sun, 5 Apr 2015 09:49:06 +0000 (03:49 -0600)]
decorators: fix stacklevel, export in std

9 years agodecorators: fix ControlInserter
Robert Jordens [Sun, 5 Apr 2015 06:20:23 +0000 (00:20 -0600)]
decorators: fix ControlInserter

9 years agofhdl/visit: remove TransformModule
Sebastien Bourdeauducq [Sat, 4 Apr 2015 12:12:22 +0000 (20:12 +0800)]
fhdl/visit: remove TransformModule

9 years agolite*: adapt to new ModuleTransformer semantics
Robert Jordens [Thu, 2 Apr 2015 20:28:42 +0000 (14:28 -0600)]
lite*: adapt to new ModuleTransformer semantics

NOTE: There is loads of duplicated code between the lite*
modules that should be shared.

9 years agodecorators: fix class/instance logic
Robert Jordens [Fri, 3 Apr 2015 20:55:20 +0000 (14:55 -0600)]
decorators: fix class/instance logic

9 years agofhdl/decorators: make the transform logic more idiomatic
Robert Jordens [Thu, 2 Apr 2015 20:28:19 +0000 (14:28 -0600)]
fhdl/decorators: make the transform logic more idiomatic

* the transformers work on classes and instances.
  you can now do just do:

    @ResetInserter()
    @ClockDomainRenamer({"sys": "new"})
    class Foo(Module):
        pass

  or:

    a = ResetInserter()(FooModule())

* the old usage semantics still work
* the old DecorateModule is deprecated,
  ModuleDecorator has been refactored into ModuleTransformer
  (because it not only decorates things)

9 years agovivado: support phys_opt
Robert Jordens [Fri, 3 Apr 2015 20:55:23 +0000 (14:55 -0600)]
vivado: support phys_opt

9 years agovivado: add support for pre_synthesis_commands
Robert Jordens [Fri, 3 Apr 2015 20:55:22 +0000 (14:55 -0600)]
vivado: add support for pre_synthesis_commands

9 years agovivado: make _build_files() a method and rename
Robert Jordens [Fri, 3 Apr 2015 20:55:21 +0000 (14:55 -0600)]
vivado: make _build_files() a method and rename

9 years agomibuild: support multiple specifications of include file and sources
Sebastien Bourdeauducq [Sat, 4 Apr 2015 10:58:02 +0000 (18:58 +0800)]
mibuild: support multiple specifications of include file and sources

9 years agosoc/cpuif: fix CSR base generation for memories (name is already fullname)
Florent Kermarrec [Fri, 3 Apr 2015 11:57:37 +0000 (13:57 +0200)]
soc/cpuif: fix CSR base generation for memories (name is already fullname)

9 years agosoc: add memory.name_override to name when adding csrbankarray.srams to csr_regions
Florent Kermarrec [Fri, 3 Apr 2015 10:45:32 +0000 (12:45 +0200)]
soc: add memory.name_override to name when adding csrbankarray.srams to csr_regions

9 years agouse str.format
Sebastien Bourdeauducq [Fri, 3 Apr 2015 09:43:46 +0000 (17:43 +0800)]
use str.format

9 years agosoftware/common.mak: fix alignment in quiet output
Sebastien Bourdeauducq [Fri, 3 Apr 2015 09:43:29 +0000 (17:43 +0800)]
software/common.mak: fix alignment in quiet output

9 years agosoc/cpuif: fix get_csr_header when obj is Memory (thanks ccube)
Florent Kermarrec [Fri, 3 Apr 2015 09:14:28 +0000 (11:14 +0200)]
soc/cpuif: fix get_csr_header when obj is Memory (thanks ccube)

9 years agomake.py: use os.path.join
Sebastien Bourdeauducq [Fri, 3 Apr 2015 08:00:07 +0000 (16:00 +0800)]
make.py: use os.path.join

9 years agocrt0-or1k: clean up indentation
Sebastien Bourdeauducq [Fri, 3 Apr 2015 05:23:28 +0000 (13:23 +0800)]
crt0-or1k: clean up indentation

9 years agoMerge branch 'master' of github.com:m-labs/migen
Sebastien Bourdeauducq [Thu, 2 Apr 2015 12:23:12 +0000 (20:23 +0800)]
Merge branch 'master' of github.com:m-labs/migen

9 years agokc705: fix typo in platform file (LPC definition)
Yann Sionneau [Thu, 2 Apr 2015 11:58:20 +0000 (13:58 +0200)]
kc705: fix typo in platform file (LPC definition)

9 years agoremove use of _r prefix on CSRs
Florent Kermarrec [Thu, 2 Apr 2015 10:18:43 +0000 (12:18 +0200)]
remove use of _r prefix on CSRs

9 years agoremove use of _r prefix on CSRs
Florent Kermarrec [Thu, 2 Apr 2015 10:15:56 +0000 (12:15 +0200)]
remove use of _r prefix on CSRs

9 years agomigen/bank/description: remove support of _r prefix in CSRs
Florent Kermarrec [Thu, 2 Apr 2015 10:13:22 +0000 (12:13 +0200)]
migen/bank/description: remove support of _r prefix in CSRs

9 years agomove gpio from cpu.peripherals to com
Sebastien Bourdeauducq [Thu, 2 Apr 2015 09:17:33 +0000 (17:17 +0800)]
move gpio from cpu.peripherals to com

9 years agolibbase: implement flush_l2_cache for or1k
Sebastien Bourdeauducq [Thu, 2 Apr 2015 08:47:03 +0000 (16:47 +0800)]
libbase: implement flush_l2_cache for or1k

9 years agominor cleanups
Sebastien Bourdeauducq [Thu, 2 Apr 2015 06:40:29 +0000 (14:40 +0800)]
minor cleanups

9 years agoMerge branch 'master' of github.com:m-labs/misoc
Sebastien Bourdeauducq [Thu, 2 Apr 2015 02:14:24 +0000 (10:14 +0800)]
Merge branch 'master' of github.com:m-labs/misoc

9 years agoadapt LiteSATA to new SoC
Florent Kermarrec [Wed, 1 Apr 2015 20:52:19 +0000 (22:52 +0200)]
adapt LiteSATA to new SoC

9 years agoadapt LiteEth to new SoC
Florent Kermarrec [Wed, 1 Apr 2015 20:50:29 +0000 (22:50 +0200)]
adapt LiteEth to new SoC

9 years agoadapt LiteScope to new SoC
Florent Kermarrec [Wed, 1 Apr 2015 20:45:57 +0000 (22:45 +0200)]
adapt LiteScope to new SoC

9 years agosoc/sdram: fix do_finalize
Florent Kermarrec [Wed, 1 Apr 2015 20:38:04 +0000 (22:38 +0200)]
soc/sdram: fix do_finalize

9 years agosoc: use set
Sebastien Bourdeauducq [Wed, 1 Apr 2015 16:14:56 +0000 (00:14 +0800)]
soc: use set

9 years agosoc: simplify integrated memory parameters
Sebastien Bourdeauducq [Wed, 1 Apr 2015 16:09:38 +0000 (00:09 +0800)]
soc: simplify integrated memory parameters

9 years agosoc/sdram: minor cleanup
Sebastien Bourdeauducq [Wed, 1 Apr 2015 15:41:55 +0000 (23:41 +0800)]
soc/sdram: minor cleanup

9 years agolitesata: adapt to new SoC API
Sebastien Bourdeauducq [Wed, 1 Apr 2015 09:37:53 +0000 (17:37 +0800)]
litesata: adapt to new SoC API

9 years agosoc: remove cpu_boot_file argument
Sebastien Bourdeauducq [Wed, 1 Apr 2015 09:32:45 +0000 (17:32 +0800)]
soc: remove cpu_boot_file argument

9 years agosoc: remove cpu_or_bridge and with_cpu arguments
Sebastien Bourdeauducq [Wed, 1 Apr 2015 09:29:51 +0000 (17:29 +0800)]
soc: remove cpu_or_bridge and with_cpu arguments

9 years agosoc: retrieve csr and memory regions using methods
Sebastien Bourdeauducq [Wed, 1 Apr 2015 08:49:32 +0000 (16:49 +0800)]
soc: retrieve csr and memory regions using methods

9 years agosoc: use add_wb_master function
Sebastien Bourdeauducq [Wed, 1 Apr 2015 07:56:51 +0000 (15:56 +0800)]
soc: use add_wb_master function

9 years agosoc: simplify/fix csr busword
Sebastien Bourdeauducq [Wed, 1 Apr 2015 07:48:56 +0000 (15:48 +0800)]
soc: simplify/fix csr busword

9 years agosoc: remove unnecessary imports
Sebastien Bourdeauducq [Wed, 1 Apr 2015 07:15:09 +0000 (15:15 +0800)]
soc: remove unnecessary imports

9 years agosoc: improve memory region conflict check
Sebastien Bourdeauducq [Wed, 1 Apr 2015 07:14:02 +0000 (15:14 +0800)]
soc: improve memory region conflict check

9 years agosoc: remove ns function
Sebastien Bourdeauducq [Wed, 1 Apr 2015 06:33:12 +0000 (14:33 +0800)]
soc: remove ns function

9 years agoremove redundant xilinx_strace_tailor.sh
Florent Kermarrec [Mon, 30 Mar 2015 16:58:34 +0000 (18:58 +0200)]
remove redundant xilinx_strace_tailor.sh

9 years agomove xilinx_strace_tailor to tools
Sebastien Bourdeauducq [Mon, 30 Mar 2015 11:42:11 +0000 (19:42 +0800)]
move xilinx_strace_tailor to tools

9 years agoRevert "migen: create VerilogConvert and EDIFConvert classes and return it with conve...
Sebastien Bourdeauducq [Mon, 30 Mar 2015 11:41:16 +0000 (19:41 +0800)]
Revert "migen: create VerilogConvert and EDIFConvert classes and return it with convert functions"

This reverts commit f03aa7629256c6ff6ae3129e3c353a8cb141444d.

9 years agoRevert "migen/fhdl: pass fdict filename --> contents to specials"
Sebastien Bourdeauducq [Mon, 30 Mar 2015 11:41:13 +0000 (19:41 +0800)]
Revert "migen/fhdl: pass fdict filename --> contents to specials"

This reverts commit ea04947519224628948b10c9b9e42cd0ed2252d6.

9 years agoRevert "migen/fhdl/specials: use fdict to pass memory initialization files to Verilog...
Sebastien Bourdeauducq [Mon, 30 Mar 2015 11:41:04 +0000 (19:41 +0800)]
Revert "migen/fhdl/specials: use fdict to pass memory initialization files to VerilogConvert and print them in __str__ method"

This reverts commit 95cfc444e60ea18fa0efef229582923b2e695631.

9 years agomibuild/platforms: fix minispartan6
Florent Kermarrec [Mon, 30 Mar 2015 09:42:14 +0000 (11:42 +0200)]
mibuild/platforms: fix minispartan6

9 years agomigen/fhdl/specials: use fdict to pass memory initialization files to VerilogConvert...
Florent Kermarrec [Mon, 30 Mar 2015 09:26:10 +0000 (11:26 +0200)]
migen/fhdl/specials: use fdict to pass memory initialization files to VerilogConvert and print them in __str__ method

9 years agomigen/fhdl: pass fdict filename --> contents to specials
Florent Kermarrec [Mon, 30 Mar 2015 09:09:29 +0000 (11:09 +0200)]
migen/fhdl: pass fdict filename --> contents to specials

9 years agomigen: create VerilogConvert and EDIFConvert classes and return it with convert functions
Florent Kermarrec [Mon, 30 Mar 2015 08:42:42 +0000 (10:42 +0200)]
migen: create VerilogConvert and EDIFConvert classes and return it with convert functions

9 years agoMerge branch 'master' of github.com:m-labs/migen
Sebastien Bourdeauducq [Sun, 29 Mar 2015 16:52:15 +0000 (00:52 +0800)]
Merge branch 'master' of github.com:m-labs/migen

9 years agoplatforms/lx9_microboard,usrp_b100: fix bitgen opts
Sebastien Bourdeauducq [Sun, 29 Mar 2015 16:44:56 +0000 (00:44 +0800)]
platforms/lx9_microboard,usrp_b100: fix bitgen opts

9 years agoplatforms/kc705: fix .bin generation with ISE and Vivado
Florent Kermarrec [Sun, 29 Mar 2015 10:16:33 +0000 (12:16 +0200)]
platforms/kc705: fix .bin generation with ISE and Vivado

9 years agosdram: remove redundant with_l2 parameter (equivalent to l2_size != 0)
Florent Kermarrec [Sun, 29 Mar 2015 10:34:40 +0000 (12:34 +0200)]
sdram: remove redundant with_l2 parameter (equivalent to l2_size != 0)

9 years agoplatforms/kc705: add iMPACT programmer
Florent Kermarrec [Sun, 29 Mar 2015 10:15:39 +0000 (12:15 +0200)]
platforms/kc705: add iMPACT programmer

9 years agosoc: limit main_ram_size to 256MB (we should modify mem_map to allow larger memories...
Florent Kermarrec [Sat, 28 Mar 2015 22:18:08 +0000 (23:18 +0100)]
soc: limit main_ram_size to 256MB (we should modify mem_map to allow larger memories, this was the probably ARTIQ runtime issue....!!)

9 years agosoc: simplify main_ram_size computation and share it between LASMIcon and Minicon
Florent Kermarrec [Sat, 28 Mar 2015 22:10:33 +0000 (23:10 +0100)]
soc: simplify main_ram_size computation and share it between LASMIcon and Minicon

9 years agosdram/module: fix MT8JTF12864, rowbits is 14 and not 16.... (16 was used from the...
Florent Kermarrec [Sat, 28 Mar 2015 15:35:15 +0000 (16:35 +0100)]
sdram/module: fix MT8JTF12864, rowbits is 14 and not 16.... (16 was used from the beginning, but it does not fix the runtime issue)

9 years agosdram/phy/simphy: OK with DDR3
Florent Kermarrec [Sat, 28 Mar 2015 00:59:55 +0000 (01:59 +0100)]
sdram/phy/simphy: OK with DDR3

9 years agosdram/phy/simphy: expose settings to user and test with DDR/LPDDR/DDR2
Florent Kermarrec [Sat, 28 Mar 2015 00:18:35 +0000 (01:18 +0100)]
sdram/phy/simphy: expose settings to user and test with DDR/LPDDR/DDR2

9 years agosdram/core/lasmicon: add enabled parameter to refresher (for some simulations we...
Florent Kermarrec [Sat, 28 Mar 2015 00:17:50 +0000 (01:17 +0100)]
sdram/core/lasmicon: add enabled parameter to refresher (for some simulations we need to disable it)

9 years agosdram/module: clean up tREFI. (use 64ms/8k or 4k)
Florent Kermarrec [Sat, 28 Mar 2015 00:09:21 +0000 (01:09 +0100)]
sdram/module: clean up tREFI. (use 64ms/8k or 4k)

9 years agoMerge branch 'master' of https://github.com/m-labs/misoc
Sebastien Bourdeauducq [Fri, 27 Mar 2015 18:22:29 +0000 (19:22 +0100)]
Merge branch 'master' of https://github.com/m-labs/misoc

9 years agoMerge branch 'master' of https://github.com/m-labs/migen
Sebastien Bourdeauducq [Fri, 27 Mar 2015 18:22:03 +0000 (19:22 +0100)]
Merge branch 'master' of https://github.com/m-labs/migen

9 years agoadd tool to build minimal xilinx toolchains
Robert Jordens [Fri, 27 Mar 2015 18:21:16 +0000 (19:21 +0100)]
add tool to build minimal xilinx toolchains

9 years agopipistrello: add por reset counter
Robert Jordens [Thu, 26 Mar 2015 20:12:35 +0000 (14:12 -0600)]
pipistrello: add por reset counter

* this is a temporary fix that should be removed once the
combination of bitstream-in-flash, mor1kx, bios-in-flash works

9 years agosoftware/bios/sdram: small clean up
Florent Kermarrec [Fri, 27 Mar 2015 17:24:19 +0000 (18:24 +0100)]
software/bios/sdram: small clean up

9 years agosoftware/bios/sdram: for now desactivate random on address test since it seems to...
Florent Kermarrec [Fri, 27 Mar 2015 15:43:22 +0000 (16:43 +0100)]
software/bios/sdram: for now desactivate random on address test since it seems to trigger a L2 cache or LASMIcon bug on at least de0nano/minispartan6

Memtest sometimes reports 1 or 2 errors with de0nano/minispartan6 on this new test when used with LASMICON. Minicon seems fine. We will have to investigate on this issue.

9 years agosoftware/bios/sdram: add random addressing to memtest
Florent Kermarrec [Fri, 27 Mar 2015 14:49:16 +0000 (15:49 +0100)]
software/bios/sdram: add random addressing to memtest

testing memories with linear access is not good enough. Adding random addressing allow us to detect more eventual issues on our L2 cache or SDRAM controller.

9 years agomibuild/sim: use the same architecture we use for others backends
Florent Kermarrec [Fri, 27 Mar 2015 13:14:49 +0000 (14:14 +0100)]
mibuild/sim: use the same architecture we use for others backends

9 years agotargets: revert use of integers in clocks/timings
Florent Kermarrec [Thu, 26 Mar 2015 22:45:35 +0000 (23:45 +0100)]
targets: revert use of integers in clocks/timings

9 years agosdram: remove nbits from modules and databits from GeomSettings
Florent Kermarrec [Thu, 26 Mar 2015 22:27:37 +0000 (23:27 +0100)]
sdram: remove nbits from modules and databits from GeomSettings

9 years agosoftware/bios/sdram: make seed_to_data static
Florent Kermarrec [Thu, 26 Mar 2015 22:05:20 +0000 (23:05 +0100)]
software/bios/sdram: make seed_to_data static

9 years agosdram/phy/simphy: remove use of iter
Florent Kermarrec [Thu, 26 Mar 2015 22:02:23 +0000 (23:02 +0100)]
sdram/phy/simphy: remove use of iter

9 years agosdram/phy: add simphy (software memtest OK in simulation with MT48LC4M16)
Florent Kermarrec [Thu, 26 Mar 2015 21:24:47 +0000 (22:24 +0100)]
sdram/phy: add simphy (software memtest OK in simulation with MT48LC4M16)

9 years agosoftware/bios/sdram: select the type of data we want to generate for memtest with...
Florent Kermarrec [Thu, 26 Mar 2015 21:16:31 +0000 (22:16 +0100)]
software/bios/sdram: select the type of data we want to generate for memtest with TEST_RANDOM_DATA (debugging hardware is easier with a simple counter)

9 years agosoftware/memtest: remove Mixxeo/M1 hardcoded values in bandwidth computation
Florent Kermarrec [Wed, 25 Mar 2015 22:59:29 +0000 (23:59 +0100)]
software/memtest: remove Mixxeo/M1 hardcoded values in bandwidth computation

9 years agosofware/memtest: use MAIN_RAM_SIZE from mem.h
Florent Kermarrec [Wed, 25 Mar 2015 18:00:07 +0000 (19:00 +0100)]
sofware/memtest: use MAIN_RAM_SIZE from mem.h

9 years agotools/flterm.py: small clean up
Florent Kermarrec [Wed, 25 Mar 2015 17:44:08 +0000 (18:44 +0100)]
tools/flterm.py: small clean up

9 years agolibcompiler-rt: add ucmpdi2.o
Florent Kermarrec [Wed, 25 Mar 2015 16:57:42 +0000 (17:57 +0100)]
libcompiler-rt: add ucmpdi2.o

9 years agosofware/memtest: update bandwidth registers
Florent Kermarrec [Wed, 25 Mar 2015 16:25:20 +0000 (17:25 +0100)]
sofware/memtest: update bandwidth registers

9 years agosdram/core/lasmicon: automatically insert bandwidth module when with_memtest is True
Florent Kermarrec [Wed, 25 Mar 2015 16:22:26 +0000 (17:22 +0100)]
sdram/core/lasmicon: automatically insert bandwidth module when with_memtest is True

9 years agosdram: pass module as phy parameter, define memtype in modules and only keep phy...
Florent Kermarrec [Tue, 24 Mar 2015 17:26:18 +0000 (18:26 +0100)]
sdram: pass module as phy parameter, define memtype in modules and only keep phy parameter in register_sdram_phy

9 years agosdram: use names that are more explicit for bank_a, row_a,...: bankbits, rowbits...
Florent Kermarrec [Tue, 24 Mar 2015 16:25:59 +0000 (17:25 +0100)]
sdram: use names that are more explicit for bank_a, row_a,...: bankbits, rowbits, .... Add databits to GeomSettings.