diff --git a/download-latest-db.sh b/download-latest-db.sh index aa10a2a8..e159db44 100755 --- a/download-latest-db.sh +++ b/download-latest-db.sh @@ -6,13 +6,6 @@ # https://opensource.org/licenses/ISC # # SPDX-License-Identifier: ISC -# Copyright (C) 2017-2020 The Project X-Ray Authors. -# -# Use of this source code is governed by a ISC-style -# license that can be found in the LICENSE file or at -# https://opensource.org/licenses/ISC -# -# SPDX-License-Identifier: ISC GITHUB_PROTO=${1:-https} GITHUB_URL=$GITHUB_PROTO://github.com/SymbiFlow/prjxray-db.git diff --git a/fuzzers/005-tilegrid/add_tdb.py b/fuzzers/005-tilegrid/add_tdb.py index bdc46128..cb41dfbe 100644 --- a/fuzzers/005-tilegrid/add_tdb.py +++ b/fuzzers/005-tilegrid/add_tdb.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# # Copyright (C) 2017-2020 The Project X-Ray Authors. # # Use of this source code is governed by a ISC-style @@ -5,7 +8,6 @@ # https://opensource.org/licenses/ISC # # SPDX-License-Identifier: ISC -#!/usr/bin/env python3 from prjxray import xjson import json diff --git a/fuzzers/005-tilegrid/fuzzaddr/generate.py b/fuzzers/005-tilegrid/fuzzaddr/generate.py index f54bc2d0..83b9739f 100644 --- a/fuzzers/005-tilegrid/fuzzaddr/generate.py +++ b/fuzzers/005-tilegrid/fuzzaddr/generate.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# # Copyright (C) 2017-2020 The Project X-Ray Authors. # # Use of this source code is governed by a ISC-style @@ -5,7 +8,6 @@ # https://opensource.org/licenses/ISC # # SPDX-License-Identifier: ISC -#!/usr/bin/env python3 from prjxray import bitsmaker diff --git a/fuzzers/026-bram-data/top.py b/fuzzers/026-bram-data/top.py index 46c5dad8..37809eb6 100644 --- a/fuzzers/026-bram-data/top.py +++ b/fuzzers/026-bram-data/top.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -#!/usr/bin/env python +# -*- coding: utf-8 -*- # Copyright (C) 2017-2020 The Project X-Ray Authors. # # Use of this source code is governed by a ISC-style diff --git a/fuzzers/030-iob/minitest/top.py b/fuzzers/030-iob/minitest/top.py index a7b2e26e..54586958 100644 --- a/fuzzers/030-iob/minitest/top.py +++ b/fuzzers/030-iob/minitest/top.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -''' +# -*- coding: utf-8 -*- # Copyright (C) 2017-2020 The Project X-Ray Authors. # # Use of this source code is governed by a ISC-style @@ -7,6 +7,7 @@ # https://opensource.org/licenses/ISC # # SPDX-License-Identifier: ISC +''' Generate a primitive to place at every I/O Unlike CLB tests, the LFSR for this is inside the ROI, not driving it ''' diff --git a/htmlgen/htmlgen.py b/htmlgen/htmlgen.py index c8b1ff41..726bc366 100755 --- a/htmlgen/htmlgen.py +++ b/htmlgen/htmlgen.py @@ -7,10 +7,10 @@ # license that can be found in the LICENSE file or at # https://opensource.org/licenses/ISC # +# SPDX-License-Identifier: ISC + # https://symbiflow.github.io/prjxray-db/ # https://symbiflow.github.io/prjxray-db/artix7/ -# -# SPDX-License-Identifier: ISC import os, sys, json, re from io import StringIO diff --git a/minitests/iostandard/features/analyze.py b/minitests/iostandard/features/analyze.py index c18c0464..aa1eba01 100644 --- a/minitests/iostandard/features/analyze.py +++ b/minitests/iostandard/features/analyze.py @@ -1,3 +1,13 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC """ This script performs the analysis of disassembled bitstream and design information. It correlates presence/absence of particular fasm features in the bitstream diff --git a/minitests/iostandard/features/generate.py b/minitests/iostandard/features/generate.py index b938284d..ff708cf9 100644 --- a/minitests/iostandard/features/generate.py +++ b/minitests/iostandard/features/generate.py @@ -1,3 +1,13 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC import os import random import json diff --git a/minitests/iostandard/features/snippets.py b/minitests/iostandard/features/snippets.py index be8e5ea1..cda6904e 100644 --- a/minitests/iostandard/features/snippets.py +++ b/minitests/iostandard/features/snippets.py @@ -1,3 +1,13 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC """ This script generates code snippets for cell definition, technology mapping and VPR architecture definition. It reads correlation of IOB fasm features with diff --git a/minitests/iserdes.idelay/utils/iserdes_idelay_histogram_receiver.py b/minitests/iserdes.idelay/utils/iserdes_idelay_histogram_receiver.py index afc48fff..dca581c8 100755 --- a/minitests/iserdes.idelay/utils/iserdes_idelay_histogram_receiver.py +++ b/minitests/iserdes.idelay/utils/iserdes_idelay_histogram_receiver.py @@ -1,4 +1,13 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC """ This script receives and parses data generated by the "histogram" test design. """ diff --git a/minitests/iserdes.sdr_ddr/src/gen_rom.py b/minitests/iserdes.sdr_ddr/src/gen_rom.py index 5e9acc5f..0af1b39f 100755 --- a/minitests/iserdes.sdr_ddr/src/gen_rom.py +++ b/minitests/iserdes.sdr_ddr/src/gen_rom.py @@ -1,4 +1,13 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC ''' This script generates a verilog ROM module that contains data to be transmitted and received. The data is random. diff --git a/minitests/litex/min/arty/scripts/minilitex_arty.py b/minitests/litex/min/arty/scripts/minilitex_arty.py index a97571e3..a054a61c 100755 --- a/minitests/litex/min/arty/scripts/minilitex_arty.py +++ b/minitests/litex/min/arty/scripts/minilitex_arty.py @@ -1,7 +1,13 @@ #!/usr/bin/env python3 - -# This file is Copyright (c) 2015-2019 Florent Kermarrec -# License: BSD +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC import argparse diff --git a/minitests/litex/min_ddr/arty/scripts/min_arty.py b/minitests/litex/min_ddr/arty/scripts/min_arty.py index 7ec6191d..6b48ecc4 100755 --- a/minitests/litex/min_ddr/arty/scripts/min_arty.py +++ b/minitests/litex/min_ddr/arty/scripts/min_arty.py @@ -1,7 +1,13 @@ #!/usr/bin/env python3 - -# This file is Copyright (c) 2015-2019 Florent Kermarrec -# License: BSD +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC import argparse diff --git a/minitests/litex/min_ddr/arty/src.yosys/missing_bit_report.py b/minitests/litex/min_ddr/arty/src.yosys/missing_bit_report.py index 4d4ec472..28f48e4d 100644 --- a/minitests/litex/min_ddr/arty/src.yosys/missing_bit_report.py +++ b/minitests/litex/min_ddr/arty/src.yosys/missing_bit_report.py @@ -1,3 +1,13 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC """ Generates a missing feature/bit report for LiteX design. This script is fairly fragile, because it depends on the specific observation diff --git a/minitests/litex/src.yosys/missing_bit_report.py b/minitests/litex/src.yosys/missing_bit_report.py index 4d4ec472..28f48e4d 100644 --- a/minitests/litex/src.yosys/missing_bit_report.py +++ b/minitests/litex/src.yosys/missing_bit_report.py @@ -1,3 +1,13 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC """ Generates a missing feature/bit report for LiteX design. This script is fairly fragile, because it depends on the specific observation diff --git a/minitests/litex/uart_ddr/arty/scripts/arty.py b/minitests/litex/uart_ddr/arty/scripts/arty.py index 287a4917..c1cfd99e 100755 --- a/minitests/litex/uart_ddr/arty/scripts/arty.py +++ b/minitests/litex/uart_ddr/arty/scripts/arty.py @@ -1,4 +1,13 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC # This file is Copyright (c) 2015-2020 Florent Kermarrec # License: BSD diff --git a/minitests/litex/uart_ddr/arty/scripts/sdram_init.py b/minitests/litex/uart_ddr/arty/scripts/sdram_init.py index 80fb3832..1282694d 100644 --- a/minitests/litex/uart_ddr/arty/scripts/sdram_init.py +++ b/minitests/litex/uart_ddr/arty/scripts/sdram_init.py @@ -1,3 +1,13 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC dfii_control_sel = 0x01 dfii_control_cke = 0x02 dfii_control_odt = 0x04 diff --git a/minitests/litex/uart_ddr/arty/scripts/test_sdram.py b/minitests/litex/uart_ddr/arty/scripts/test_sdram.py index be8ac057..6e6e3fbd 100755 --- a/minitests/litex/uart_ddr/arty/scripts/test_sdram.py +++ b/minitests/litex/uart_ddr/arty/scripts/test_sdram.py @@ -1,4 +1,13 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC import sys import time diff --git a/minitests/litex_litedram/src.vivado/ExtractFrames.py b/minitests/litex_litedram/src.vivado/ExtractFrames.py index 83365e79..dd6406e6 100755 --- a/minitests/litex_litedram/src.vivado/ExtractFrames.py +++ b/minitests/litex_litedram/src.vivado/ExtractFrames.py @@ -1,4 +1,13 @@ -#!/bin/python +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC ''' Extract the frames from the output of the prjxray bitread tool. ''' diff --git a/minitests/litex_litedram/src.yosys/ExtractFrames.py b/minitests/litex_litedram/src.yosys/ExtractFrames.py index 83365e79..dd6406e6 100755 --- a/minitests/litex_litedram/src.yosys/ExtractFrames.py +++ b/minitests/litex_litedram/src.yosys/ExtractFrames.py @@ -1,4 +1,13 @@ -#!/bin/python +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC ''' Extract the frames from the output of the prjxray bitread tool. ''' diff --git a/minitests/roi_harness/create_design_json.py b/minitests/roi_harness/create_design_json.py index 1c30fbdf..9ad48672 100644 --- a/minitests/roi_harness/create_design_json.py +++ b/minitests/roi_harness/create_design_json.py @@ -1,3 +1,13 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC import xjson import csv import argparse diff --git a/minitests/roi_harness/demo_sw_led.py b/minitests/roi_harness/demo_sw_led.py index 3ffb089d..5e83027a 100755 --- a/minitests/roi_harness/demo_sw_led.py +++ b/minitests/roi_harness/demo_sw_led.py @@ -1,4 +1,13 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC import subprocess import demo_sw_led_fasm diff --git a/minitests/roi_harness/demo_sw_led_fasm.py b/minitests/roi_harness/demo_sw_led_fasm.py index 76bcbc18..2b6dd5fe 100755 --- a/minitests/roi_harness/demo_sw_led_fasm.py +++ b/minitests/roi_harness/demo_sw_led_fasm.py @@ -1,4 +1,13 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC import sys import os diff --git a/minitests/roi_harness/test_demo_sw_led.py b/minitests/roi_harness/test_demo_sw_led.py index cd5b77fd..7da51c4a 100755 --- a/minitests/roi_harness/test_demo_sw_led.py +++ b/minitests/roi_harness/test_demo_sw_led.py @@ -1,4 +1,13 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC import unittest import demo_sw_led diff --git a/settings/artix7_100t.sh b/settings/artix7_100t.sh index 4a875a7f..ae31da32 100644 --- a/settings/artix7_100t.sh +++ b/settings/artix7_100t.sh @@ -1,3 +1,11 @@ +#!/bin/bash +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC export XRAY_DATABASE="artix7" export XRAY_PART="xc7a100tfgg676-1" export XRAY_ROI_FRAMES="0x00000000:0xffffffff" diff --git a/setup.py b/setup.py index 1d3a640f..3f22175b 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,14 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC + import setuptools with open("README.md", "r") as fh: diff --git a/third_party/reformat.tcl b/third_party/reformat.tcl index c4efb5d8..c31195c8 100755 --- a/third_party/reformat.tcl +++ b/third_party/reformat.tcl @@ -1,4 +1,12 @@ #!/usr/bin/env tclsh +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC # From: https://gist.github.com/yyamasak/af250f7ca74e18526734#file-reformat-tcl-L10 # Which is based on https://wiki.tcl-lang.org/page/Reformatting+Tcl+code+indentation # See for licensing