litex.git
11 years agotftp.c: use symbolic constants for protocol opcodes
Werner Almesberger [Tue, 16 Apr 2013 16:55:21 +0000 (13:55 -0300)]
tftp.c: use symbolic constants for protocol opcodes

11 years agomicroudp.c: avoid redundant accesses into multi-level structures
Werner Almesberger [Tue, 16 Apr 2013 16:55:20 +0000 (13:55 -0300)]
microudp.c: avoid redundant accesses into multi-level structures

11 years agoChange license to 2-clause BSD
Sebastien Bourdeauducq [Mon, 15 Apr 2013 21:55:30 +0000 (23:55 +0200)]
Change license to 2-clause BSD

11 years agoupdate README
Florent Kermarrec [Mon, 15 Apr 2013 14:26:49 +0000 (16:26 +0200)]
update README

11 years agoadapt to new CSR API
Florent Kermarrec [Sun, 14 Apr 2013 16:23:37 +0000 (18:23 +0200)]
adapt to new CSR API

11 years agodvisampler/chansync: use Record.raw_bits()
Sebastien Bourdeauducq [Sun, 14 Apr 2013 15:06:29 +0000 (17:06 +0200)]
dvisampler/chansync: use Record.raw_bits()

11 years agodvisampler/clocking: insert DCM_CLKGEN before PLL
Sebastien Bourdeauducq [Sun, 14 Apr 2013 14:53:19 +0000 (16:53 +0200)]
dvisampler/clocking: insert DCM_CLKGEN before PLL

11 years agosoftware/videomixer: use new csr.h
Sebastien Bourdeauducq [Sun, 14 Apr 2013 14:33:00 +0000 (16:33 +0200)]
software/videomixer: use new csr.h

11 years agobus/csr/SRAM: fix Module conversion errors
Sebastien Bourdeauducq [Sun, 14 Apr 2013 11:55:04 +0000 (13:55 +0200)]
bus/csr/SRAM: fix Module conversion errors

11 years agofhdl: support len() on all values
Sebastien Bourdeauducq [Sun, 14 Apr 2013 11:50:26 +0000 (13:50 +0200)]
fhdl: support len() on all values

11 years agoedid.py: sample SCL only every 64 clock cycles, to avoid bouncing
Werner Almesberger [Fri, 12 Apr 2013 20:38:31 +0000 (17:38 -0300)]
edid.py: sample SCL only every 64 clock cycles, to avoid bouncing

Possibly due to SCL rising fairly slowly (in the 0.5-1 us range),
bouncing has been observed while crossing the "forbidden" region
between Vil(max) and Vih(min).

By lowering the sample rate from once per system clock to once
every 64 clock cycles, we make sure we sample at most once during
the bounce interval and thus never see a false edge. (Although we
may see a rising edge one sample time late, which is perfectly
harmless.)

11 years agomibuild: define memory card pins of the Milkymist One platorm
Werner Almesberger [Fri, 12 Apr 2013 00:37:28 +0000 (21:37 -0300)]
mibuild: define memory card pins of the Milkymist One platorm

This patch adds the memory card pins to the M1 platform definition in
mibuild.

I've tentatively named them "mmc". As far as I can tell, "MMC" is not
trademarked ("MultiMediaCard" the new "eMMC" would be), and "MMC" is
commonly used in the industry in a descriptive way to refer to this
sort of interface.

The original Verilog-based M1 calls the interface "mc", but since
several names have changed between milkymist and -ng, I thought I'd
use a more familiar name.

Usage example (clock signal divided by powers of two on the MMC TPs):
https://github.com/wpwrak/ming-ddc-debug/blob/counter-on-mmc/build.py

- Werner

