nmigen-boards.git
4 years agode0: fix typo.
whitequark [Fri, 4 Oct 2019 07:00:52 +0000 (07:00 +0000)]
de0: fix typo.

4 years agoAdd Terasic DE0-CV board.
Dan Ravensloft [Thu, 3 Oct 2019 15:06:54 +0000 (16:06 +0100)]
Add Terasic DE0-CV board.

4 years agode0: fix button polarity.
whitequark [Thu, 3 Oct 2019 09:51:27 +0000 (09:51 +0000)]
de0: fix button polarity.

4 years agoFix typo in SDCardResources().
whitequark [Thu, 3 Oct 2019 09:01:42 +0000 (09:01 +0000)]
Fix typo in SDCardResources().

4 years agoAdd Terasic DE0.
whitequark [Thu, 3 Oct 2019 08:42:08 +0000 (08:42 +0000)]
Add Terasic DE0.

4 years agoFactor out "nor_flash" resource.
whitequark [Thu, 3 Oct 2019 06:41:56 +0000 (06:41 +0000)]
Factor out "nor_flash" resource.

4 years agoFactor out "sdram" resource.
whitequark [Thu, 3 Oct 2019 06:10:53 +0000 (06:10 +0000)]
Factor out "sdram" resource.

4 years ago[breaking-change] Fix polarity of "dm" signal in "memory" 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".

4 years agoReorganize resource taxonomy.
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.

4 years agoFactor out "sd_card_{1bit,4bit,spi}" resources.
whitequark [Thu, 3 Oct 2019 05:42:59 +0000 (05:42 +0000)]
Factor out "sd_card_{1bit,4bit,spi}" resources.

4 years agodev.display: factor out from dev.user. NFC.
whitequark [Thu, 3 Oct 2019 03:02:44 +0000 (03:02 +0000)]
dev.display: factor out from dev.user. NFC.

4 years ago[breaking-change] Factor out "display_7seg" resource.
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.

4 years agoAdd missing __init__.py.
whitequark [Tue, 1 Oct 2019 21:01:54 +0000 (21:01 +0000)]
Add missing __init__.py.

4 years agodev.user: fix typo.
whitequark [Mon, 23 Sep 2019 10:11:39 +0000 (10:11 +0000)]
dev.user: fix typo.

4 years ago_blinky→test.blinky
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.

4 years ago[breaking-change] Factor out "led", "button" and "switch" resources.
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.

4 years agoFix IO_STANDARD on all iCE40 boards.
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.

4 years agosetup.py: fixes.
Emily [Fri, 20 Sep 2019 14:13:14 +0000 (15:13 +0100)]
setup.py: fixes.

4 years agonumato_mimas: add spi_flash#0 resource.
whitequark [Wed, 18 Sep 2019 04:25:03 +0000 (04:25 +0000)]
numato_mimas: add spi_flash#0 resource.

4 years agonumato_mimas: SW* are actually buttons.
whitequark [Wed, 18 Sep 2019 04:23:57 +0000 (04:23 +0000)]
numato_mimas: SW* are actually buttons.

4 years agoAdd Numato Mimas (V1).
whitequark [Wed, 18 Sep 2019 04:13:22 +0000 (04:13 +0000)]
Add Numato Mimas (V1).

4 years agoatlys: fix typo.
whitequark [Wed, 11 Sep 2019 23:26:30 +0000 (23:26 +0000)]
atlys: fix typo.

4 years agoFix .gitignore.
whitequark [Fri, 6 Sep 2019 05:30:35 +0000 (05:30 +0000)]
Fix .gitignore.

4 years agosetup: replace versioneer with setuptools_scm.
whitequark [Fri, 6 Sep 2019 05:24:11 +0000 (05:24 +0000)]
setup: replace versioneer with setuptools_scm.

4 years agoUpdate iCE40 GLOBAL and PULLUP attribute to use correct types.
whitequark [Fri, 30 Aug 2019 08:39:30 +0000 (08:39 +0000)]
Update iCE40 GLOBAL and PULLUP attribute to use correct types.

