litex.git
9 years agobuild: add missing import for Lattice Diamond
Sebastien Bourdeauducq [Tue, 29 Sep 2015 07:44:57 +0000 (15:44 +0800)]
build: add missing import for Lattice Diamond

9 years agofhdl/FullMemoryWE: fix clocking
Sebastien Bourdeauducq [Tue, 29 Sep 2015 05:12:27 +0000 (13:12 +0800)]
fhdl/FullMemoryWE: fix clocking

9 years agofhdl: typecheck ClockSignal and ResetSignal arguments
Sebastien Bourdeauducq [Tue, 29 Sep 2015 05:11:40 +0000 (13:11 +0800)]
fhdl: typecheck ClockSignal and ResetSignal arguments

9 years agosoc_core: simplify settings (assume CPU and CSR present)
Sebastien Bourdeauducq [Tue, 29 Sep 2015 02:19:42 +0000 (10:19 +0800)]
soc_core: simplify settings (assume CPU and CSR present)

9 years agominor fixes
Sebastien Bourdeauducq [Tue, 29 Sep 2015 02:19:00 +0000 (10:19 +0800)]
minor fixes

9 years agoMerge branch 'master' of github.com:m-labs/misoc
Sebastien Bourdeauducq [Mon, 28 Sep 2015 12:40:37 +0000 (20:40 +0800)]
Merge branch 'master' of github.com:m-labs/misoc

9 years agoRevert "Sort constants in csr generation."
Sebastien Bourdeauducq [Mon, 28 Sep 2015 12:40:31 +0000 (20:40 +0800)]
Revert "Sort constants in csr generation."

This reverts commit d628c147ecb92c871cc68e2f29511c600861fcb9.

9 years agobuild: cleanup
Sebastien Bourdeauducq [Mon, 28 Sep 2015 12:34:35 +0000 (20:34 +0800)]
build: cleanup

9 years agobasic out-of-tree build support (OK on PPro)
Sebastien Bourdeauducq [Mon, 28 Sep 2015 12:33:37 +0000 (20:33 +0800)]
basic out-of-tree build support (OK on PPro)

9 years agoFix typo.
whitequark [Mon, 28 Sep 2015 09:37:55 +0000 (12:37 +0300)]
Fix typo.

9 years agomove software into misoc
Sebastien Bourdeauducq [Mon, 28 Sep 2015 05:02:13 +0000 (13:02 +0800)]
move software into misoc

9 years agoSort constants in csr generation.
Tim 'mithro' Ansell [Sat, 26 Sep 2015 07:57:43 +0000 (17:57 +1000)]
Sort constants in csr generation.

Previously the order of constant output depended on Python's hashing order
which changes every run. This caused the file to change every run.

With this change the csr.h file will always be the same. This can be verified
this with the following;
```bash
 CSR=software/include/generated/csr.h
 for i in 1 2 3 4 5 6; do
   rm -f $CSR; python make.py build-headers
   cp $CSR $CSR.$i
 done
 md5sum $CSR.*
```

9 years agoSort constants in csr generation.
Tim 'mithro' Ansell [Sat, 26 Sep 2015 07:57:43 +0000 (17:57 +1000)]
Sort constants in csr generation.

Previously the order of constant output depended on Python's hashing order
which changes every run. This caused the file to change every run.

With this change the csr.h file will always be the same. This can be verified
this with the following;
```bash
 CSR=software/include/generated/csr.h
 for i in 1 2 3 4 5 6; do
   rm -f $CSR; python make.py build-headers
   cp $CSR $CSR.$i
 done
 md5sum $CSR.*
```

9 years agoRevert "Use shutil rather then rm -rf command."
Sebastien Bourdeauducq [Sat, 26 Sep 2015 13:55:11 +0000 (21:55 +0800)]
Revert "Use shutil rather then rm -rf command."

This reverts commit d8fd4fe7257eea9efe252376305b716b2f51840f.

9 years agoRevert "Use shutil rather then rm -rf command."
Sebastien Bourdeauducq [Sat, 26 Sep 2015 13:54:19 +0000 (21:54 +0800)]
Revert "Use shutil rather then rm -rf command."

This reverts commit d8fd4fe7257eea9efe252376305b716b2f51840f.

9 years agosdram working on PPro
Sebastien Bourdeauducq [Sat, 26 Sep 2015 13:51:22 +0000 (21:51 +0800)]
sdram working on PPro

