litex.git
9 years agoexamples/graycounter: use new simulator
Sebastien Bourdeauducq [Sat, 12 Sep 2015 07:14:21 +0000 (15:14 +0800)]
examples/graycounter: use new simulator

9 years agotest/examples: do not attempt to run deleted examples
Sebastien Bourdeauducq [Sat, 12 Sep 2015 07:13:45 +0000 (15:13 +0800)]
test/examples: do not attempt to run deleted examples

9 years agosim: support clock domains without sync
Sebastien Bourdeauducq [Sat, 12 Sep 2015 07:12:57 +0000 (15:12 +0800)]
sim: support clock domains without sync

9 years agosimulator: support generators
Sebastien Bourdeauducq [Fri, 11 Sep 2015 04:44:14 +0000 (21:44 -0700)]
simulator: support generators

9 years agonew simulator: basic execution
Sebastien Bourdeauducq [Fri, 11 Sep 2015 03:33:45 +0000 (20:33 -0700)]
new simulator: basic execution

9 years agofhdl/tools: add input lister
Sebastien Bourdeauducq [Fri, 11 Sep 2015 03:33:10 +0000 (20:33 -0700)]
fhdl/tools: add input lister

9 years agostyle
Sebastien Bourdeauducq [Fri, 11 Sep 2015 03:32:47 +0000 (20:32 -0700)]
style

9 years agofhdl: remove features new simulator won't use
Sebastien Bourdeauducq [Fri, 11 Sep 2015 01:29:57 +0000 (18:29 -0700)]
fhdl: remove features new simulator won't use

9 years agoremove genlib.misc.optree (use reduce instead)
Sebastien Bourdeauducq [Thu, 10 Sep 2015 20:56:56 +0000 (13:56 -0700)]
remove genlib.misc.optree (use reduce instead)

9 years agodvisampler/edid: fix sda sampling, needs to be similar to scl.
Florent Kermarrec [Thu, 10 Sep 2015 18:51:10 +0000 (20:51 +0200)]
dvisampler/edid: fix sda sampling, needs to be similar to scl.

Video sources with high scl frequency were not able to access EDID information through I2C.
I2C start was not detected correctly and was randomly reseting the fsm during transfers.(seen with litescope)

9 years agofixed bug in value_bits_sign of mul operatiors
Yves Delley [Wed, 9 Sep 2015 13:32:09 +0000 (15:32 +0200)]
fixed bug in value_bits_sign of mul operatiors

9 years agomibuild -> migen.build
Sebastien Bourdeauducq [Thu, 10 Sep 2015 17:53:15 +0000 (10:53 -0700)]
mibuild -> migen.build

9 years agoMerge pull request #31 from burnpanck/fix-value_bits_sign-mul
Sébastien Bourdeauducq [Thu, 10 Sep 2015 17:25:57 +0000 (10:25 -0700)]
Merge pull request #31 from burnpanck/fix-value_bits_sign-mul

fix bug in value_bits_sign of mul operatiors

9 years agotravis: only upload package when not building a pull request
Yann Sionneau [Wed, 9 Sep 2015 15:09:24 +0000 (17:09 +0200)]
travis: only upload package when not building a pull request

9 years agofixed bug in value_bits_sign of mul operatiors
Yves Delley [Wed, 9 Sep 2015 13:32:09 +0000 (15:32 +0200)]
fixed bug in value_bits_sign of mul operatiors

9 years agoAllow installing tools to a prefix.
Tim 'mithro' Ansell [Tue, 8 Sep 2015 15:15:15 +0000 (08:15 -0700)]
Allow installing tools to a prefix.

(Defaults to /usr/local.)

