litex.git
11 years agomibuild: use keyword arguments directly in build_cmdline
Sebastien Bourdeauducq [Sun, 1 Dec 2013 16:56:07 +0000 (17:56 +0100)]
mibuild: use keyword arguments directly in build_cmdline

11 years agomibuild: add support for Yosys
Sebastien Bourdeauducq [Sun, 1 Dec 2013 16:07:48 +0000 (17:07 +0100)]
mibuild: add support for Yosys

11 years agodoc/index.rst: drop index and table chapter, index and search are also generated...
Robert Jordens [Fri, 29 Nov 2013 22:37:50 +0000 (15:37 -0700)]
doc/index.rst: drop index and table chapter, index and search are also generated without

11 years agosetup.py: update repository address
Sebastien Bourdeauducq [Fri, 29 Nov 2013 22:26:52 +0000 (23:26 +0100)]
setup.py: update repository address

11 years agogenlib/coding: add docstrings, add it to api doc
Robert Jördens [Fri, 29 Nov 2013 09:36:48 +0000 (02:36 -0700)]
genlib/coding: add docstrings, add it to api doc

11 years agogenlib/coding, test/test_coding: unittests
Robert Jördens [Fri, 29 Nov 2013 09:20:29 +0000 (02:20 -0700)]
genlib/coding, test/test_coding: unittests

11 years agotest/test_fifo: do not use relative import
Sebastien Bourdeauducq [Fri, 29 Nov 2013 22:18:03 +0000 (23:18 +0100)]
test/test_fifo: do not use relative import

This way the test can simply be run with:
 python -m unittest test_fifo.py

11 years agotest/test_fifo, genlib/fifo: move test to unittest
Robert Jördens [Fri, 29 Nov 2013 08:48:57 +0000 (01:48 -0700)]
test/test_fifo, genlib/fifo: move test to unittest

11 years agomigen/test: start unittests
Robert Jördens [Fri, 29 Nov 2013 08:47:32 +0000 (01:47 -0700)]
migen/test: start unittests

11 years agosim: use Simulator as a contextmanager
Robert Jördens [Fri, 29 Nov 2013 08:43:44 +0000 (01:43 -0700)]
sim: use Simulator as a contextmanager

__del__ garbage collector callbacks are too delicate.  E.g. imported
modules can be garbage collected before the objects using them. Can't
use os.remove, socket.SHUT_RDWR...

* added a DeprecationWarning if a Simulator is garbage collected without
having its .close() called
* renamed all gc __del__ callbacks to close()
* implemented context manager hooks for Simulator. Use like

   with Simulator(TestBench()) as s:
       s.run()

11 years agodoc/api, index: add fhdl.structure, add index/search
Robert Jördens [Fri, 29 Nov 2013 06:38:24 +0000 (23:38 -0700)]
doc/api, index: add fhdl.structure, add index/search

genindex is needed to generate links between members and search is
useful for the html docs.

11 years agofhdl/structure: clarify usage restrictions of LHS Cat
Sebastien Bourdeauducq [Fri, 29 Nov 2013 21:35:53 +0000 (22:35 +0100)]
fhdl/structure: clarify usage restrictions of LHS Cat

11 years agodoc/conf.py: no modindex, no numpydoc warnings
Robert Jördens [Fri, 29 Nov 2013 06:35:34 +0000 (23:35 -0700)]
doc/conf.py: no modindex, no numpydoc warnings

* do not generate boring modindex for html and latex outputs
* numpydoc_show_class_members=False, to skip undocumented methods
  https://github.com/phn/pytpm/issues/3#issuecomment-12133978

11 years agofhdl.structure: document the API
Robert Jördens [Fri, 29 Nov 2013 06:34:06 +0000 (23:34 -0700)]
fhdl.structure: document the API

11 years agogenlib.fifo: fix docstring section syntax
Robert Jördens [Fri, 29 Nov 2013 06:33:27 +0000 (23:33 -0700)]
genlib.fifo: fix docstring section syntax