9 years agofhdl/specials/Tristate: handle i=None
Sebastien Bourdeauducq [Sat, 26 Sep 2015 13:49:12 +0000 (21:49 +0800)]
fhdl/specials/Tristate: handle i=None

9 years agofhdl/structure: relax type requirements for Array elements
Sebastien Bourdeauducq [Sat, 26 Sep 2015 13:47:33 +0000 (21:47 +0800)]
fhdl/structure: relax type requirements for Array elements

9 years agoreplace flen with len
Sebastien Bourdeauducq [Sat, 26 Sep 2015 10:50:11 +0000 (18:50 +0800)]
replace flen with len

9 years agofhdl: replace flen with len
Sebastien Bourdeauducq [Sat, 26 Sep 2015 10:45:10 +0000 (18:45 +0800)]
fhdl: replace flen with len

9 years agowrap expressions in Specials
Sebastien Bourdeauducq [Sat, 26 Sep 2015 08:45:13 +0000 (16:45 +0800)]
wrap expressions in Specials

9 years agoadd stream, fix CPUs and more imports. simple target boots on ppro.
Sebastien Bourdeauducq [Sat, 26 Sep 2015 08:44:06 +0000 (16:44 +0800)]
add stream, fix CPUs and more imports. simple target boots on ppro.

9 years agofhdl: introduce wrap function
Sebastien Bourdeauducq [Sat, 26 Sep 2015 07:36:28 +0000 (15:36 +0800)]
fhdl: introduce wrap function

9 years agofhdl: export DUID
Sebastien Bourdeauducq [Sat, 26 Sep 2015 05:46:57 +0000 (13:46 +0800)]
fhdl: export DUID

9 years agofix most imports
Sebastien Bourdeauducq [Fri, 25 Sep 2015 10:43:20 +0000 (18:43 +0800)]
fix most imports

9 years agointerconnect: add bus/bank components from Migen
Sebastien Bourdeauducq [Thu, 24 Sep 2015 12:48:18 +0000 (20:48 +0800)]
interconnect: add bus/bank components from Migen

9 years agosetup: simpler version check, beta status
Sebastien Bourdeauducq [Thu, 24 Sep 2015 08:08:39 +0000 (16:08 +0800)]
setup: simpler version check, beta status

9 years agolasmicon: enable refresh at all times
Sebastien Bourdeauducq [Thu, 24 Sep 2015 08:01:08 +0000 (16:01 +0800)]
lasmicon: enable refresh at all times

9 years agobreak down sdram, improve consistency of core names
Sebastien Bourdeauducq [Thu, 24 Sep 2015 07:59:55 +0000 (15:59 +0800)]
break down sdram, improve consistency of core names

9 years agocores directory
Sebastien Bourdeauducq [Thu, 24 Sep 2015 01:05:10 +0000 (09:05 +0800)]
cores directory

9 years agoreorganization WIP: flatten core structure (SDRAM still needs to be done)
Sebastien Bourdeauducq [Wed, 23 Sep 2015 16:18:27 +0000 (00:18 +0800)]
reorganization WIP: flatten core structure (SDRAM still needs to be done)

9 years agofsm: NextState and NextValue should derive from _Statement
Sebastien Bourdeauducq [Wed, 23 Sep 2015 14:38:10 +0000 (22:38 +0800)]
fsm: NextState and NextValue should derive from _Statement

9 years agosetup: remove unneeded import
Sebastien Bourdeauducq [Wed, 23 Sep 2015 01:52:24 +0000 (09:52 +0800)]
setup: remove unneeded import

9 years agosetup: cleanup
Sebastien Bourdeauducq [Wed, 23 Sep 2015 01:52:12 +0000 (09:52 +0800)]
setup: cleanup

9 years agosetup: convert to unix eols
Sebastien Bourdeauducq [Wed, 23 Sep 2015 01:50:31 +0000 (09:50 +0800)]
setup: convert to unix eols

9 years agoCONTRIBUTING.md->rst
Sebastien Bourdeauducq [Tue, 22 Sep 2015 16:57:36 +0000 (00:57 +0800)]
CONTRIBUTING.md->rst

9 years agoREADME.md->rst
Sebastien Bourdeauducq [Tue, 22 Sep 2015 16:55:37 +0000 (00:55 +0800)]
README.md->rst

9 years agomigen.fhdl.std -> migen
Sebastien Bourdeauducq [Tue, 22 Sep 2015 16:36:47 +0000 (00:36 +0800)]
migen.fhdl.std -> migen

