diff --git a/prjxray/bitfilter.py b/prjxray/bitfilter.py index 9b1c064b..66a1c984 100644 --- a/prjxray/bitfilter.py +++ b/prjxray/bitfilter.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 class Bitfilter(object): def __init__( self, frames_to_include=None, frames_to_exclude=[], diff --git a/prjxray/bitsmaker.py b/prjxray/bitsmaker.py index 02dfb66b..f29f7887 100644 --- a/prjxray/bitsmaker.py +++ b/prjxray/bitsmaker.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 from prjxray import bitstream diff --git a/prjxray/bitstream.py b/prjxray/bitstream.py index 741d7909..83b264d7 100644 --- a/prjxray/bitstream.py +++ b/prjxray/bitstream.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 json import os from prjxray import util diff --git a/prjxray/connections.py b/prjxray/connections.py index 334d2f4e..fac84b7a 100644 --- a/prjxray/connections.py +++ b/prjxray/connections.py @@ -1,5 +1,15 @@ -from collections import namedtuple +#!/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 +from collections import namedtuple WireInGrid = namedtuple('WireInGrid', 'tile grid_x grid_y wire') Connection = namedtuple('Connection', 'wire_a wire_b') diff --git a/prjxray/db.py b/prjxray/db.py index dfe11730..b84cacf4 100644 --- a/prjxray/db.py +++ b/prjxray/db.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.path import simplejson as json from prjxray import grid diff --git a/prjxray/fasm_assembler.py b/prjxray/fasm_assembler.py index 5980ebb4..2bb19007 100644 --- a/prjxray/fasm_assembler.py +++ b/prjxray/fasm_assembler.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 fasm from prjxray import bitstream diff --git a/prjxray/fasm_disassembler.py b/prjxray/fasm_disassembler.py index 85bdc381..896b5c82 100644 --- a/prjxray/fasm_disassembler.py +++ b/prjxray/fasm_disassembler.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 re import fasm from prjxray import bitstream diff --git a/prjxray/grid.py b/prjxray/grid.py index 610bebbc..c1632dfa 100644 --- a/prjxray/grid.py +++ b/prjxray/grid.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 from prjxray import segment_map from prjxray.grid_types import BlockType, GridLoc, GridInfo, BitAlias, Bits, BitsInfo, ClockRegion from prjxray.tile_segbits_alias import TileSegbitsAlias diff --git a/prjxray/grid_types.py b/prjxray/grid_types.py index 0a1669c8..53758a6e 100644 --- a/prjxray/grid_types.py +++ b/prjxray/grid_types.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 from collections import namedtuple import enum diff --git a/prjxray/lib.py b/prjxray/lib.py index 8922e4ee..27dd2360 100644 --- a/prjxray/lib.py +++ b/prjxray/lib.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.path import csv import pickle diff --git a/prjxray/lms_solver.py b/prjxray/lms_solver.py index 5dacddf6..ed1825f6 100755 --- a/prjxray/lms_solver.py +++ b/prjxray/lms_solver.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 solves the fuzzing problem through least-mean-square solution of an overdetermined linear equation system. diff --git a/prjxray/lut_maker.py b/prjxray/lut_maker.py index 905c2e9e..1073aa30 100644 --- a/prjxray/lut_maker.py +++ b/prjxray/lut_maker.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 class LutMaker(object): def __init__(self): self.input_lut_idx = 0 diff --git a/prjxray/math_models.py b/prjxray/math_models.py index a649302c..04ea34fa 100644 --- a/prjxray/math_models.py +++ b/prjxray/math_models.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 """ Math models are used to represent abstract operations for the timing models. This is useful for creating excel workbooks that can update dynamically, or generating a model with symbolic constants to be backsolved. diff --git a/prjxray/node_lookup.py b/prjxray/node_lookup.py index c8669f49..8b684f18 100644 --- a/prjxray/node_lookup.py +++ b/prjxray/node_lookup.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 sqlite3 import progressbar import pyjson5 as json5 diff --git a/prjxray/roi.py b/prjxray/roi.py index c8d02318..0627aa67 100644 --- a/prjxray/roi.py +++ b/prjxray/roi.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 class Roi(object): """ Object that represents a Project X-ray ROI. diff --git a/prjxray/segmaker.py b/prjxray/segmaker.py index 78fa8f53..15f99342 100644 --- a/prjxray/segmaker.py +++ b/prjxray/segmaker.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 ''' NOTE: "segments" as used in this file is mostly unrelated to tilegrid.json usage ie tilegrid.json has names like SEG_CLBLL_L_X2Y50 where as here they are tile based and named like seg_00400100_02 diff --git a/prjxray/segment_map.py b/prjxray/segment_map.py index 56ee8f68..87c351d9 100644 --- a/prjxray/segment_map.py +++ b/prjxray/segment_map.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 from intervaltree import IntervalTree, Interval from prjxray import bitstream diff --git a/prjxray/site_type.py b/prjxray/site_type.py index db8fc2a7..104fd1cf 100644 --- a/prjxray/site_type.py +++ b/prjxray/site_type.py @@ -1,5 +1,15 @@ -""" Description of a site type """ +#!/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 +""" Description of a site type """ from collections import namedtuple import enum diff --git a/prjxray/state_gen.py b/prjxray/state_gen.py index 3a8d43fc..35976267 100644 --- a/prjxray/state_gen.py +++ b/prjxray/state_gen.py @@ -1,5 +1,15 @@ -from prjxray import util +#!/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 +from prjxray import util class StateGen(object): """ Manages fuzzer state generation across multiple sites. diff --git a/prjxray/tile.py b/prjxray/tile.py index 380bc1bb..cb008a48 100644 --- a/prjxray/tile.py +++ b/prjxray/tile.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 """ Database files available for a tile type. """ from collections import namedtuple import json diff --git a/prjxray/tile_segbits.py b/prjxray/tile_segbits.py index 09c055c8..1f8807cd 100644 --- a/prjxray/tile_segbits.py +++ b/prjxray/tile_segbits.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 from collections import namedtuple from prjxray import bitstream from prjxray.grid import BlockType diff --git a/prjxray/tile_segbits_alias.py b/prjxray/tile_segbits_alias.py index 074bfdfa..9cfc259d 100644 --- a/prjxray/tile_segbits_alias.py +++ b/prjxray/tile_segbits_alias.py @@ -1,5 +1,15 @@ -""" TileSegbitsAlias provides an alias from one tile type to another. +#!/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 +""" TileSegbitsAlias provides an alias from one tile type to another. TileSegbitsAlias performs severals functions to achieve the alias: - Remaps tile type from the original tile type to the alias tile type - Offsets the bits from the original to the alias type diff --git a/prjxray/timing.py b/prjxray/timing.py index 782d0e32..f199f2a1 100644 --- a/prjxray/timing.py +++ b/prjxray/timing.py @@ -1,5 +1,15 @@ -""" Route timing delay definitions. +#!/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 +""" Route timing delay definitions. Routing delay is formed from two parts in this model: - Intristic delay of the element diff --git a/prjxray/util.py b/prjxray/util.py index 8fa737f6..3fb54494 100644 --- a/prjxray/util.py +++ b/prjxray/util.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 math import os import random diff --git a/prjxray/verilog.py b/prjxray/verilog.py index de3895e9..a24f7091 100644 --- a/prjxray/verilog.py +++ b/prjxray/verilog.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 sys import random import re diff --git a/prjxray/xjson.py b/prjxray/xjson.py index da888e0a..2eb705ee 100644 --- a/prjxray/xjson.py +++ b/prjxray/xjson.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 io import json import re diff --git a/third_party/yosys b/third_party/yosys index 721040df..93ef516d 160000 --- a/third_party/yosys +++ b/third_party/yosys @@ -1 +1 @@ -Subproject commit 721040df76c7095463ebf4f708f94bb236333f61 +Subproject commit 93ef516d919b40ace2099bc7586bfda8648f0757 diff --git a/utils/addrwidth.py b/utils/addrwidth.py index 7b499f84..86884228 100755 --- a/utils/addrwidth.py +++ b/utils/addrwidth.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 json from prjxray import bitstream diff --git a/utils/bit2fasm.py b/utils/bit2fasm.py index dcde86d9..d36a0ba5 100755 --- a/utils/bit2fasm.py +++ b/utils/bit2fasm.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 ''' Take bitstream .bit files and decode them to FASM. ''' diff --git a/utils/blockwidth.py b/utils/blockwidth.py index 87d20bee..b8936b77 100755 --- a/utils/blockwidth.py +++ b/utils/blockwidth.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 ''' Prints minor address group sizes If any part of an IP block is written, Vivado likes to write the entire block diff --git a/utils/checkdb.py b/utils/checkdb.py index 52cb6f3d..1ba0a38b 100755 --- a/utils/checkdb.py +++ b/utils/checkdb.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 ''' Check: -Individual files are valid diff --git a/utils/clean_json5.py b/utils/clean_json5.py index a5fa0287..aaf9b712 100644 --- a/utils/clean_json5.py +++ b/utils/clean_json5.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 pyjson5 import simplejson import sys diff --git a/utils/cleandb.py b/utils/cleandb.py index 0bdc2c10..882c1f09 100644 --- a/utils/cleandb.py +++ b/utils/cleandb.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, re import os diff --git a/utils/cmp.py b/utils/cmp.py index d01671db..f7ad6801 100644 --- a/utils/cmp.py +++ b/utils/cmp.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 """ Python 3 removed the 'cmp' function and raises a Type error when you try to compare different types. This module recreates Python 2 style 'cmp' function diff --git a/utils/create_timing_worksheet_db.py b/utils/create_timing_worksheet_db.py index 845b7af8..e6dd4cfb 100644 --- a/utils/create_timing_worksheet_db.py +++ b/utils/create_timing_worksheet_db.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 takes a JSON file generated with write_timing_info.tcl and generates a spreadsheet with the prjxray timing model and compares it with the interconnect timing output from Vivado. diff --git a/utils/dbfixup.py b/utils/dbfixup.py index 58f936b6..015718a3 100755 --- a/utils/dbfixup.py +++ b/utils/dbfixup.py @@ -1,4 +1,13 @@ -#/usr/bin/env python3 +#!/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, os, re import itertools diff --git a/utils/diff_db_bits.py b/utils/diff_db_bits.py index 083f9258..ff42b182 100755 --- a/utils/diff_db_bits.py +++ b/utils/diff_db_bits.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 argparse import subprocess import tempfile diff --git a/utils/diff_db_json.py b/utils/diff_db_json.py index 2144d5c7..2b98cf4f 100755 --- a/utils/diff_db_json.py +++ b/utils/diff_db_json.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 argparse import subprocess import tempfile diff --git a/utils/fasm2frames.py b/utils/fasm2frames.py index ef979c25..fe384db3 100755 --- a/utils/fasm2frames.py +++ b/utils/fasm2frames.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 from __future__ import print_function diff --git a/utils/fasm2pips.py b/utils/fasm2pips.py index 862bb7a0..6e92af9b 100755 --- a/utils/fasm2pips.py +++ b/utils/fasm2pips.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 """ Tool for generating Vivavo commands to highlight objects from a FASM file. Currently this tool only highlights pips directly referenced in the FASM file. diff --git a/utils/fasm_pprint.py b/utils/fasm_pprint.py index 2b3d1d19..1463e6bf 100755 --- a/utils/fasm_pprint.py +++ b/utils/fasm_pprint.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 ''' Pretty print FASM. diff --git a/utils/find_missing_segbits.py b/utils/find_missing_segbits.py index 12ae1c84..7f062276 100755 --- a/utils/find_missing_segbits.py +++ b/utils/find_missing_segbits.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 allows to find missing segbits in the database. diff --git a/utils/group.py b/utils/group.py index 8a27cf18..34fa1984 100755 --- a/utils/group.py +++ b/utils/group.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 Reads tag group definition from a file and applies the tag grouping. diff --git a/utils/groupmask.py b/utils/groupmask.py index db658ff1..87da46ce 100644 --- a/utils/groupmask.py +++ b/utils/groupmask.py @@ -1,4 +1,13 @@ -#/usr/bin/env python3 +#!/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, os, re from prjxray import util diff --git a/utils/info_md.py b/utils/info_md.py index cd9d292e..00638e81 100755 --- a/utils/info_md.py +++ b/utils/info_md.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 argparse import hashlib diff --git a/utils/makesdf.py b/utils/makesdf.py index 912e37f4..6ba2180c 100644 --- a/utils/makesdf.py +++ b/utils/makesdf.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 json import argparse diff --git a/utils/maskview.py b/utils/maskview.py index 15887aae..16cf5b33 100755 --- a/utils/maskview.py +++ b/utils/maskview.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 tool allows to view segbits using a 2D frame vs. bit plot. It can read either mask.db files or segbits.db files. Multiple files can be read at once diff --git a/utils/mergedb.py b/utils/mergedb.py index 7699ed02..f3d477a3 100755 --- a/utils/mergedb.py +++ b/utils/mergedb.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 os, sys from prjxray import util diff --git a/utils/parsedb.py b/utils/parsedb.py index bda9e9ef..157e4162 100755 --- a/utils/parsedb.py +++ b/utils/parsedb.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, re from prjxray import util diff --git a/utils/quick_test.py b/utils/quick_test.py index c8ced2b2..2ca3a8ac 100755 --- a/utils/quick_test.py +++ b/utils/quick_test.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 from __future__ import print_function import prjxray.db import prjxray.util diff --git a/utils/sdfmerge.py b/utils/sdfmerge.py index 2c7081fe..75ea7b50 100644 --- a/utils/sdfmerge.py +++ b/utils/sdfmerge.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 argparse import json diff --git a/utils/segprint.py b/utils/segprint.py index c15c4b9f..87e8ce7e 100755 --- a/utils/segprint.py +++ b/utils/segprint.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 ''' Take raw .bits files and decode them to higher level functionality diff --git a/utils/segview.py b/utils/segview.py index 667e41e2..47ef88d1 100755 --- a/utils/segview.py +++ b/utils/segview.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 allows to load a number of .db or .rdb files and display bits in a nice visualization. diff --git a/utils/simpleroute.py b/utils/simpleroute.py index 90249bb1..0ba969b1 100755 --- a/utils/simpleroute.py +++ b/utils/simpleroute.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, os, json import pickle diff --git a/utils/sort_db.py b/utils/sort_db.py index daf940b1..7256b452 100755 --- a/utils/sort_db.py +++ b/utils/sort_db.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 """ Canonicalize the Project X-Ray database files by sorting. The aim is to reduce the diff output between runs to make it clearer what has changed. diff --git a/utils/sp6_bitstream_analyzer.py b/utils/sp6_bitstream_analyzer.py index 382aa674..f70b65d7 100755 --- a/utils/sp6_bitstream_analyzer.py +++ b/utils/sp6_bitstream_analyzer.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 ''' Spartan 6 bitstream analyzer tool. diff --git a/utils/test_fasm2frames.py b/utils/test_fasm2frames.py index 60fc4958..931bb592 100755 --- a/utils/test_fasm2frames.py +++ b/utils/test_fasm2frames.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 # TODO: need better coverage for different tile types from io import StringIO diff --git a/utils/tileconnloops.py b/utils/tileconnloops.py index 91bc3beb..ab55b4af 100755 --- a/utils/tileconnloops.py +++ b/utils/tileconnloops.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 # # Produces a complete database of wires in the ROI and their connections and tests if each # routing node is a tree (i.e. fails with an error when a loop is found). diff --git a/utils/tileconnwire.py b/utils/tileconnwire.py index babcf8ce..368d2df9 100755 --- a/utils/tileconnwire.py +++ b/utils/tileconnwire.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 os, sys, json diff --git a/utils/tilegrid_report.py b/utils/tilegrid_report.py index 2e04fb09..1b25cd28 100755 --- a/utils/tilegrid_report.py +++ b/utils/tilegrid_report.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 argparse from prjxray.db import Database from prjxray.grid import BlockType diff --git a/utils/verify_tile_connections.py b/utils/verify_tile_connections.py index 1eb743a0..b9b72380 100755 --- a/utils/verify_tile_connections.py +++ b/utils/verify_tile_connections.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 from __future__ import print_function import prjxray.db import prjxray.lib diff --git a/utils/xjson.py b/utils/xjson.py index 7affd767..d45cfa02 100755 --- a/utils/xjson.py +++ b/utils/xjson.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 json from prjxray.xjson import pprint diff --git a/utils/xyaml.py b/utils/xyaml.py index 08e9e357..40661e8c 100755 --- a/utils/xyaml.py +++ b/utils/xyaml.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 io import re import yaml