Ivan Grokhotkov [Mon, 8 Jun 2020 21:24:46 +0000 (23:24 +0200)]
icestick: fix UART flow control pins.
UART flow control pins match the signal names in the schematic, but
directions are reversed. Fix by setting role=dce.
Ivan Grokhotkov [Mon, 8 Jun 2020 21:23:42 +0000 (23:23 +0200)]
[breaking-change] ice40_hx8k_b_evn: fix UART flow control pins.
RTS/CTS and DTR/DSR pairs have been swapped to work around the signal
direction in UARTResource. Un-reverse the signals, making the names
match the schematic. Fix the direction by setting role=dce.
Ref. http://www.latticesemi.com/view_document?document_id=50373
Ivan Grokhotkov [Mon, 8 Jun 2020 21:21:33 +0000 (23:21 +0200)]
de0: fix UART RTS/CTS direction.
RTS and CTS match the schematic, but the direction is incorrect:
CTS is output, RTS is input. Fix by setting role=dce.
Ref. https://www.intel.com/content/dam/altera-www/global/en_US/portal/dsn/42/doc-us-dsnbk-42-
5804152209-de0-user-manual.pdf
Ivan Grokhotkov [Mon, 8 Jun 2020 21:19:24 +0000 (23:19 +0200)]
[breaking-change] nexys4ddr: fix UART RTS/CTS pins.
According to the schematic, RTS is E5 and CTS is D3. Previously these
were reversed to work around signal direction set in UARTResource.
Un-reverse the signals, and set correct direction by passing role=dce.
Ref. https://reference.digilentinc.com/_media/nexys4-ddr:nexys_4_ddr_sch.pdf
Ivan Grokhotkov [Mon, 8 Jun 2020 21:17:11 +0000 (23:17 +0200)]
[breaking-change] blackice: remove UART RTS/CTS signals.
According to the schematic, RTS and CTS are not connected to CH340G in
this version of the board.
Ref. https://github.com/monsonite/BackIce_FPGA/blob/master/BlackIce18_07_01D.pdf
and https://forum.mystorm.uk/uploads/default/original/1X/
a5db1ce1c9bc2d91e63cfdc8424d699c2419a3d0.png
Ivan Grokhotkov [Mon, 8 Jun 2020 21:13:28 +0000 (23:13 +0200)]
blackice_ii: fix UART RTS/CTS direction.
Pin numbers match the P0/P1 signals in the schematic, but the
direction is reversed. Fix by setting role="dce".
Ref. https://github.com/mystorm-org/BlackIce-II/blob/master/hardware/BlackIce.pdf
Ivan Grokhotkov [Mon, 8 Jun 2020 21:06:11 +0000 (23:06 +0200)]
[breaking-change] resources: distinguish "dte"/"dce" roles of UART.
UARTResource gets a new argument, "role", which determines flow
control signal directions:
- DCE means that the design acts as a modem
- DTE means that the design acts as a PC
Alain Péteut [Thu, 28 May 2020 01:44:32 +0000 (03:44 +0200)]
Add Digilent Genesys2 board.
whitequark [Thu, 21 May 2020 10:40:15 +0000 (10:40 +0000)]
Update .gitignore.
Simon Kirkby [Fri, 8 May 2020 04:40:13 +0000 (12:40 +0800)]
tinyfpga_ax{1,2}: add missing `resources`.
WRansohoff [Fri, 24 Apr 2020 18:53:26 +0000 (14:53 -0400)]
Add ICE40UP5K-B-EVN.
x44203 [Mon, 13 Apr 2020 17:54:35 +0000 (19:54 +0200)]
ecp5_5g_evn: add connectors.
WRansohoff [Mon, 23 Mar 2020 01:14:44 +0000 (21:14 -0400)]
Add Upduino v1/v2.
x44203 [Fri, 20 Mar 2020 08:03:43 +0000 (09:03 +0100)]
ecp5_5g_evn: add variable IO standards and SERDES resources.
Robin Ole Heinemann [Wed, 18 Mar 2020 14:59:53 +0000 (15:59 +0100)]
zturn_lite: fix typo
Stuart Olsen [Tue, 17 Mar 2020 07:08:00 +0000 (00:08 -0700)]
nexys4ddr: enable pushbutton reset.
Stuart Olsen [Sat, 14 Mar 2020 09:02:03 +0000 (02:02 -0700)]
resources.display: Apply inversion setting to dp
Yusuf Taiwo Hassan [Thu, 12 Mar 2020 18:50:15 +0000 (19:50 +0100)]
Ad DE10-Lite.
Joshua Koike [Mon, 10 Feb 2020 01:24:54 +0000 (17:24 -0800)]
Add Alchitry Au board definition.
whitequark [Sun, 9 Feb 2020 17:03:19 +0000 (17:03 +0000)]
setup: update project URLs.
whitequark [Thu, 6 Feb 2020 21:59:42 +0000 (21:59 +0000)]
versa_ecp5: fix switch{4..7} IO_TYPE.
Jean THOMAS [Mon, 3 Feb 2020 06:52:26 +0000 (07:52 +0100)]
Add Fomu PVT support.
Nicolas Robin [Sat, 18 Jan 2020 22:08:12 +0000 (23:08 +0100)]
artyz7: fix attribute name.
Nicolas Robin [Fri, 17 Jan 2020 21:54:48 +0000 (22:54 +0100)]
Add Digilent Arty Z7-20 board.
Nicolas Robin [Wed, 15 Jan 2020 17:35:57 +0000 (18:35 +0100)]
Add Digilent Nexys 4 DDR board.
Nicolas Robin [Mon, 13 Jan 2020 18:54:23 +0000 (19:54 +0100)]
blinky: replace deprecated Signal(max=...) (#42)
Nicolas Robin [Sun, 12 Jan 2020 10:33:46 +0000 (11:33 +0100)]
ice40_hx8k_b_evn: fix swapped DTR/DSR
Nicolas Robin [Sun, 12 Jan 2020 00:10:25 +0000 (01:10 +0100)]
ice40_hx8k_b_evn: fix swapped RTS/CTS
whitequark [Tue, 31 Dec 2019 09:56:29 +0000 (09:56 +0000)]
Add Lattice ECP5-5G Evaluation Board stub.
Dan Ravensloft [Sat, 30 Nov 2019 21:26:54 +0000 (21:26 +0000)]
mister: fix SD card typo
Ezekiel Bethel [Thu, 28 Nov 2019 16:32:36 +0000 (16:32 +0000)]
tinyfpga_bx: fix definition of io pin 17
Staf Verhaegen [Fri, 25 Oct 2019 10:18:44 +0000 (12:18 +0200)]
[breaking-change] Atlys: use reset button as reset
Dan Ravensloft [Fri, 25 Oct 2019 09:20:20 +0000 (10:20 +0100)]
Add DE10-Nano-based MiSTer.
whitequark [Sun, 13 Oct 2019 13:04:15 +0000 (13:04 +0000)]
resources.memory: fix typo.
whitequark [Fri, 11 Oct 2019 14:49:34 +0000 (14:49 +0000)]
[breaking-change] icebreaker: update leftover user_* resources.
whitequark [Fri, 11 Oct 2019 14:44:19 +0000 (14:44 +0000)]
[breaking-change] mercury: update leftover user_btn resources.
whitequark [Fri, 11 Oct 2019 14:46:30 +0000 (14:46 +0000)]
resources: add conn= argument to every factory.
whitequark [Thu, 10 Oct 2019 16:37:26 +0000 (16:37 +0000)]
Add KCU105 board stub.
whitequark [Thu, 10 Oct 2019 15:38:03 +0000 (15:38 +0000)]
Add TinyFPGA AX{1,2} boards.
whitequark [Thu, 10 Oct 2019 12:02:33 +0000 (12:02 +0000)]
de0cv→de0_cv, for consistency with de10_nano
whitequark [Thu, 10 Oct 2019 11:44:55 +0000 (11:44 +0000)]
de10_nano: fix programming.
Dan Ravensloft [Thu, 10 Oct 2019 10:54:48 +0000 (11:54 +0100)]
Add Terasic DE10-Nano (#32)
whitequark [Wed, 9 Oct 2019 22:40:29 +0000 (22:40 +0000)]
de0{,cv}: {Altera→Intel}Platform
whitequark [Wed, 9 Oct 2019 22:38:45 +0000 (22:38 +0000)]
test.blinky: invert LED status when button/switch is active.
Allows testing buttons/switches as well.
whitequark [Fri, 4 Oct 2019 07:00:52 +0000 (07:00 +0000)]
de0: fix typo.
Dan Ravensloft [Thu, 3 Oct 2019 15:06:54 +0000 (16:06 +0100)]
Add Terasic DE0-CV board.
whitequark [Thu, 3 Oct 2019 09:51:27 +0000 (09:51 +0000)]
de0: fix button polarity.
whitequark [Thu, 3 Oct 2019 09:01:42 +0000 (09:01 +0000)]
Fix typo in SDCardResources().
whitequark [Thu, 3 Oct 2019 08:42:08 +0000 (08:42 +0000)]
Add Terasic DE0.
whitequark [Thu, 3 Oct 2019 06:41:56 +0000 (06:41 +0000)]
Factor out "nor_flash" resource.
whitequark [Thu, 3 Oct 2019 06:10:53 +0000 (06:10 +0000)]
Factor out "sdram" resource.
whitequark [Thu, 3 Oct 2019 06:10:43 +0000 (06:10 +0000)]
[breaking-change] Fix polarity of "dm" signal in "memory" resource.
LB# and UB# enable writing their corresponding byte. The "m" in "dm"
means mask; that is, logical high masks (prevents) the byte from
being written. This means that it should use Pins(), not PinsN(),
to get the behavior implied by "mask".
whitequark [Thu, 3 Oct 2019 05:54:12 +0000 (05:54 +0000)]
Reorganize resource taxonomy.
The current hierarchy isn't particularly well suited to resources
like SDRAM or NOR flash, so make it much less fine-grained but easier
to use and less nitpicky.
whitequark [Thu, 3 Oct 2019 05:42:59 +0000 (05:42 +0000)]
Factor out "sd_card_{1bit,4bit,spi}" resources.
whitequark [Thu, 3 Oct 2019 03:02:44 +0000 (03:02 +0000)]
dev.display: factor out from dev.user. NFC.
whitequark [Thu, 3 Oct 2019 02:56:47 +0000 (02:56 +0000)]
[breaking-change] Factor out "display_7seg" resource.
With the expectation that "display_9seg", "display_14seg" and
"display_16seg" will be forthcoming.
There are no provisions in this resource itself for multiplexing
the display. It is expected that on boards with multiplexed displays,
an additional resource "display_7seg_ctrl" will be provided, and it
would have either an n-bit signal "sel" (binary encoded) or an n-bit
signal "en" (one-hot encoded). (This may be revisited in the future.)
Fixes #17.
whitequark [Tue, 1 Oct 2019 21:01:54 +0000 (21:01 +0000)]
Add missing __init__.py.
whitequark [Mon, 23 Sep 2019 10:11:39 +0000 (10:11 +0000)]
dev.user: fix typo.
whitequark [Mon, 23 Sep 2019 08:16:07 +0000 (08:16 +0000)]
_blinky→test.blinky
Expose blinky as a stable component, to make writing out-of-tree
board files a bit nicer.
whitequark [Mon, 23 Sep 2019 08:07:37 +0000 (08:07 +0000)]
[breaking-change] Factor out "led", "button" and "switch" resources.
These resources were renamed as:
* user_led → led
* user_btn → button
* user_sw → switch
Fixes #13.
whitequark [Sat, 21 Sep 2019 14:30:14 +0000 (14:30 +0000)]
Fix IO_STANDARD on all iCE40 boards.
SB_LVCMOS33 is not recognized by vendor tools. Use SB_LVCMOS instead.
Emily [Fri, 20 Sep 2019 14:13:14 +0000 (15:13 +0100)]
setup.py: fixes.
whitequark [Wed, 18 Sep 2019 04:25:03 +0000 (04:25 +0000)]
numato_mimas: add spi_flash#0 resource.
whitequark [Wed, 18 Sep 2019 04:23:57 +0000 (04:23 +0000)]
numato_mimas: SW* are actually buttons.
whitequark [Wed, 18 Sep 2019 04:13:22 +0000 (04:13 +0000)]
Add Numato Mimas (V1).
whitequark [Wed, 11 Sep 2019 23:26:30 +0000 (23:26 +0000)]
atlys: fix typo.
whitequark [Fri, 6 Sep 2019 05:30:35 +0000 (05:30 +0000)]
Fix .gitignore.
whitequark [Fri, 6 Sep 2019 05:24:11 +0000 (05:24 +0000)]
setup: replace versioneer with setuptools_scm.
whitequark [Fri, 30 Aug 2019 08:39:30 +0000 (08:39 +0000)]
Update iCE40 GLOBAL and PULLUP attribute to use correct types.
Robin Ole Heinemann [Sun, 18 Aug 2019 21:07:37 +0000 (23:07 +0200)]
Add ZTurn lite platform.
whitequark [Thu, 22 Aug 2019 23:00:01 +0000 (23:00 +0000)]
Add SK-XC6SLX9.
whitequark [Thu, 22 Aug 2019 21:32:26 +0000 (21:32 +0000)]
Atlys: pass extra keyword arguments to platform.
Robin Ole Heinemann [Wed, 21 Aug 2019 21:18:49 +0000 (23:18 +0200)]
Add Fomu Hacker platform.
whitequark [Wed, 21 Aug 2019 17:51:46 +0000 (17:51 +0000)]
versa_ecp5: prepare for switchable ECP5 toolchains.
William D. Jones [Tue, 13 Aug 2019 12:20:45 +0000 (08:20 -0400)]
Add Mercury platform.
Jean-François Nguyen [Wed, 7 Aug 2019 23:31:49 +0000 (01:31 +0200)]
Add Arty A7 platform.
William D. Jones [Sun, 4 Aug 2019 13:32:34 +0000 (09:32 -0400)]
Make oe in SRAMResource optional.
whitequark [Sun, 4 Aug 2019 11:14:16 +0000 (11:14 +0000)]
Use Pins/DiffPairs(assert_width) where appropriate.
Staf Verhaegen [Sun, 4 Aug 2019 11:20:37 +0000 (13:20 +0200)]
Add Digilent Atlys Spartan-6 board.
This board file was developed based on the Atlys reference manual and
the Atlys platform file from litex-buildenv.
whitequark [Sun, 4 Aug 2019 11:08:45 +0000 (11:08 +0000)]
[breaking-change] Factor out "sram" resource.
Fixes #9.
whitequark [Sun, 4 Aug 2019 10:53:20 +0000 (10:53 +0000)]
Add missing trailing spaces to multiline connector definitions.
Or the last and the first on line pin get glued together.
whitequark [Sun, 4 Aug 2019 09:35:14 +0000 (09:35 +0000)]
Remove useless _blinky.build_and_program() function.
whitequark [Sat, 3 Aug 2019 18:42:37 +0000 (18:42 +0000)]
Remove explicit domain instantiation from blinky.
whitequark [Sat, 3 Aug 2019 16:28:57 +0000 (16:28 +0000)]
Update all boards to use default_rst.
This is pretty much just Versa ECP5 (5G).
whitequark [Sat, 3 Aug 2019 16:19:03 +0000 (16:19 +0000)]
Update all boards to use default_clk.
whitequark [Sun, 7 Jul 2019 00:11:33 +0000 (00:11 +0000)]
Replace subprocess.run(..., check=True) with subprocess.check_call().
Emily [Fri, 26 Jul 2019 03:13:44 +0000 (20:13 -0700)]
Add support for the iCE40-HX8K Breakout Board
William D. Jones [Wed, 10 Jul 2019 16:05:45 +0000 (12:05 -0400)]
dev: Refactor resource abstractions to use Resource.family.
William D. Jones [Wed, 10 Jul 2019 07:58:43 +0000 (03:58 -0400)]
dev.spi: Update SPIResources to accept a name and direction.
whitequark [Fri, 5 Jul 2019 20:15:49 +0000 (20:15 +0000)]
dev.flash: spiflash→spi_flash, spiflash{2x,4x}→spi_flash_{2x,4x}.
Every other resource name uses underscores for separation, like
eth_rgmii, so SPI flash should do it too.
whitequark [Fri, 5 Jul 2019 20:05:01 +0000 (20:05 +0000)]
versa_ecp5: add missing pin directions.
Fixes #16.
Jean-François Nguyen [Wed, 3 Jul 2019 16:31:21 +0000 (18:31 +0200)]
Factor out SPI resource definition.
whitequark [Wed, 3 Jul 2019 09:54:39 +0000 (09:54 +0000)]
dev.uart: fix typo.
Sebastien Bourdeauducq [Wed, 3 Jul 2019 09:44:20 +0000 (17:44 +0800)]
kc705: fix openocd command
Sebastien Bourdeauducq [Wed, 3 Jul 2019 09:42:48 +0000 (17:42 +0800)]
add KC705
Sebastien Bourdeauducq [Wed, 3 Jul 2019 01:04:37 +0000 (09:04 +0800)]
blackice_ii: add missing import
whitequark [Fri, 28 Jun 2019 03:42:02 +0000 (03:42 +0000)]
[breaking-change] Factor out "irda" resource.
whitequark [Fri, 28 Jun 2019 03:33:41 +0000 (03:33 +0000)]
[breaking-change] Factor out "serial" resource and rename to "uart".
Also, add missing pullups where appropriate.
whitequark [Fri, 28 Jun 2019 03:19:53 +0000 (03:19 +0000)]
Formatting. NFC.
whitequark [Tue, 25 Jun 2019 15:50:25 +0000 (15:50 +0000)]
Add Versa ECP5/ECP5-5G support.