9 years agomisoclib -> misoc
Sebastien Bourdeauducq [Tue, 22 Sep 2015 16:35:02 +0000 (00:35 +0800)]
misoclib -> misoc

9 years agosim: fix slice assign
Sebastien Bourdeauducq [Tue, 22 Sep 2015 12:33:44 +0000 (20:33 +0800)]
sim: fix slice assign

9 years agoconda: use new branch (revert this after merge)
Sebastien Bourdeauducq [Tue, 22 Sep 2015 09:27:44 +0000 (17:27 +0800)]
conda: use new branch (revert this after merge)

9 years agosetup.py: cleanup
Sebastien Bourdeauducq [Tue, 22 Sep 2015 09:27:27 +0000 (17:27 +0800)]
setup.py: cleanup

9 years agofsm: support complex targets in NextValue. Closes #27.
Sebastien Bourdeauducq [Tue, 22 Sep 2015 08:55:24 +0000 (16:55 +0800)]
fsm: support complex targets in NextValue. Closes #27.

9 years agofhdl/namer: support ClockSignal and ResetSignal. Closes #24
Sebastien Bourdeauducq [Tue, 22 Sep 2015 06:30:16 +0000 (14:30 +0800)]
fhdl/namer: support ClockSignal and ResetSignal. Closes #24

9 years agoAdd init file in sdram/phy dir
Rohit Kumar Singh [Mon, 21 Sep 2015 15:39:48 +0000 (21:09 +0530)]
Add init file in sdram/phy dir

Without __init__.py file, when using setup.py, setuptools' find_package() function does not find the files in sdram/phy package. Hence .egg file entirely misses sdram/phy directory

More info here: https://bitbucket.org/pypa/setuptools/issues/97

9 years agosim: insert resets, support ClockSignal and ResetSignal
Sebastien Bourdeauducq [Mon, 21 Sep 2015 14:13:36 +0000 (22:13 +0800)]
sim: insert resets, support ClockSignal and ResetSignal

9 years agosim: drive clock signals
Sebastien Bourdeauducq [Mon, 21 Sep 2015 13:52:13 +0000 (21:52 +0800)]
sim: drive clock signals

9 years agosim: VCD output support
Sebastien Bourdeauducq [Mon, 21 Sep 2015 13:20:31 +0000 (21:20 +0800)]
sim: VCD output support

9 years agoverilog: remove unneeded import
Sebastien Bourdeauducq [Mon, 21 Sep 2015 13:19:58 +0000 (21:19 +0800)]
verilog: remove unneeded import

9 years agodoc: minor edits
Sebastien Bourdeauducq [Mon, 21 Sep 2015 13:19:39 +0000 (21:19 +0800)]
doc: minor edits

9 years agouart/software: remove litescope dependency
Florent Kermarrec [Mon, 21 Sep 2015 07:04:59 +0000 (09:04 +0200)]
uart/software: remove litescope dependency

9 years agoAdding --help option to flterm.
Tim 'mithro' Ansell [Sun, 20 Sep 2015 13:09:16 +0000 (23:09 +1000)]
Adding --help option to flterm.

9 years agodoc: remove spurious file
Sebastien Bourdeauducq [Sun, 20 Sep 2015 08:13:08 +0000 (16:13 +0800)]
doc: remove spurious file

9 years agodoc: remove outdated or moved parts, cleanup
Sebastien Bourdeauducq [Sun, 20 Sep 2015 08:10:40 +0000 (16:10 +0800)]
doc: remove outdated or moved parts, cleanup

9 years agofhdl/visit: support Constant
Sebastien Bourdeauducq [Sun, 20 Sep 2015 08:10:17 +0000 (16:10 +0800)]
fhdl/visit: support Constant

9 years agotravis: VPI is not there for now
Sebastien Bourdeauducq [Sun, 20 Sep 2015 07:12:04 +0000 (15:12 +0800)]
travis: VPI is not there for now

9 years agosim: support generators yielding statements
Sebastien Bourdeauducq [Sun, 20 Sep 2015 07:04:15 +0000 (15:04 +0800)]
sim: support generators yielding statements

9 years agosim: memory access from generators
Sebastien Bourdeauducq [Sun, 20 Sep 2015 06:52:26 +0000 (14:52 +0800)]
sim: memory access from generators

9 years agofhdl/structure: add missing init
Sebastien Bourdeauducq [Sun, 20 Sep 2015 06:46:30 +0000 (14:46 +0800)]
fhdl/structure: add missing init