11 years agogenlib/fifo: clarify we behaviour when writable=0
Sebastien Bourdeauducq [Thu, 28 Nov 2013 21:31:10 +0000 (22:31 +0100)]
genlib/fifo: clarify we behaviour when writable=0

11 years agosetup API documentation, start by documenting fifos
Robert Jordens [Thu, 28 Nov 2013 08:46:52 +0000 (01:46 -0700)]
setup API documentation, start by documenting fifos

11 years agoadd autodoc, numpydoc and doctest to sphinx to generate API doc
Robert Jordens [Thu, 28 Nov 2013 08:46:08 +0000 (01:46 -0700)]
add autodoc, numpydoc and doctest to sphinx to generate API doc

11 years agoplatforms/papilio_pro: add 2x SPI pins
Sebastien Bourdeauducq [Mon, 25 Nov 2013 14:14:58 +0000 (15:14 +0100)]
platforms/papilio_pro: add 2x SPI pins

11 years agospecials/Instance: add PreformattedParam
Sebastien Bourdeauducq [Mon, 25 Nov 2013 11:09:51 +0000 (12:09 +0100)]
specials/Instance: add PreformattedParam

11 years agobus/wishbone/sram: expose memory component
Sebastien Bourdeauducq [Sun, 24 Nov 2013 22:43:14 +0000 (23:43 +0100)]
bus/wishbone/sram: expose memory component

11 years agobus/wishbone: style
Sebastien Bourdeauducq [Sun, 24 Nov 2013 22:42:54 +0000 (23:42 +0100)]
bus/wishbone: style

11 years agoplatforms/papilio_pro: fix clock signal handling
Sebastien Bourdeauducq [Sun, 24 Nov 2013 22:42:31 +0000 (23:42 +0100)]
platforms/papilio_pro: fix clock signal handling

11 years agoplatforms/m1: use definition compatible with Mixxeo for VGA out
Sebastien Bourdeauducq [Sun, 24 Nov 2013 13:00:22 +0000 (14:00 +0100)]
platforms/m1: use definition compatible with Mixxeo for VGA out

11 years agolasmibus/Crossbar: more flexible master assignment
Sebastien Bourdeauducq [Sat, 23 Nov 2013 16:51:22 +0000 (17:51 +0100)]
lasmibus/Crossbar: more flexible master assignment

11 years agoremove stale .gitignore
Sebastien Bourdeauducq [Sat, 23 Nov 2013 14:16:27 +0000 (15:16 +0100)]
remove stale .gitignore

11 years agoupdate pointers
Sebastien Bourdeauducq [Sat, 23 Nov 2013 10:29:57 +0000 (11:29 +0100)]
update pointers

11 years agomerge Mibuild into Migen
Sebastien Bourdeauducq [Sat, 23 Nov 2013 09:45:15 +0000 (10:45 +0100)]
merge Mibuild into Migen

11 years agoAdd 'mibuild/' from commit '9d5931c969810a236de2a2713cfd5e509839d097'
Sebastien Bourdeauducq [Sat, 23 Nov 2013 09:34:28 +0000 (10:34 +0100)]
Add 'mibuild/' from commit '9d5931c969810a236de2a2713cfd5e509839d097'

git-subtree-dir: mibuild
git-subtree-mainline: 7e4024beb3cd10c31ee575eddf9a61d79e0d2c61
git-subtree-split: 9d5931c969810a236de2a2713cfd5e509839d097

