-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from mossmann/rename-luna
Update incorrect or confusing usage of "LUNA"
- Loading branch information
Showing
50 changed files
with
117 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# | ||
# This file is part of LUNA | ||
# This file is part of Apollo. | ||
# | ||
# Copyright (c) 2020 Great Scott Gadgets <[email protected]> | ||
# Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]> | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
""" ECP5 configuration code for LUNA. """ | ||
""" ECP5 configuration. """ | ||
|
||
from logging import disable | ||
from re import U | ||
|
@@ -423,9 +423,12 @@ def configure(self, bitstream): | |
# Perform any pre-configuration tasks necessary. | ||
self._perform_preconfiguration_tasks() | ||
|
||
# Capture the part ID, and then verify that our bitstream matches. | ||
# FIXME: use the bitstream file to get the ID, not our exected LUNA ID | ||
# Read the part ID from the FPGA and verify that it is in the valid range. | ||
self._capture_part_id() | ||
|
||
# We could check that the FPGA's part ID matches the bitstream's | ||
# part ID at this point, but for now we try to proceed without | ||
# verification. If there is a mismatch, configuration will fail. | ||
#self._execute_command(self.Opcode.VERIFY_ID, b"\x21\x11\x10\x43") | ||
|
||
# ??? | ||
|
@@ -1297,4 +1300,4 @@ def _enter_background_spi(self, reset_flash=True): | |
def _background_spi_transfer(self, data, reverse=False, ignore_response=False): | ||
""" Performs a SPI transfer, targeting the configuration flash.""" | ||
return self.bridge.transfer(data) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# | ||
# This file is part of LUNA. | ||
# This file is part of Apollo. | ||
# | ||
# Copyright (c) 2020 Great Scott Gadgets <[email protected]> | ||
# Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]> | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
""" Apollo-based ILA transports. """ | ||
|
@@ -159,7 +159,7 @@ def _emit_gtkw(self, filename, dump_filename, *, add_clock=True): | |
gtkw = GTKWSave(f) | ||
|
||
# Comments / context. | ||
gtkw.comment("Generated by the LUNA ILA.") | ||
gtkw.comment("Generated by the Apollo ILA.") | ||
|
||
# Add a reference to the dumpfile we're working with. | ||
gtkw.dumpfile(dump_filename) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# | ||
# This file is part of LUNA | ||
# This file is part of Apollo. | ||
# | ||
# Copyright (c) 2020 Great Scott Gadgets <[email protected]> | ||
# Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]> | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
""" ECP5 configuration code for LUNA. """ | ||
""" Intel FPGA configuration. """ | ||
|
||
import time | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# | ||
# This file is part of LUNA | ||
# This file is part of Apollo. | ||
# | ||
# Copyright (c) 2020 Great Scott Gadgets <[email protected]> | ||
# Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]> | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
from re import A | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# | ||
# This file is part of LUNA | ||
# This file is part of Apollo. | ||
# | ||
# Copyright (c) 2020 Great Scott Gadgets <[email protected]> | ||
# Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]> | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
""" JTAG definitions for on-board JTAG devices. """ | ||
|
@@ -10,7 +10,7 @@ | |
|
||
|
||
# | ||
# ECP5 FPGAs that can be populated onto LUNA boards. | ||
# ECP5 FPGAs that can be populated onto Cynthion boards. | ||
# | ||
|
||
class LatticeECP5_12F(JTAGDevice): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# | ||
# This file is part of LUNA. | ||
# This file is part of Apollo. | ||
# | ||
# Copyright (c) 2020 Great Scott Gadgets <[email protected]> | ||
# Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]> | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
# Vendor requests. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# | ||
# This file is part of LUNA. | ||
# This file is part of Apollo. | ||
# | ||
# Copyright (c) 2020 Great Scott Gadgets <[email protected]> | ||
# Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]> | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
""" Helpers for building self-test applets around Apollo.""" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Build specifics for SAMD11 Xplained hardware. | ||
# Build specifics for Cynthion. | ||
# | ||
|
||
SOURCES += $(wildcard src/mcu/samd11/*.c) | ||
SOURCES += $(wildcard src/mcu/samd11/*.c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* LED control abstraciton code. | ||
* | ||
* This file is part of LUNA. | ||
* This file is part of Apollo. | ||
* | ||
* Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]> | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/* | ||
* SPI driver code. | ||
* | ||
* This file is part of LUNA. | ||
* This file is part of Apollo. | ||
* | ||
* Copyright (c) 2020 Great Scott Gadgets <[email protected]> | ||
* Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]> | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/* | ||
* SPI driver code. | ||
* | ||
* This file is part of LUNA. | ||
* This file is part of Apollo. | ||
* | ||
* Copyright (c) 2020 Great Scott Gadgets <[email protected]> | ||
* Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]> | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/** | ||
* UART driver code. | ||
* | ||
* This file is part of LUNA. | ||
* This file is part of Apollo. | ||
* | ||
* Copyright (c) 2020 Great Scott Gadgets <[email protected]> | ||
* Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]> | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Apollo board definitions for LUNA hardware. | ||
* Apollo board definitions for Cynthion r0.1 and r0.2. | ||
* | ||
* This file is part of LUNA. | ||
* This file is part of Apollo. | ||
* | ||
* Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]> | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/** | ||
* Interface code for communicating with the FPGA over the Debug SPI connection. | ||
* | ||
* This file is part of LUNA. | ||
* This file is part of Apollo. | ||
* | ||
* Copyright (c) 2020 Great Scott Gadgets <[email protected]> | ||
* Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]> | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/* | ||
* LED control abstraciton code. | ||
* | ||
* This file is part of LUNA. | ||
* This file is part of Apollo. | ||
* | ||
* Copyright (c) 2020 Great Scott Gadgets <[email protected]> | ||
* Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]> | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/* | ||
* Self-test & factory validation functionality for LUNA. | ||
* Self-test & factory validation functionality for Cynthion. | ||
* | ||
* This file is part of LUNA. | ||
* This file is part of Cynthion. | ||
* | ||
* Copyright (c) 2020 Great Scott Gadgets <[email protected]> | ||
* Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]> | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/** | ||
* Self-test & factory validation helpers. | ||
* | ||
* This file is part of LUNA. | ||
* This file is part of Apollo. | ||
* | ||
* Copyright (c) 2020 Great Scott Gadgets <[email protected]> | ||
* Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]> | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/* | ||
* SPI driver code. | ||
* | ||
* This file is part of LUNA. | ||
* This file is part of Apollo. | ||
* | ||
* Copyright (c) 2020 Great Scott Gadgets <[email protected]> | ||
* Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]> | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/* | ||
* SPI driver code. | ||
* | ||
* This file is part of LUNA. | ||
* This file is part of Apollo. | ||
* | ||
* Copyright (c) 2020 Great Scott Gadgets <[email protected]> | ||
* Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]> | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/** | ||
* UART driver code. | ||
* | ||
* This file is part of LUNA. | ||
* This file is part of Apollo. | ||
* | ||
* Copyright (c) 2020 Great Scott Gadgets <[email protected]> | ||
* Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]> | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/** | ||
* Apollo board definitions for LUNA hardware. | ||
* Apollo board definitions for Daisho. | ||
* | ||
* This file is part of LUNA. | ||
* This file is part of Apollo. | ||
* | ||
* Copyright (c) 2020 Great Scott Gadgets <[email protected]> | ||
* Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]> | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/* | ||
* LED control abstraciton code. | ||
* | ||
* This file is part of LUNA. | ||
* This file is part of Apollo. | ||
* | ||
* Copyright (c) 2020 Great Scott Gadgets <[email protected]> | ||
* Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]> | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/** | ||
* UART driver code. | ||
* | ||
* This file is part of LUNA. | ||
* This file is part of Apollo. | ||
* | ||
* Copyright (c) 2020 Great Scott Gadgets <[email protected]> | ||
* Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]> | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
|
Oops, something went wrong.