9 years agosim: memory support
Sebastien Bourdeauducq [Sat, 19 Sep 2015 15:21:46 +0000 (23:21 +0800)]
sim: memory support

9 years agofhdl/specials: MemoryPort.clock should always be a ClockSignal
Sebastien Bourdeauducq [Sat, 19 Sep 2015 15:21:24 +0000 (23:21 +0800)]
fhdl/specials: MemoryPort.clock should always be a ClockSignal

9 years agofhdl/simplify: add MemoryToArray
Sebastien Bourdeauducq [Sat, 19 Sep 2015 15:20:57 +0000 (23:20 +0800)]
fhdl/simplify: add MemoryToArray

9 years agotest/fifo: convert to new API
Sebastien Bourdeauducq [Sat, 19 Sep 2015 15:20:30 +0000 (23:20 +0800)]
test/fifo: convert to new API

9 years agogenlib/fifo: add missing import
Sebastien Bourdeauducq [Sat, 19 Sep 2015 15:20:19 +0000 (23:20 +0800)]
genlib/fifo: add missing import

9 years agosim: support arrays, and cat+slice in assignment target
Sebastien Bourdeauducq [Sat, 19 Sep 2015 06:56:26 +0000 (14:56 +0800)]
sim: support arrays, and cat+slice in assignment target

9 years agoMerge branch 'master' of github.com:m-labs/migen
Sebastien Bourdeauducq [Sat, 19 Sep 2015 04:22:47 +0000 (12:22 +0800)]
Merge branch 'master' of github.com:m-labs/migen

9 years agomigen/genlib/cdc: fix BusSynchronizer
Florent Kermarrec [Thu, 17 Sep 2015 21:16:03 +0000 (23:16 +0200)]
migen/genlib/cdc: fix BusSynchronizer

ping/pong token can be lost when:
- source clock domain starts before destination clock domain.
- a clock domain stops.

This fix add a timeout to detect such situation and create another token.

9 years agomigen/genlib/cdc: fix BusSynchronizer
Florent Kermarrec [Thu, 17 Sep 2015 21:16:03 +0000 (23:16 +0200)]
migen/genlib/cdc: fix BusSynchronizer

ping/pong token can be lost when:
- source clock domain starts before destination clock domain.
- a clock domain stops.

This fix add a timeout to detect such situation and create another token.

9 years agosim: remove unneeded import
Sebastien Bourdeauducq [Sat, 19 Sep 2015 04:18:20 +0000 (12:18 +0800)]
sim: remove unneeded import

9 years agogenlib/CRG: fix variable name conflict
Sebastien Bourdeauducq [Sat, 19 Sep 2015 03:18:44 +0000 (11:18 +0800)]
genlib/CRG: fix variable name conflict

9 years agotest: add divider
Sebastien Bourdeauducq [Fri, 18 Sep 2015 03:07:14 +0000 (11:07 +0800)]
test: add divider

9 years agoactorlib/structuring: fix Pack in packetized mode
Florent Kermarrec [Fri, 18 Sep 2015 00:28:02 +0000 (02:28 +0200)]
actorlib/structuring: fix Pack in packetized mode

Params need to be registered for the case when eop appears before the end of the pack cycle.

9 years agosim: support Case
Sebastien Bourdeauducq [Thu, 17 Sep 2015 09:25:06 +0000 (17:25 +0800)]
sim: support Case

9 years agosim: variables are deprecated
Sebastien Bourdeauducq [Thu, 17 Sep 2015 09:24:57 +0000 (17:24 +0800)]
sim: variables are deprecated

9 years agosim: fix comb evaluation
Sebastien Bourdeauducq [Thu, 17 Sep 2015 09:24:20 +0000 (17:24 +0800)]
sim: fix comb evaluation

9 years agotest/size: do not test removed functions
Sebastien Bourdeauducq [Thu, 17 Sep 2015 09:23:19 +0000 (17:23 +0800)]
test/size: do not test removed functions

9 years agotest/coding: use new API
Sebastien Bourdeauducq [Thu, 17 Sep 2015 09:22:59 +0000 (17:22 +0800)]
test/coding: use new API

9 years agogenlib/misc: add missing import
Sebastien Bourdeauducq [Thu, 17 Sep 2015 09:22:44 +0000 (17:22 +0800)]
genlib/misc: add missing import

9 years agofhdl/structure: all case statements should be lists
Sebastien Bourdeauducq [Thu, 17 Sep 2015 09:22:24 +0000 (17:22 +0800)]
fhdl/structure: all case statements should be lists