11 years agogenlib/fsm: rename {entering,leaving} to after_{entering,leaving}, add before_{enteri...
Robert Jordens [Thu, 21 Nov 2013 19:44:01 +0000 (12:44 -0700)]
genlib/fsm: rename {entering,leaving} to after_{entering,leaving}, add before_{entering,leaving}

11 years agoflow/isd: update to new APIs
Sebastien Bourdeauducq [Wed, 20 Nov 2013 16:45:09 +0000 (17:45 +0100)]
flow/isd: update to new APIs

11 years agoplatforms/mixxeo: update DVI input timing constraints
Sebastien Bourdeauducq [Tue, 19 Nov 2013 22:15:42 +0000 (23:15 +0100)]
platforms/mixxeo: update DVI input timing constraints

11 years agorename milkymist-ng to MiSoC
Sebastien Bourdeauducq [Sat, 9 Nov 2013 17:51:16 +0000 (18:51 +0100)]
rename milkymist-ng to MiSoC

11 years agoplumbing: use Record.connect in Multiplexer/ Demultiplexer
Florent Kermarrec [Mon, 4 Nov 2013 12:46:37 +0000 (13:46 +0100)]
plumbing: use Record.connect in Multiplexer/ Demultiplexer

11 years agoutil: add missing __init__.py
Florent Kermarrec [Mon, 4 Nov 2013 12:45:39 +0000 (13:45 +0100)]
util: add missing __init__.py

11 years agoactorlib/spi/DMAWriteController: make ack_when_inactive a keyword-only arg
Sebastien Bourdeauducq [Sat, 2 Nov 2013 22:21:05 +0000 (23:21 +0100)]
actorlib/spi/DMAWriteController: make ack_when_inactive a keyword-only arg

11 years agoactorlib/spi: add ack_when_inactive parameter to DMA Write Controller
Florent Kermarrec [Fri, 25 Oct 2013 20:53:59 +0000 (22:53 +0200)]
actorlib/spi: add ack_when_inactive parameter to DMA Write Controller

In some cases we don't want to stall the input pipeline when the DMA is inactive, setting ack_when_inactive to True will enable acknowledge of data when the DMA is inactive.

11 years agoflow/plumbing/muxdemux: use existing connect() method instead of new function
Sebastien Bourdeauducq [Sat, 2 Nov 2013 22:15:03 +0000 (23:15 +0100)]
flow/plumbing/muxdemux: use existing connect() method instead of new function

11 years agoflow/actor: Record.connect no longer takes kwargs
Sebastien Bourdeauducq [Sat, 2 Nov 2013 22:14:32 +0000 (23:14 +0100)]
flow/actor: Record.connect no longer takes kwargs

11 years agoflow/plumbing: add Multiplexer and Demultiplexer
Florent Kermarrec [Fri, 25 Oct 2013 20:45:45 +0000 (22:45 +0200)]
flow/plumbing: add Multiplexer and Demultiplexer

11 years agoreplace use of __dict__ with dir()/xdir()
Sebastien Bourdeauducq [Sat, 2 Nov 2013 15:03:47 +0000 (16:03 +0100)]
replace use of __dict__ with dir()/xdir()

11 years agoflow: add AbstractActor busy signals
Sebastien Bourdeauducq [Fri, 25 Oct 2013 16:50:14 +0000 (18:50 +0200)]
flow: add AbstractActor busy signals

11 years agoBetter record layout parameterization mechanism
Sebastien Bourdeauducq [Wed, 23 Oct 2013 10:54:50 +0000 (12:54 +0200)]
Better record layout parameterization mechanism

11 years agoRevert "genlib/record: support passing params in same object"
Sebastien Bourdeauducq [Tue, 22 Oct 2013 13:23:00 +0000 (15:23 +0200)]
Revert "genlib/record: support passing params in same object"

This reverts commit 018afe57ef52b8040934319cac848437a2ba0163.

11 years agoRevert "genlib/fifo: support RecordP"
Sebastien Bourdeauducq [Tue, 22 Oct 2013 13:22:40 +0000 (15:22 +0200)]
Revert "genlib/fifo: support RecordP"

This reverts commit c0d2b5a78947814eeb9476fe7ca4c1e3d27e02f4.

11 years agogenlib/fifo: support RecordP
Sebastien Bourdeauducq [Mon, 21 Oct 2013 20:30:06 +0000 (22:30 +0200)]
genlib/fifo: support RecordP

11 years agogenlib/record: support passing params in same object
Sebastien Bourdeauducq [Mon, 21 Oct 2013 20:05:28 +0000 (22:05 +0200)]
genlib/record: support passing params in same object

11 years agomixxeo: add DVI output pins
Sebastien Bourdeauducq [Tue, 17 Sep 2013 16:14:41 +0000 (18:14 +0200)]
mixxeo: add DVI output pins

11 years agoMerge branch 'master' of github.com:milkymist/mibuild
Sebastien Bourdeauducq [Mon, 16 Sep 2013 17:17:09 +0000 (19:17 +0200)]
Merge branch 'master' of github.com:milkymist/mibuild

11 years agomixxeo: use -2 speed grade
Sebastien Bourdeauducq [Mon, 16 Sep 2013 17:17:00 +0000 (19:17 +0200)]
mixxeo: use -2 speed grade

11 years agomixxeo: swap pairs 0 and 1 on DVI1
Sebastien Bourdeauducq [Sat, 14 Sep 2013 17:36:02 +0000 (19:36 +0200)]
mixxeo: swap pairs 0 and 1 on DVI1

11 years agoplatforms/mixxeo: add LED
Sebastien Bourdeauducq [Fri, 6 Sep 2013 21:10:01 +0000 (23:10 +0200)]
platforms/mixxeo: add LED

11 years agogenlib/fsm: add entering/ongoing/leaving methods
Sebastien Bourdeauducq [Fri, 6 Sep 2013 12:51:18 +0000 (14:51 +0200)]
genlib/fsm: add entering/ongoing/leaving methods

11 years agoactorlib/fifo: do not duplicate safe write logic
Sebastien Bourdeauducq [Wed, 4 Sep 2013 15:33:53 +0000 (17:33 +0200)]
actorlib/fifo: do not duplicate safe write logic

11 years agoactorlib/spi/DMAController: use EventSourceProcess
Sebastien Bourdeauducq [Wed, 4 Sep 2013 15:29:42 +0000 (17:29 +0200)]
actorlib/spi/DMAController: use EventSourceProcess

11 years agoactorlib/spi: add optional irq generation on DMAController
Florent Kermarrec [Tue, 3 Sep 2013 22:06:53 +0000 (00:06 +0200)]
actorlib/spi: add optional irq generation on DMAController

11 years agoactorlib/fifo: rewrite
Sebastien Bourdeauducq [Wed, 4 Sep 2013 15:22:50 +0000 (17:22 +0200)]
actorlib/fifo: rewrite

* use classes for less code duplication
* the idea of decorator is to avoid passing common parameters (e.g. clock domain names) in module constructors, so remove those parameters
* style

11 years agoexamples/basic/namer: cleanup
Sebastien Bourdeauducq [Wed, 4 Sep 2013 15:20:40 +0000 (17:20 +0200)]
examples/basic/namer: cleanup

11 years agoactorlib: add fifo
Florent Kermarrec [Tue, 3 Sep 2013 22:01:33 +0000 (00:01 +0200)]
actorlib: add fifo

11 years agobus/wb2lasmi: use existing interface to determine WB width to be consistent with...
Sebastien Bourdeauducq [Mon, 26 Aug 2013 18:33:34 +0000 (20:33 +0200)]
bus/wb2lasmi: use existing interface to determine WB width to be consistent with other modules

11 years agowishbone/SRAM: fix non-32-bit bus
Sebastien Bourdeauducq [Mon, 26 Aug 2013 18:32:59 +0000 (20:32 +0200)]
wishbone/SRAM: fix non-32-bit bus

11 years agowishbone2lasmi: configurable data width
Florent Kermarrec [Mon, 26 Aug 2013 12:25:03 +0000 (14:25 +0200)]
wishbone2lasmi: configurable data width

11 years agowishbone : add DownConverter
Florent Kermarrec [Mon, 26 Aug 2013 12:22:54 +0000 (14:22 +0200)]
wishbone : add DownConverter

11 years agoaltera_quartus: fix import _Fragment
Florent Kermarrec [Mon, 26 Aug 2013 16:08:01 +0000 (18:08 +0200)]
altera_quartus: fix import _Fragment

11 years agowishbone2lasmi : add support for 32 bits lasmim data width
Florent Kermarrec [Tue, 20 Aug 2013 14:53:55 +0000 (16:53 +0200)]
wishbone2lasmi : add support for 32 bits lasmim data width

11 years agogenlib/misc: improve genericity of split/displacer/chooser
Florent Kermarrec [Tue, 20 Aug 2013 14:52:48 +0000 (16:52 +0200)]
genlib/misc: improve genericity of split/displacer/chooser

11 years agoplatforms/m1: resetless by default
Sebastien Bourdeauducq [Tue, 13 Aug 2013 22:46:30 +0000 (00:46 +0200)]
platforms/m1: resetless by default

11 years agoadd ternary operator sel ? a : b
Nina Engelhardt [Sun, 11 Aug 2013 21:53:33 +0000 (23:53 +0200)]
add ternary operator sel ? a : b

11 years agoadd += operator to fragment
Nina Engelhardt [Sun, 11 Aug 2013 21:11:30 +0000 (23:11 +0200)]
add += operator to fragment

11 years agoadd mist synthesis mode to build
Nina Engelhardt [Sun, 11 Aug 2013 21:07:07 +0000 (23:07 +0200)]
add mist synthesis mode to build

11 years agofhdl: improve naming of related signals
Sebastien Bourdeauducq [Thu, 8 Aug 2013 17:22:17 +0000 (19:22 +0200)]
fhdl: improve naming of related signals

11 years agofhdl/namer: detect leaf nodes better
Sebastien Bourdeauducq [Thu, 8 Aug 2013 10:22:58 +0000 (12:22 +0200)]
fhdl/namer: detect leaf nodes better

11 years agofhdl: move insert_resets to tools
Sebastien Bourdeauducq [Thu, 8 Aug 2013 09:32:58 +0000 (11:32 +0200)]
fhdl: move insert_resets to tools

11 years agofhdl: support for naming related signals
Sebastien Bourdeauducq [Thu, 8 Aug 2013 09:32:37 +0000 (11:32 +0200)]
fhdl: support for naming related signals

11 years agoxilinx_ise: cleanup
Sebastien Bourdeauducq [Wed, 7 Aug 2013 22:15:35 +0000 (00:15 +0200)]
xilinx_ise: cleanup

11 years agonamer: add HUID suffix step
Sebastien Bourdeauducq [Wed, 7 Aug 2013 22:15:18 +0000 (00:15 +0200)]
namer: add HUID suffix step

11 years agoFix missing string replace. Added support for 32-bit ISE if 64-bit version is missing...
user [Wed, 7 Aug 2013 16:26:40 +0000 (18:26 +0200)]
Fix missing string replace. Added support for 32-bit ISE if 64-bit version is missing on 64-bit system.

11 years agonamer: split by numbers
Sebastien Bourdeauducq [Wed, 7 Aug 2013 21:22:40 +0000 (23:22 +0200)]
namer: split by numbers

11 years agotreeviz: support multiline labels
Sebastien Bourdeauducq [Wed, 7 Aug 2013 19:46:03 +0000 (21:46 +0200)]
treeviz: support multiline labels

11 years agotreeviz: improve layout of unbalanced trees
Sebastien Bourdeauducq [Wed, 7 Aug 2013 16:32:02 +0000 (18:32 +0200)]
treeviz: improve layout of unbalanced trees

11 years agofhdl/namer: new namer with explicit tree
Sebastien Bourdeauducq [Wed, 7 Aug 2013 15:13:52 +0000 (17:13 +0200)]
fhdl/namer: new namer with explicit tree

11 years agoadd tree visualizer
Sebastien Bourdeauducq [Wed, 7 Aug 2013 13:52:35 +0000 (15:52 +0200)]
add tree visualizer

11 years agoadd edif build routines
Nina Engelhardt [Fri, 2 Aug 2013 15:10:33 +0000 (17:10 +0200)]
add edif build routines

11 years agofhdl/edif: adjust for use with mibuild
Nina Engelhardt [Sat, 3 Aug 2013 08:54:04 +0000 (10:54 +0200)]
fhdl/edif: adjust for use with mibuild

11 years agofhdl/edif: add support for inout signals
Nina Engelhardt [Sat, 3 Aug 2013 08:51:04 +0000 (10:51 +0200)]
fhdl/edif: add support for inout signals

11 years agobank/csrgen: add get_offset function to pre-calculate register addresses
Sebastien Bourdeauducq [Fri, 2 Aug 2013 21:05:54 +0000 (23:05 +0200)]
bank/csrgen: add get_offset function to pre-calculate register addresses

11 years agobank/description/AutoCSR: prefix csr/mem only once
Sebastien Bourdeauducq [Fri, 2 Aug 2013 21:05:21 +0000 (23:05 +0200)]
bank/description/AutoCSR: prefix csr/mem only once

11 years agosetup.py: change license to BSD
Sebastien Bourdeauducq [Thu, 1 Aug 2013 15:46:46 +0000 (17:46 +0200)]
setup.py: change license to BSD

11 years agoChange license to BSD
Sebastien Bourdeauducq [Thu, 1 Aug 2013 15:46:09 +0000 (17:46 +0200)]
Change license to BSD

11 years agofhdl: add EDIF back-end
Nina Engelhardt [Wed, 31 Jul 2013 20:47:30 +0000 (22:47 +0200)]
fhdl: add EDIF back-end

11 years agoplatforms/mixxeo: new pin assignments to ease routing
Sebastien Bourdeauducq [Mon, 29 Jul 2013 10:24:49 +0000 (12:24 +0200)]
platforms/mixxeo: new pin assignments to ease routing

11 years agocsr: new data width API
Sebastien Bourdeauducq [Sun, 28 Jul 2013 14:33:36 +0000 (16:33 +0200)]
csr: new data width API

11 years agobus/wishbone: configurable data width
Sebastien Bourdeauducq [Sat, 27 Jul 2013 20:25:07 +0000 (22:25 +0200)]
bus/wishbone: configurable data width

11 years agogenlib/record: support abstract signal width
Sebastien Bourdeauducq [Sat, 27 Jul 2013 20:18:06 +0000 (22:18 +0200)]
genlib/record: support abstract signal width

11 years agopytholite/io: len -> flen
Sebastien Bourdeauducq [Sat, 27 Jul 2013 13:38:48 +0000 (15:38 +0200)]
pytholite/io: len -> flen

11 years agopythloite/ExprCompiler: attempt compile-time evaluation first
Sebastien Bourdeauducq [Sat, 27 Jul 2013 13:38:29 +0000 (15:38 +0200)]
pythloite/ExprCompiler: attempt compile-time evaluation first

11 years agobus/csr/Initiator: correct read latency
Sebastien Bourdeauducq [Sat, 27 Jul 2013 13:37:47 +0000 (15:37 +0200)]
bus/csr/Initiator: correct read latency

11 years agoactorlib/spi: remove unused function
Sebastien Bourdeauducq [Sat, 27 Jul 2013 13:36:42 +0000 (15:36 +0200)]
actorlib/spi: remove unused function

11 years agofix synthesis translate on/off switch
Nina Engelhardt [Fri, 26 Jul 2013 13:48:25 +0000 (15:48 +0200)]
fix synthesis translate on/off switch

11 years agofhdl: RenameClockDomains decorator
Sebastien Bourdeauducq [Fri, 26 Jul 2013 13:42:14 +0000 (15:42 +0200)]
fhdl: RenameClockDomains decorator