9 years agocreate liteethmini and move liteeth to a separate repo (https://github.com/enjoy...
Florent Kermarrec [Mon, 7 Sep 2015 22:58:03 +0000 (00:58 +0200)]
create liteethmini and move liteeth to a separate repo (https://github.com/enjoy-digital/liteeth)

LiteEthMini is a subset of LiteEth intended to be used with a CPU and a software stack.

9 years agoremove litepcie_phy_wrappers submodule
Florent Kermarrec [Mon, 7 Sep 2015 11:19:12 +0000 (13:19 +0200)]
remove litepcie_phy_wrappers submodule

9 years agotargets: remove USBSoC from minispartan6 (example available here: https://github...
Florent Kermarrec [Mon, 7 Sep 2015 10:46:37 +0000 (12:46 +0200)]
targets: remove USBSoC from minispartan6 (example available here: https://github.com/enjoy-digital/scarab-soc)

9 years agomove liteusb to a separate repo (https://github.com/enjoy-digital/liteusb)
Florent Kermarrec [Mon, 7 Sep 2015 10:44:47 +0000 (12:44 +0200)]
move liteusb to a separate repo (https://github.com/enjoy-digital/liteusb)

9 years agomove litesata to a separate repo (https://github.com/enjoy-digital/litesata)
Florent Kermarrec [Mon, 7 Sep 2015 10:26:52 +0000 (12:26 +0200)]
move litesata to a separate repo (https://github.com/enjoy-digital/litesata)

9 years agomove litescope to a separate repo (https://github.com/enjoy-digital/litescope)
Florent Kermarrec [Mon, 7 Sep 2015 10:01:48 +0000 (12:01 +0200)]
move litescope to a separate repo (https://github.com/enjoy-digital/litescope)

9 years agomove litepcie to a separate repo (https://github.com/enjoy-digital/litepcie)
Florent Kermarrec [Mon, 7 Sep 2015 09:11:43 +0000 (11:11 +0200)]
move litepcie to a separate repo (https://github.com/enjoy-digital/litepcie)

9 years agoAutoCSR: refactor common gatherer code
Robert Jordens [Sun, 6 Sep 2015 23:51:57 +0000 (17:51 -0600)]
AutoCSR: refactor common gatherer code

9 years agoSimulator will be rewritten
Sebastien Bourdeauducq [Sat, 5 Sep 2015 21:07:00 +0000 (15:07 -0600)]
Simulator will be rewritten

9 years agoRemove code that will be into MiSoC or other packages.
Sebastien Bourdeauducq [Fri, 4 Sep 2015 20:13:00 +0000 (14:13 -0600)]
Remove code that will be into MiSoC or other packages.

9 years agomibuild/altera/common: use Altera instead of Quartus (coherency with xilinx/common)
Florent Kermarrec [Sat, 5 Sep 2015 13:47:56 +0000 (15:47 +0200)]
mibuild/altera/common: use Altera instead of Quartus (coherency with xilinx/common)

9 years agomisoclib/soc: fix add_constant when used for strings
Florent Kermarrec [Tue, 1 Sep 2015 14:57:50 +0000 (16:57 +0200)]
misoclib/soc: fix add_constant when used for strings

9 years agolitecores: remove unneeded AutoCSR inheritance in example designs (thanks William...
Florent Kermarrec [Wed, 26 Aug 2015 20:36:48 +0000 (22:36 +0200)]
litecores: remove unneeded AutoCSR inheritance in example designs (thanks William D. Jones)

9 years agolitescope/core/port: fix missing self.comb...
Florent Kermarrec [Mon, 24 Aug 2015 18:12:39 +0000 (20:12 +0200)]
litescope/core/port: fix missing self.comb...

9 years agolitescope/core/port: fix EdgeDetector CSRs names
Florent Kermarrec [Mon, 24 Aug 2015 17:40:53 +0000 (19:40 +0200)]
litescope/core/port: fix EdgeDetector CSRs names

9 years agolitescope/core/port: fix LiteScopeEdgeDetector (refactoring issues)
Florent Kermarrec [Mon, 24 Aug 2015 16:15:13 +0000 (18:15 +0200)]
litescope/core/port: fix LiteScopeEdgeDetector (refactoring issues)

9 years agoliteth/phy: simplify clk_freq in LiteEthPHY autodetect function (thanks Sebastien)
Florent Kermarrec [Sat, 22 Aug 2015 14:30:42 +0000 (16:30 +0200)]
liteth/phy: simplify clk_freq in LiteEthPHY autodetect function (thanks Sebastien)

9 years agosdram/phy/s6ddrphy: fix comment on S6QuarterRateDDRPHY
Florent Kermarrec [Sat, 22 Aug 2015 10:50:41 +0000 (12:50 +0200)]
sdram/phy/s6ddrphy: fix comment on S6QuarterRateDDRPHY

9 years agosdram/module: add P3R1GE4JGF DDR2 (Atlys) and MT41J128M16 DDR3 (Opsis, Novena) modules.
Florent Kermarrec [Sat, 22 Aug 2015 10:42:44 +0000 (12:42 +0200)]
sdram/module: add P3R1GE4JGF DDR2 (Atlys) and MT41J128M16 DDR3 (Opsis, Novena) modules.

9 years agosdram/phy/s6ddrphy: add S6QuarterRateDDRPHY to run DDR3 at higher frequencies.
Florent Kermarrec [Sat, 22 Aug 2015 10:15:53 +0000 (12:15 +0200)]
sdram/phy/s6ddrphy: add S6QuarterRateDDRPHY to run DDR3 at higher frequencies.

Built on top of S6HalfRateDDRPHY, exposes a 4 phases DFI interface to the controller with a 2x slower clock.
Validated on the Numato Lab opsis board (50MHz sys_clk/ DDR400), should also work on the Novena laptop (same DDR3 module).

9 years agoliteeth/phy: fix autodetect (clk_freq not necessary passed in kwargs)
Florent Kermarrec [Sat, 22 Aug 2015 10:08:49 +0000 (12:08 +0200)]
liteeth/phy: fix autodetect (clk_freq not necessary passed in kwargs)

9 years agosdram/phy/s6ddrphy: rename S6DDRPHY to S6HalfRateDDRPHY and use ORed wrdata_en/rddata...
Florent Kermarrec [Sat, 22 Aug 2015 09:47:26 +0000 (11:47 +0200)]
sdram/phy/s6ddrphy: rename S6DDRPHY to S6HalfRateDDRPHY and use ORed wrdata_en/rddata_en (the controller already manages that)

9 years agoREADME: small update
Florent Kermarrec [Sat, 22 Aug 2015 09:39:54 +0000 (11:39 +0200)]
README: small update

9 years agosdram/module: cleanup indent
Florent Kermarrec [Thu, 20 Aug 2015 20:15:06 +0000 (22:15 +0200)]
sdram/module: cleanup indent

9 years agolitecores: add -Ob option to make.py (allow to build with yosys for example)
Florent Kermarrec [Tue, 18 Aug 2015 23:06:48 +0000 (01:06 +0200)]
litecores: add -Ob option to make.py (allow to build with yosys for example)

9 years agoliteeth/phy: only use clk_freq for LiteEthPHYGMIIMII in autodetect
Florent Kermarrec [Tue, 18 Aug 2015 23:07:41 +0000 (01:07 +0200)]
liteeth/phy: only use clk_freq for LiteEthPHYGMIIMII in autodetect

9 years agomigen/actorlib/packet: fix source.error in Depacketizer
Florent Kermarrec [Tue, 18 Aug 2015 23:09:16 +0000 (01:09 +0200)]
migen/actorlib/packet: fix source.error in Depacketizer

9 years agomibuild/xilinx/ise: update synthesis with yosis
Florent Kermarrec [Tue, 18 Aug 2015 23:09:54 +0000 (01:09 +0200)]
mibuild/xilinx/ise: update synthesis with yosis

9 years agotools/flterm: replace int(a, 16) with int(a, 0) for --kernel-adr
Florent Kermarrec [Tue, 18 Aug 2015 13:47:09 +0000 (15:47 +0200)]
tools/flterm: replace int(a, 16) with int(a, 0) for --kernel-adr

9 years agotools/flterm.py: cleanup kernel-adr argument parsing
Florent Kermarrec [Thu, 13 Aug 2015 11:24:39 +0000 (13:24 +0200)]
tools/flterm.py: cleanup kernel-adr argument parsing

9 years agoUse shutil rather then rm -rf command.
Tim 'mithro' Ansell [Wed, 12 Aug 2015 11:28:50 +0000 (12:28 +0100)]
Use shutil rather then rm -rf command.

9 years agoUse shell for globbing in clean.
Tim 'mithro' Ansell [Wed, 12 Aug 2015 11:28:49 +0000 (12:28 +0100)]
Use shell for globbing in clean.

9 years agoAll commands run should be checked.
Tim 'mithro' Ansell [Wed, 12 Aug 2015 11:28:48 +0000 (12:28 +0100)]
All commands run should be checked.

9 years agotools/flterm.py: some cleanup and fix last frame data that was not transmitted
Florent Kermarrec [Wed, 12 Aug 2015 09:41:08 +0000 (11:41 +0200)]
tools/flterm.py: some cleanup and fix last frame data that was not transmitted

9 years agounwinder: update.
whitequark [Mon, 10 Aug 2015 13:23:02 +0000 (16:23 +0300)]
unwinder: update.

9 years agomigen/flow/actor: fix sop/eop validation in PipelinedActor (stb can be inactive when...
Florent Kermarrec [Sun, 9 Aug 2015 17:53:50 +0000 (19:53 +0200)]
migen/flow/actor: fix sop/eop validation in PipelinedActor (stb can be inactive when pipe_ce is active)

9 years agolibdyld: add const qualifiers.
whitequark [Sat, 8 Aug 2015 12:21:09 +0000 (15:21 +0300)]
libdyld: add const qualifiers.

9 years agolibbase: add const qualifiers.
whitequark [Sat, 8 Aug 2015 09:16:27 +0000 (12:16 +0300)]
libbase: add const qualifiers.

9 years agolibdyld: all ELF relocations may refer to the current object.
whitequark [Fri, 7 Aug 2015 08:05:28 +0000 (11:05 +0300)]
libdyld: all ELF relocations may refer to the current object.

9 years agoliteeth/phy: rename rgmii to s6rgmii since specific to Spartan6
Florent Kermarrec [Wed, 5 Aug 2015 08:33:08 +0000 (10:33 +0200)]
liteeth/phy: rename rgmii to s6rgmii since specific to Spartan6

Also remove autodetection support for RGMII. For it to work we would need to pass the device we are building for.

9 years agoliteeth: add rgmii phy
Florent Kermarrec [Tue, 4 Aug 2015 22:50:55 +0000 (00:50 +0200)]
liteeth: add rgmii phy

9 years agoPort fpgalink_programmer to use newer fl library.
Ryan Verner [Mon, 3 Aug 2015 12:31:26 +0000 (22:31 +1000)]
Port fpgalink_programmer to use newer fl library.

  * See change in https://github.com/makestuff/libfpgalink/commit/2074e51a334f5a5c2ea78f4919d01b379d4ba2ef

9 years agosdram/phy/s6ddrphy: add DDR3 support
Florent Kermarrec [Tue, 4 Aug 2015 09:20:27 +0000 (11:20 +0200)]
sdram/phy/s6ddrphy: add DDR3 support

9 years agosdram/phy/initsequence: add burst chop 4 (BC4) for DDR3
Florent Kermarrec [Tue, 4 Aug 2015 09:18:28 +0000 (11:18 +0200)]
sdram/phy/initsequence: add burst chop 4 (BC4) for DDR3

This is needed for half rate controllers with burst length of 4.
For best efficiency quarter rate controllers should be used.

9 years agolibunwind: build with -DNDEBUG.
whitequark [Sun, 2 Aug 2015 03:25:40 +0000 (06:25 +0300)]
libunwind: build with -DNDEBUG.

9 years agodyld: style
Sebastien Bourdeauducq [Sun, 2 Aug 2015 04:35:48 +0000 (12:35 +0800)]
dyld: style

9 years agolibdyld: handle existing but undefined symbols during lookup.
whitequark [Sun, 2 Aug 2015 02:49:15 +0000 (05:49 +0300)]
libdyld: handle existing but undefined symbols during lookup.

9 years agolibdyld: R_*_RELATIVE never specify a symbol.
whitequark [Sun, 2 Aug 2015 02:29:23 +0000 (05:29 +0300)]
libdyld: R_*_RELATIVE never specify a symbol.

9 years agolibdyld: handle unaligned relocations.
whitequark [Sat, 1 Aug 2015 17:26:27 +0000 (20:26 +0300)]
libdyld: handle unaligned relocations.

9 years agounwinder: update.
whitequark [Sat, 1 Aug 2015 17:16:59 +0000 (20:16 +0300)]
unwinder: update.

9 years agolibdyld: add support for R_OR1K_{NONE,32,GLOB_DAT}.
whitequark [Sat, 1 Aug 2015 17:16:10 +0000 (20:16 +0300)]
libdyld: add support for R_OR1K_{NONE,32,GLOB_DAT}.

9 years agolibbase: also pass exception PC and EA to exception handler.
whitequark [Sat, 1 Aug 2015 17:15:42 +0000 (20:15 +0300)]
libbase: also pass exception PC and EA to exception handler.

9 years agolibbase: downstream users should provide fprintf.
whitequark [Sat, 1 Aug 2015 17:14:09 +0000 (20:14 +0300)]
libbase: downstream users should provide fprintf.

9 years agolibdyld: fix dyld_lookup algorithm.
whitequark [Sat, 1 Aug 2015 14:21:31 +0000 (17:21 +0300)]
libdyld: fix dyld_lookup algorithm.

9 years agolibdyld: fix DT_HASH address calculation.
whitequark [Sat, 1 Aug 2015 12:48:56 +0000 (15:48 +0300)]
libdyld: fix DT_HASH address calculation.

9 years agosoftware/common.mak: use PYTHON env var
Sebastien Bourdeauducq [Fri, 31 Jul 2015 10:31:04 +0000 (18:31 +0800)]
software/common.mak: use PYTHON env var

9 years agotry to use the new anaconda-client
Sebastien Bourdeauducq [Fri, 31 Jul 2015 05:46:28 +0000 (13:46 +0800)]
try to use the new anaconda-client

9 years agoExport _cache_init from crt0.S.
whitequark [Thu, 30 Jul 2015 23:40:52 +0000 (02:40 +0300)]
Export _cache_init from crt0.S.

9 years agoImplement a dynamic linker.
whitequark [Thu, 30 Jul 2015 23:38:20 +0000 (02:38 +0300)]
Implement a dynamic linker.

9 years agoUpdate libunwind submodule.
whitequark [Thu, 30 Jul 2015 23:35:30 +0000 (02:35 +0300)]
Update libunwind submodule.

9 years agobios/sdram: fix error_cnt computation in memtest
Florent Kermarrec [Thu, 30 Jul 2015 21:55:31 +0000 (23:55 +0200)]
bios/sdram: fix error_cnt computation in memtest

9 years agolibbase: define intptr_t.
whitequark [Thu, 30 Jul 2015 07:55:12 +0000 (10:55 +0300)]
libbase: define intptr_t.

9 years agoEnable ror, ffl1 and addc for OR1K.
whitequark [Thu, 30 Jul 2015 07:55:01 +0000 (10:55 +0300)]
Enable ror, ffl1 and addc for OR1K.

9 years agoMake sure the BIOS file ends on an aligned boundary.
whitequark [Wed, 29 Jul 2015 09:30:57 +0000 (12:30 +0300)]
Make sure the BIOS file ends on an aligned boundary.

If it does not, the address to which mkmscimg.py writes the CRC
and the address from which it is read could differ.

9 years agoDon't build base libraries and BIOS with -fPIC after all.
whitequark [Wed, 29 Jul 2015 09:09:05 +0000 (12:09 +0300)]
Don't build base libraries and BIOS with -fPIC after all.

9 years agoise: do not use LCK_cycle:6 by default
Sebastien Bourdeauducq [Wed, 29 Jul 2015 03:09:42 +0000 (11:09 +0800)]
ise: do not use LCK_cycle:6 by default

9 years agomor1kx: enable ADDC, CMOV and FFL1 instructions
Sebastien Bourdeauducq [Tue, 28 Jul 2015 16:08:21 +0000 (00:08 +0800)]
mor1kx: enable ADDC, CMOV and FFL1 instructions

9 years agosoc: increase default BIOS size
Sebastien Bourdeauducq [Tue, 28 Jul 2015 14:36:42 +0000 (22:36 +0800)]
soc: increase default BIOS size

9 years agoMerge branch 'master' of https://github.com/m-labs/misoc
Florent Kermarrec [Tue, 28 Jul 2015 09:59:48 +0000 (11:59 +0200)]
Merge branch 'master' of https://github.com/m-labs/misoc

9 years agoupdate lm32 with "Switch to -fPIC" changes.
Florent Kermarrec [Tue, 28 Jul 2015 09:11:11 +0000 (11:11 +0200)]
update lm32 with "Switch to -fPIC" changes.

9 years agoPass -integrated-as to clang.
whitequark [Tue, 28 Jul 2015 08:51:28 +0000 (11:51 +0300)]
Pass -integrated-as to clang.

This avoids misdetection of target assembler by clang.

9 years agopipistrello: fix cts/rts
Robert Jordens [Tue, 28 Jul 2015 03:46:19 +0000 (21:46 -0600)]
pipistrello: fix cts/rts

* use the same perspective as for tx/rx (flipped w.r.t. the ftdi chip)
* add pullups in case target or host attempt to use handshaking

9 years agoplatforms/kc705: add GPIO SMA
Sebastien Bourdeauducq [Mon, 27 Jul 2015 16:19:39 +0000 (00:19 +0800)]
platforms/kc705: add GPIO SMA

9 years agoresetless -> reset_less
Sebastien Bourdeauducq [Mon, 27 Jul 2015 03:46:11 +0000 (11:46 +0800)]
resetless -> reset_less

9 years agofhdl: allow use of ResetSignal() on resetless clock domains
Sebastien Bourdeauducq [Sun, 26 Jul 2015 17:51:52 +0000 (01:51 +0800)]
fhdl: allow use of ResetSignal() on resetless clock domains

9 years agoUpdate libbase/linker-sdram.ld with -fPIC support.
whitequark [Sun, 26 Jul 2015 13:15:02 +0000 (16:15 +0300)]
Update libbase/linker-sdram.ld with -fPIC support.

9 years agoSwitch to -fPIC.
whitequark [Sun, 26 Jul 2015 13:06:48 +0000 (16:06 +0300)]
Switch to -fPIC.

Using -fPIC for everything allows to link the MiSoC static libraries
both into static images such as the BIOS as well as
into shared libraries.

9 years agoRemove useless includes pulled in by libunwind.
whitequark [Sun, 26 Jul 2015 10:12:23 +0000 (13:12 +0300)]
Remove useless includes pulled in by libunwind.

These aren't used by libunwind in any configuration and
should be also removed in upstream.

9 years agoAdd libunwind.
whitequark [Sun, 26 Jul 2015 09:59:18 +0000 (12:59 +0300)]
Add libunwind.

9 years agoAdd a stub getenv() implementation.
whitequark [Sun, 26 Jul 2015 09:55:52 +0000 (12:55 +0300)]
Add a stub getenv() implementation.

This is not strictly necessary to build libunwind (it can
be built with -DNDEBUG), but it will be handy while it is
debugged.

It can be removed afterwards.

9 years agoAdd a stub pthread header.
whitequark [Sun, 26 Jul 2015 09:54:40 +0000 (12:54 +0300)]
Add a stub pthread header.

The header implements only the pthread rwlock interface, which
never actually locks.

This is necessary to build libunwind.

9 years agoAdd headers for the dynamic linker interface.
whitequark [Sun, 26 Jul 2015 09:53:18 +0000 (12:53 +0300)]
Add headers for the dynamic linker interface.

These are required for libunwind to discover
the exception frame headers.

9 years agoAdd a stub C++ standard library.
whitequark [Sun, 26 Jul 2015 09:49:02 +0000 (12:49 +0300)]
Add a stub C++ standard library.

This is necessary to build libunwind.

9 years agoAdd basic inttypes.h.
whitequark [Sun, 26 Jul 2015 09:44:13 +0000 (12:44 +0300)]
Add basic inttypes.h.

This is taken from glibc. Only PRI* definitions are imported;
functions are not.