4 years agoAdd ZTurn lite platform.
Robin Ole Heinemann [Sun, 18 Aug 2019 21:07:37 +0000 (23:07 +0200)]
Add ZTurn lite platform.

4 years agoAdd SK-XC6SLX9.
whitequark [Thu, 22 Aug 2019 23:00:01 +0000 (23:00 +0000)]
Add SK-XC6SLX9.

4 years agoAtlys: pass extra keyword arguments to platform.
whitequark [Thu, 22 Aug 2019 21:32:26 +0000 (21:32 +0000)]
Atlys: pass extra keyword arguments to platform.

4 years agoAdd Fomu Hacker platform.
Robin Ole Heinemann [Wed, 21 Aug 2019 21:18:49 +0000 (23:18 +0200)]
Add Fomu Hacker platform.

4 years agoversa_ecp5: prepare for switchable ECP5 toolchains.
whitequark [Wed, 21 Aug 2019 17:51:46 +0000 (17:51 +0000)]
versa_ecp5: prepare for switchable ECP5 toolchains.

4 years agoAdd Mercury platform.
William D. Jones [Tue, 13 Aug 2019 12:20:45 +0000 (08:20 -0400)]
Add Mercury platform.

4 years agoAdd Arty A7 platform.
Jean-François Nguyen [Wed, 7 Aug 2019 23:31:49 +0000 (01:31 +0200)]
Add Arty A7 platform.

4 years agoMake oe in SRAMResource optional.
William D. Jones [Sun, 4 Aug 2019 13:32:34 +0000 (09:32 -0400)]
Make oe in SRAMResource optional.

4 years agoUse Pins/DiffPairs(assert_width) where appropriate.
whitequark [Sun, 4 Aug 2019 11:14:16 +0000 (11:14 +0000)]
Use Pins/DiffPairs(assert_width) where appropriate.

4 years agoAdd Digilent Atlys Spartan-6 board.
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.

4 years ago[breaking-change] Factor out "sram" resource.
whitequark [Sun, 4 Aug 2019 11:08:45 +0000 (11:08 +0000)]
[breaking-change] Factor out "sram" resource.

Fixes #9.

4 years agoAdd missing trailing spaces to multiline connector definitions.
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.

4 years agoRemove useless _blinky.build_and_program() function.
whitequark [Sun, 4 Aug 2019 09:35:14 +0000 (09:35 +0000)]
Remove useless _blinky.build_and_program() function.

4 years agoRemove explicit domain instantiation from blinky.
whitequark [Sat, 3 Aug 2019 18:42:37 +0000 (18:42 +0000)]
Remove explicit domain instantiation from blinky.

4 years agoUpdate all boards to use default_rst.
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).

4 years agoUpdate all boards to use default_clk.
whitequark [Sat, 3 Aug 2019 16:19:03 +0000 (16:19 +0000)]
Update all boards to use default_clk.

4 years agoReplace subprocess.run(..., check=True) with subprocess.check_call().
whitequark [Sun, 7 Jul 2019 00:11:33 +0000 (00:11 +0000)]
Replace subprocess.run(..., check=True) with subprocess.check_call().

4 years agoAdd support for the iCE40-HX8K Breakout Board
Emily [Fri, 26 Jul 2019 03:13:44 +0000 (20:13 -0700)]
Add support for the iCE40-HX8K Breakout Board

4 years agodev: Refactor resource abstractions to use Resource.family.
William D. Jones [Wed, 10 Jul 2019 16:05:45 +0000 (12:05 -0400)]
dev: Refactor resource abstractions to use Resource.family.

4 years agodev.spi: Update SPIResources to accept a name and direction.
William D. Jones [Wed, 10 Jul 2019 07:58:43 +0000 (03:58 -0400)]
dev.spi: Update SPIResources to accept a name and direction.

4 years agodev.flash: spiflash→spi_flash, spiflash{2x,4x}→spi_flash_{2x,4x}.
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.

4 years agoversa_ecp5: add missing pin directions.
whitequark [Fri, 5 Jul 2019 20:05:01 +0000 (20:05 +0000)]
versa_ecp5: add missing pin directions.