9 years agofhdl/bitcontainer: remove fiter
Sebastien Bourdeauducq [Thu, 17 Sep 2015 09:22:03 +0000 (17:22 +0800)]
fhdl/bitcontainer: remove fiter

9 years agominor bugfixes
Sebastien Bourdeauducq [Thu, 17 Sep 2015 07:20:27 +0000 (15:20 +0800)]
minor bugfixes

9 years agosim: support eval of slice, cat and mux
Sebastien Bourdeauducq [Thu, 17 Sep 2015 06:39:36 +0000 (14:39 +0800)]
sim: support eval of slice, cat and mux

9 years agofhdl/structure: fix namespace pollution
Sebastien Bourdeauducq [Thu, 17 Sep 2015 06:39:17 +0000 (14:39 +0800)]
fhdl/structure: fix namespace pollution

9 years agotest: bit reverse
Sebastien Bourdeauducq [Thu, 17 Sep 2015 06:38:55 +0000 (14:38 +0800)]
test: bit reverse

9 years agofhdl/bitcontainer: remove fslice and freversed
Sebastien Bourdeauducq [Thu, 17 Sep 2015 06:38:33 +0000 (14:38 +0800)]
fhdl/bitcontainer: remove fslice and freversed

9 years agotest/constant: use new API
Sebastien Bourdeauducq [Thu, 17 Sep 2015 03:08:40 +0000 (11:08 +0800)]
test/constant: use new API

9 years agoadd unittests for Constant
Robert Jordens [Sun, 6 Sep 2015 23:51:59 +0000 (17:51 -0600)]
add unittests for Constant

9 years agodoc: Constant
Sebastien Bourdeauducq [Thu, 17 Sep 2015 03:05:57 +0000 (11:05 +0800)]
doc: Constant

9 years agofhdl/verilog: fix case value sort
Sebastien Bourdeauducq [Thu, 17 Sep 2015 00:03:48 +0000 (08:03 +0800)]
fhdl/verilog: fix case value sort

9 years agofhdl/structure: introduce Constant, autowrap for eq/ops, fix Signal as dictionary...
Sebastien Bourdeauducq [Tue, 15 Sep 2015 04:38:02 +0000 (12:38 +0800)]
fhdl/structure: introduce Constant, autowrap for eq/ops, fix Signal as dictionary key problem

9 years agofhdl/decorators: remove traces of deprecated API
Sebastien Bourdeauducq [Sat, 12 Sep 2015 11:44:35 +0000 (19:44 +0800)]
fhdl/decorators: remove traces of deprecated API

9 years agogenlib: remove reverse_bytes, FlipFlop, Counter
Sebastien Bourdeauducq [Sat, 12 Sep 2015 11:40:29 +0000 (19:40 +0800)]
genlib: remove reverse_bytes, FlipFlop, Counter

9 years agogenlib: cleanup CRG
Sebastien Bourdeauducq [Sat, 12 Sep 2015 11:40:07 +0000 (19:40 +0800)]
genlib: cleanup CRG

9 years agofhdl/decorators: remove deprecated API
Sebastien Bourdeauducq [Sat, 12 Sep 2015 11:34:44 +0000 (19:34 +0800)]
fhdl/decorators: remove deprecated API

9 years agosimplify imports, migen.fhdl.std -> migen
Sebastien Bourdeauducq [Sat, 12 Sep 2015 11:34:07 +0000 (19:34 +0800)]
simplify imports, migen.fhdl.std -> migen

9 years agobuild/xilinx: minor cleanup
Sebastien Bourdeauducq [Sat, 12 Sep 2015 08:39:39 +0000 (16:39 +0800)]
build/xilinx: minor cleanup

9 years agotest/support,signed,sort: use new simulator
Sebastien Bourdeauducq [Sat, 12 Sep 2015 08:28:21 +0000 (16:28 +0800)]
test/support,signed,sort: use new simulator

9 years agosim: refactor comb commit
Sebastien Bourdeauducq [Sat, 12 Sep 2015 08:27:59 +0000 (16:27 +0800)]
sim: refactor comb commit

9 years agosim: support eval of nested lists
Sebastien Bourdeauducq [Sat, 12 Sep 2015 08:01:53 +0000 (16:01 +0800)]
sim: support eval of nested lists

9 years agogenlib/sort: remove unneeded import
Sebastien Bourdeauducq [Sat, 12 Sep 2015 07:21:42 +0000 (15:21 +0800)]
genlib/sort: remove unneeded import