SPDX identifiers
diff --git a/add_spdx.py b/add_spdx.py index a02a560..506f769 100644 --- a/add_spdx.py +++ b/add_spdx.py
@@ -1,3 +1,17 @@ +#SPDX-FileCopyrightText: 2020 Anish Singhani +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# SPDX-License-Identifier: Apache-2.0 import glob import re import subprocess @@ -8,6 +22,7 @@ paths = glob.glob("**/*", recursive=True) PREFIXES = [("//", "//", ""), ("#", "#", "")] +EXCLUDE = ["openlane/", "gds/", "lef/", "mag/", "def/", "maglef/", "spi/", "qflow/", "ngspice/"] fulltext = """ SPDX-FileCopyrightText: 2020 Anish Singhani @@ -27,7 +42,7 @@ """.strip() for path in paths: - if not istext(path): + if not istext(path) or any(x in path for x in EXCLUDE): print("Skipping {}...".format(path)) else: print("Checking {}...".format(path)) @@ -92,3 +107,4 @@ else: print("Leaving as-is") +
diff --git a/compress.py b/compress.py index 34faca8..b79e36b 100644 --- a/compress.py +++ b/compress.py
@@ -1,3 +1,17 @@ +#SPDX-FileCopyrightText: 2020 Anish Singhani +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# SPDX-License-Identifier: Apache-2.0 import os import subprocess @@ -36,3 +50,4 @@ os.chdir(basedir) print("Done compressing {}".format(filename)) +
diff --git a/crypto-accelerator-chip b/crypto-accelerator-chip index c038658..5b0f707 160000 --- a/crypto-accelerator-chip +++ b/crypto-accelerator-chip
@@ -1 +1 @@ -Subproject commit c0386584a182909fe0daffd58c4ae66f4a773fa1 +Subproject commit 5b0f70759c89a0bcb631755c2f7166e690e101ce
diff --git a/migrate-accel-gds.sh b/migrate-accel-gds.sh index 8e93d09..9a05e31 100755 --- a/migrate-accel-gds.sh +++ b/migrate-accel-gds.sh
@@ -1,3 +1,17 @@ +#SPDX-FileCopyrightText: 2020 Anish Singhani +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# SPDX-License-Identifier: Apache-2.0 if [ "$1" == "" ] || [ $# -gt 1 ]; then echo "Usage: $0 <path to accelerator_top run>" exit 0 @@ -9,3 +23,4 @@ cp $1/results/magic/accelerator_top.lef.mag maglef/accelerator_top.mag cp $1/results/magic/accelerator_top.mag mag/accelerator_top.mag cp $1/results/magic/accelerator_top.spice spi/lvs/accelerator_top.spice +
diff --git a/migrate-dv.sh b/migrate-dv.sh index 118a498..1550d6b 100755 --- a/migrate-dv.sh +++ b/migrate-dv.sh
@@ -1,3 +1,17 @@ +#SPDX-FileCopyrightText: 2020 Anish Singhani +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# SPDX-License-Identifier: Apache-2.0 cd verilog/dv/caravel/ cp -asn $(pwd)/../../../crypto-accelerator-chip/verilog/dv/caravel/accelerator/ . @@ -7,3 +21,4 @@ done cd ../../../ +
diff --git a/migrate-gl.sh b/migrate-gl.sh index eceb2de..806e20d 100755 --- a/migrate-gl.sh +++ b/migrate-gl.sh
@@ -1,3 +1,17 @@ +#SPDX-FileCopyrightText: 2020 Anish Singhani +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# SPDX-License-Identifier: Apache-2.0 if [ "$1" == "" ] || [ $# -gt 1 ]; then echo "Usage: $0 <path to accelerator_top run>" exit 0 @@ -5,3 +19,4 @@ cp openlane/user_project_wrapper/runs/user_project_wrapper/results/synthesis/user_project_wrapper.synthesis.v verilog/gl/user_project_wrapper.v cp $1/results/synthesis/accelerator_top.synthesis.v verilog/gl/accelerator_top.v +