Fixes #16.

4 years agoFactor out SPI resource definition.
Jean-François Nguyen [Wed, 3 Jul 2019 16:31:21 +0000 (18:31 +0200)]
Factor out SPI resource definition.

4 years agodev.uart: fix typo.
whitequark [Wed, 3 Jul 2019 09:54:39 +0000 (09:54 +0000)]
dev.uart: fix typo.

4 years agokc705: fix openocd command
Sebastien Bourdeauducq [Wed, 3 Jul 2019 09:44:20 +0000 (17:44 +0800)]
kc705: fix openocd command

4 years agoadd KC705
Sebastien Bourdeauducq [Wed, 3 Jul 2019 09:42:48 +0000 (17:42 +0800)]
add KC705

4 years agoblackice_ii: add missing import
Sebastien Bourdeauducq [Wed, 3 Jul 2019 01:04:37 +0000 (09:04 +0800)]
blackice_ii: add missing import

4 years ago[breaking-change] Factor out "irda" resource.
whitequark [Fri, 28 Jun 2019 03:42:02 +0000 (03:42 +0000)]
[breaking-change] Factor out "irda" resource.

4 years ago[breaking-change] Factor out "serial" resource and rename to "uart".
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.

4 years agoFormatting. NFC.
whitequark [Fri, 28 Jun 2019 03:19:53 +0000 (03:19 +0000)]
Formatting. NFC.

4 years agoAdd Versa ECP5/ECP5-5G support.
whitequark [Tue, 25 Jun 2019 15:50:25 +0000 (15:50 +0000)]
Add Versa ECP5/ECP5-5G support.

4 years agoicebreaker: Fix resource numeration to avoid overlapping with PMOD.
Alexander Hude [Mon, 24 Jun 2019 12:36:45 +0000 (22:36 +1000)]
icebreaker: Fix resource numeration to avoid overlapping with PMOD.

4 years agomystorm BlackIceII support
Staf Verhaegen [Mon, 17 Jun 2019 20:28:23 +0000 (22:28 +0200)]
mystorm BlackIceII support

4 years agomystorm BlackIce support
Staf Verhaegen [Mon, 17 Jun 2019 20:12:44 +0000 (22:12 +0200)]
mystorm BlackIce support

4 years agoConvert DOS line endings.
Staf Verhaegen [Mon, 17 Jun 2019 19:41:54 +0000 (21:41 +0200)]
Convert DOS line endings.

4 years agoUse the new active-low PinsN platform feature.
whitequark [Wed, 12 Jun 2019 15:06:18 +0000 (15:06 +0000)]
Use the new active-low PinsN platform feature.

4 years agoFactor out SPI flash resource definition.
whitequark [Thu, 6 Jun 2019 20:43:40 +0000 (20:43 +0000)]
Factor out SPI flash resource definition.

4 years agoAdd icebreaker platform.
William D. Jones [Thu, 6 Jun 2019 12:51:47 +0000 (08:51 -0400)]
Add icebreaker platform.

4 years agoSimplify after changes in nmigen.
whitequark [Wed, 5 Jun 2019 14:05:02 +0000 (14:05 +0000)]
Simplify after changes in nmigen.

4 years agoUpdate to track changes in nmigen.
whitequark [Wed, 5 Jun 2019 08:59:40 +0000 (08:59 +0000)]
Update to track changes in nmigen.

4 years agoUse vendor's device and package names everywhere, not nextpnr's.
whitequark [Tue, 4 Jun 2019 16:09:37 +0000 (16:09 +0000)]
Use vendor's device and package names everywhere, not nextpnr's.

4 years agoBlink all LEDs at 1 Hz if any board is run as __main__.
whitequark [Tue, 4 Jun 2019 11:06:01 +0000 (11:06 +0000)]
Blink all LEDs at 1 Hz if any board is run as __main__.

4 years agoExtract from nMigen.
whitequark [Tue, 4 Jun 2019 09:47:29 +0000 (09:47 +0000)]
Extract from nMigen.