11 years agofhdl/verilog/_printinit: initialize undriven Special inputs (bug reported by Florent...
Sebastien Bourdeauducq [Thu, 11 Apr 2013 16:55:49 +0000 (18:55 +0200)]
fhdl/verilog/_printinit: initialize undriven Special inputs (bug reported by Florent Kermarrec)

11 years agoioo+pytholite: use new Module API
Sebastien Bourdeauducq [Wed, 10 Apr 2013 21:42:46 +0000 (23:42 +0200)]
ioo+pytholite: use new Module API

11 years agofhdl/visit: add TransformModule
Sebastien Bourdeauducq [Wed, 10 Apr 2013 21:42:14 +0000 (23:42 +0200)]
fhdl/visit: add TransformModule

11 years agoioo: move to genlib
Sebastien Bourdeauducq [Wed, 10 Apr 2013 20:28:53 +0000 (22:28 +0200)]
ioo: move to genlib

11 years agouio: remove Trampoline (Python 3.3 provides generator delegation instead)
Sebastien Bourdeauducq [Wed, 10 Apr 2013 20:15:28 +0000 (22:15 +0200)]
uio: remove Trampoline (Python 3.3 provides generator delegation instead)

11 years agoframebuffer: use new flow API
Sebastien Bourdeauducq [Wed, 10 Apr 2013 19:34:15 +0000 (21:34 +0200)]
framebuffer: use new flow API

11 years agoflow: match record fields by position
Sebastien Bourdeauducq [Wed, 10 Apr 2013 19:33:56 +0000 (21:33 +0200)]
flow: match record fields by position

11 years agogenlib/record/connect: add match_by_position
Sebastien Bourdeauducq [Wed, 10 Apr 2013 19:33:45 +0000 (21:33 +0200)]
genlib/record/connect: add match_by_position

11 years agoflow: use Module and new Record APIs
Sebastien Bourdeauducq [Wed, 10 Apr 2013 17:12:42 +0000 (19:12 +0200)]
flow: use Module and new Record APIs

11 years agoplatforms: add Papilio Pro
Sebastien Bourdeauducq [Mon, 8 Apr 2013 18:28:23 +0000 (20:28 +0200)]
platforms: add Papilio Pro

11 years agocrg: apply constraint to IO pins, not internal signals
Sebastien Bourdeauducq [Mon, 8 Apr 2013 18:28:11 +0000 (20:28 +0200)]
crg: apply constraint to IO pins, not internal signals

11 years agoadd stb signal
Florent Kermarrec [Tue, 2 Apr 2013 19:13:21 +0000 (21:13 +0200)]
add stb signal

11 years agodfii: adapt to new Record API
Sebastien Bourdeauducq [Mon, 1 Apr 2013 22:15:42 +0000 (00:15 +0200)]
dfii: adapt to new Record API

11 years agoflow: adapt to new Record API
Sebastien Bourdeauducq [Mon, 1 Apr 2013 20:15:23 +0000 (22:15 +0200)]
flow: adapt to new Record API

11 years agobus: replace simple bus module with new bidirectional Record
Sebastien Bourdeauducq [Mon, 1 Apr 2013 19:54:21 +0000 (21:54 +0200)]
bus: replace simple bus module with new bidirectional Record

11 years agoNew bidirectional-capable Record API
Sebastien Bourdeauducq [Mon, 1 Apr 2013 19:53:33 +0000 (21:53 +0200)]
New bidirectional-capable Record API

11 years agoNew CSR API
Sebastien Bourdeauducq [Sat, 30 Mar 2013 16:28:41 +0000 (17:28 +0100)]
New CSR API

11 years agoConvert to new CSR API
Sebastien Bourdeauducq [Sat, 30 Mar 2013 16:28:15 +0000 (17:28 +0100)]
Convert to new CSR API

11 years agofhdl/module/finalize: pass additional args to do_finalize
Sebastien Bourdeauducq [Sat, 30 Mar 2013 10:29:46 +0000 (11:29 +0100)]
fhdl/module/finalize: pass additional args to do_finalize

11 years agoframebuffer: larger counters
Sebastien Bourdeauducq [Fri, 29 Mar 2013 16:15:11 +0000 (17:15 +0100)]
framebuffer: larger counters

11 years agom1crg: reset VGA clock generator
Sebastien Bourdeauducq [Fri, 29 Mar 2013 16:14:48 +0000 (17:14 +0100)]
m1crg: reset VGA clock generator

11 years agoframebuffer: process two pixels per system clock cycle
Sebastien Bourdeauducq [Thu, 28 Mar 2013 19:46:16 +0000 (20:46 +0100)]
framebuffer: process two pixels per system clock cycle

11 years agotop: allocate one more ASMI port to framebuffer
Sebastien Bourdeauducq [Thu, 28 Mar 2013 19:46:00 +0000 (20:46 +0100)]
top: allocate one more ASMI port to framebuffer

11 years agom1crg: allow up to 150MHz pixel clock
Sebastien Bourdeauducq [Thu, 28 Mar 2013 19:45:42 +0000 (20:45 +0100)]
m1crg: allow up to 150MHz pixel clock

11 years agocrg: support VGA pixel clock reprogramming
Sebastien Bourdeauducq [Thu, 28 Mar 2013 18:07:17 +0000 (19:07 +0100)]
crg: support VGA pixel clock reprogramming

11 years agocrg: use new platform.request
Sebastien Bourdeauducq [Tue, 26 Mar 2013 22:08:35 +0000 (23:08 +0100)]
crg: use new platform.request

11 years agoaltera_quartus: fix clock domain name
Sebastien Bourdeauducq [Tue, 26 Mar 2013 22:05:46 +0000 (23:05 +0100)]
altera_quartus: fix clock domain name

11 years agoadapt to mibuild & migen changes
Florent Kermarrec [Tue, 26 Mar 2013 21:14:25 +0000 (22:14 +0100)]
adapt to mibuild & migen changes

11 years agoSupport for platform info
Sebastien Bourdeauducq [Tue, 26 Mar 2013 18:17:35 +0000 (19:17 +0100)]
Support for platform info

11 years agoUse new Mibuild generic_platform API
Sebastien Bourdeauducq [Tue, 26 Mar 2013 16:57:17 +0000 (17:57 +0100)]
Use new Mibuild generic_platform API

11 years agogeneric_platform: remove obj in request + add lookup_request
Sebastien Bourdeauducq [Tue, 26 Mar 2013 16:56:53 +0000 (17:56 +0100)]
generic_platform: remove obj in request + add lookup_request

11 years agofhdl/specials: clean up clock domain handling
Sebastien Bourdeauducq [Tue, 26 Mar 2013 10:58:34 +0000 (11:58 +0100)]
fhdl/specials: clean up clock domain handling

11 years agoframebuffer: RGBA -> ARGB
Sebastien Bourdeauducq [Mon, 25 Mar 2013 17:32:25 +0000 (18:32 +0100)]
framebuffer: RGBA -> ARGB

11 years agofb: better ordering of pixels within ASMI words
Sebastien Bourdeauducq [Mon, 25 Mar 2013 14:56:54 +0000 (15:56 +0100)]
fb: better ordering of pixels within ASMI words

11 years agoactorlib/structuring/Cast: support inversion
Sebastien Bourdeauducq [Mon, 25 Mar 2013 14:54:09 +0000 (15:54 +0100)]
actorlib/structuring/Cast: support inversion

11 years agobank/csrgen/BankArray: retain name information
Sebastien Bourdeauducq [Mon, 25 Mar 2013 13:44:15 +0000 (14:44 +0100)]
bank/csrgen/BankArray: retain name information

11 years agobank/description/Register: add get_size
Sebastien Bourdeauducq [Mon, 25 Mar 2013 13:43:44 +0000 (14:43 +0100)]
bank/description/Register: add get_size

11 years agoAutomatically build CSR access functions
Sebastien Bourdeauducq [Mon, 25 Mar 2013 13:42:48 +0000 (14:42 +0100)]
Automatically build CSR access functions

11 years agosoftware/include/base: C++ compatibility
Sebastien Bourdeauducq [Mon, 25 Mar 2013 13:38:58 +0000 (14:38 +0100)]
software/include/base: C++ compatibility

11 years agosoftware/common.mak: add C++ definitions
Sebastien Bourdeauducq [Sun, 24 Mar 2013 15:11:53 +0000 (16:11 +0100)]
software/common.mak: add C++ definitions

11 years agogenlib/record: use getattr instead of __dict__
Sebastien Bourdeauducq [Sat, 23 Mar 2013 23:51:01 +0000 (00:51 +0100)]
genlib/record: use getattr instead of __dict__

11 years agogenlib/record: add eq
Sebastien Bourdeauducq [Sat, 23 Mar 2013 23:50:33 +0000 (00:50 +0100)]
genlib/record: add eq

11 years agosoftware/videomixer: report char position + detected resolution, detect phase at...
Sebastien Bourdeauducq [Sat, 23 Mar 2013 23:46:23 +0000 (00:46 +0100)]
software/videomixer: report char position + detected resolution, detect phase at beginning

11 years agodvisampler: add resolution detection
Sebastien Bourdeauducq [Sat, 23 Mar 2013 23:45:29 +0000 (00:45 +0100)]
dvisampler: add resolution detection

11 years agodvisampler/charsync: report position
Sebastien Bourdeauducq [Sat, 23 Mar 2013 23:44:50 +0000 (00:44 +0100)]
dvisampler/charsync: report position

11 years agodvisampler/decoding: set C to 0 during data
Sebastien Bourdeauducq [Sat, 23 Mar 2013 23:44:19 +0000 (00:44 +0100)]
dvisampler/decoding: set C to 0 during data

11 years agodvisampler/charsync: fix found_control signal
Sebastien Bourdeauducq [Sat, 23 Mar 2013 23:43:22 +0000 (00:43 +0100)]
dvisampler/charsync: fix found_control signal

11 years agosoftware/stddef.h: c++ compat for NULL
Sebastien Bourdeauducq [Sat, 23 Mar 2013 23:17:42 +0000 (00:17 +0100)]
software/stddef.h: c++ compat for NULL

11 years agoadd Run Length Encoding
Florent Kermarrec [Sat, 23 Mar 2013 12:57:59 +0000 (13:57 +0100)]
add Run Length Encoding

11 years agoxilinx_ise: fix clock domain names
Sebastien Bourdeauducq [Sat, 23 Mar 2013 18:37:16 +0000 (19:37 +0100)]
xilinx_ise: fix clock domain names

11 years agodvisampler: clean up EDID data
Sebastien Bourdeauducq [Sat, 23 Mar 2013 12:48:40 +0000 (13:48 +0100)]
dvisampler: clean up EDID data

11 years agoremove doc (to be re-written)
Florent Kermarrec [Sat, 23 Mar 2013 11:28:18 +0000 (12:28 +0100)]
remove doc (to be re-written)

11 years agosimplify recorder
Florent Kermarrec [Sat, 23 Mar 2013 11:26:22 +0000 (12:26 +0100)]
simplify recorder

11 years agodvisampler: decode before channel sync
Sebastien Bourdeauducq [Fri, 22 Mar 2013 22:49:25 +0000 (23:49 +0100)]
dvisampler: decode before channel sync

11 years agodvisampler: decoding
Sebastien Bourdeauducq [Fri, 22 Mar 2013 20:28:17 +0000 (21:28 +0100)]
dvisampler: decoding

11 years agodvisampler: channel synchronization
Sebastien Bourdeauducq [Fri, 22 Mar 2013 17:37:10 +0000 (18:37 +0100)]
dvisampler: channel synchronization

11 years agogenlib/fifo: simple synchronous FIFO
Sebastien Bourdeauducq [Fri, 22 Mar 2013 17:18:38 +0000 (18:18 +0100)]
genlib/fifo: simple synchronous FIFO

11 years agofhdl/module: support clock domain remapping of submodules
Sebastien Bourdeauducq [Fri, 22 Mar 2013 17:17:54 +0000 (18:17 +0100)]
fhdl/module: support clock domain remapping of submodules

11 years agoclean up
Florent Kermarrec [Fri, 22 Mar 2013 12:50:16 +0000 (13:50 +0100)]
clean up

11 years agoupdate driver api
Florent Kermarrec [Fri, 22 Mar 2013 11:35:12 +0000 (12:35 +0100)]
update driver api

11 years agoclean up/fixes
Florent Kermarrec [Thu, 21 Mar 2013 11:23:44 +0000 (12:23 +0100)]
clean up/fixes

11 years agodvisampler: character synchronization
Sebastien Bourdeauducq [Thu, 21 Mar 2013 21:56:13 +0000 (22:56 +0100)]
dvisampler: character synchronization

11 years agodvisampler/datacapture: deserialize to 10 bits
Sebastien Bourdeauducq [Thu, 21 Mar 2013 18:06:15 +0000 (19:06 +0100)]
dvisampler/datacapture: deserialize to 10 bits

11 years agodvisampler/clocking: generate pix reset
Sebastien Bourdeauducq [Thu, 21 Mar 2013 18:02:04 +0000 (19:02 +0100)]
dvisampler/clocking: generate pix reset

11 years agosoftware/videomixer: quick hack for phase detection
Sebastien Bourdeauducq [Thu, 21 Mar 2013 14:32:26 +0000 (15:32 +0100)]
software/videomixer: quick hack for phase detection

11 years agofix uart2Csr and update miio example
Florent Kermarrec [Mon, 18 Mar 2013 22:57:51 +0000 (23:57 +0100)]
fix uart2Csr and update miio example

11 years agosoftware: add videomixer base files
Sebastien Bourdeauducq [Thu, 21 Mar 2013 09:42:31 +0000 (10:42 +0100)]
software: add videomixer base files

11 years agosoftware/bios: change boot order
Sebastien Bourdeauducq [Thu, 21 Mar 2013 09:41:56 +0000 (10:41 +0100)]
software/bios: change boot order

11 years agogenlib/cdc/MultiReg: output clock domain defaults to sys
Sebastien Bourdeauducq [Thu, 21 Mar 2013 09:40:02 +0000 (10:40 +0100)]
genlib/cdc/MultiReg: output clock domain defaults to sys

11 years agodvisampler: software controlled phase detector
Sebastien Bourdeauducq [Wed, 20 Mar 2013 23:46:29 +0000 (00:46 +0100)]
dvisampler: software controlled phase detector

11 years agoexamples/sim/fir: convert to new API
Sebastien Bourdeauducq [Tue, 19 Mar 2013 10:46:27 +0000 (11:46 +0100)]
examples/sim/fir: convert to new API

11 years agoupdate de0nano example/ remove de1 (wip)
Florent Kermarrec [Mon, 18 Mar 2013 22:03:52 +0000 (23:03 +0100)]
update de0nano example/ remove de1 (wip)

11 years agoAdd uart2csr
Florent Kermarrec [Mon, 18 Mar 2013 20:45:07 +0000 (21:45 +0100)]
Add uart2csr

11 years agodvisampler/clocking: proper pix5x reset synchronization
Sebastien Bourdeauducq [Mon, 18 Mar 2013 19:31:59 +0000 (20:31 +0100)]
dvisampler/clocking: proper pix5x reset synchronization

11 years agodvisampler: use pix5x as IODELAY clock
Sebastien Bourdeauducq [Mon, 18 Mar 2013 18:03:17 +0000 (19:03 +0100)]
dvisampler: use pix5x as IODELAY clock

11 years agofhdl/verilog: optionally disable clock domain creation
Sebastien Bourdeauducq [Mon, 18 Mar 2013 17:45:19 +0000 (18:45 +0100)]
fhdl/verilog: optionally disable clock domain creation

11 years agogeneric_platform: do not create clock domains during Verilog conversion
Sebastien Bourdeauducq [Mon, 18 Mar 2013 17:44:58 +0000 (18:44 +0100)]
generic_platform: do not create clock domains during Verilog conversion

11 years agoexamples/basic/arrays: demonstrate lowering of Array in Instance expression
Sebastien Bourdeauducq [Mon, 18 Mar 2013 17:37:23 +0000 (18:37 +0100)]
examples/basic/arrays: demonstrate lowering of Array in Instance expression

11 years agoLowering of Special expressions + support ClockSignal/ResetSignal
Sebastien Bourdeauducq [Mon, 18 Mar 2013 17:36:50 +0000 (18:36 +0100)]
Lowering of Special expressions + support ClockSignal/ResetSignal

11 years agoUse Instance.Input(..., ClockSignal/ResetSignal) instead of Instance.ClockPort/ResetPort
Sebastien Bourdeauducq [Mon, 18 Mar 2013 16:44:01 +0000 (17:44 +0100)]
Use Instance.Input(..., ClockSignal/ResetSignal) instead of Instance.ClockPort/ResetPort

11 years agofhdl/tools/_ArrayLowerer: complete support for arrays as targets
Sebastien Bourdeauducq [Mon, 18 Mar 2013 13:38:01 +0000 (14:38 +0100)]
fhdl/tools/_ArrayLowerer: complete support for arrays as targets

11 years agofhdl/tools/value_bits_sign: support not
Sebastien Bourdeauducq [Mon, 18 Mar 2013 08:52:43 +0000 (09:52 +0100)]
fhdl/tools/value_bits_sign: support not

11 years agom1crg: set CLKIN_PERIOD for vga_clock_gen
Sebastien Bourdeauducq [Sun, 17 Mar 2013 19:16:58 +0000 (20:16 +0100)]
m1crg: set CLKIN_PERIOD for vga_clock_gen

11 years agodvisampler/datacapture: connect IODELAY IOCLK0
Sebastien Bourdeauducq [Sun, 17 Mar 2013 16:42:22 +0000 (17:42 +0100)]
dvisampler/datacapture: connect IODELAY IOCLK0

11 years agodvisampler/datacapture: fix tap counter reg
Sebastien Bourdeauducq [Sun, 17 Mar 2013 16:36:49 +0000 (17:36 +0100)]
dvisampler/datacapture: fix tap counter reg

11 years agodvisampler: fixes
Sebastien Bourdeauducq [Sun, 17 Mar 2013 14:41:50 +0000 (15:41 +0100)]
dvisampler: fixes

11 years agofhdl/structure: style fix
Sebastien Bourdeauducq [Sun, 17 Mar 2013 14:33:38 +0000 (15:33 +0100)]
fhdl/structure: style fix

11 years agoMerge pull request #6 from larsclausen/master
Sébastien Bourdeauducq [Sun, 17 Mar 2013 14:33:14 +0000 (07:33 -0700)]
Merge pull request #6 from larsclausen/master

Minor improvements