Add missing license headers
diff --git a/hw/dv/dpi/usbdpi/test_crc.c b/hw/dv/dpi/usbdpi/test_crc.c
index d89703f..70e7526 100644
--- a/hw/dv/dpi/usbdpi/test_crc.c
+++ b/hw/dv/dpi/usbdpi/test_crc.c
@@ -1,3 +1,7 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
+
#include <stdio.h>
#include <stdlib.h>
diff --git a/hw/dv/tools/testplans/csr_testplan.hjson b/hw/dv/tools/testplans/csr_testplan.hjson
index 4b695ab..efc8e29 100644
--- a/hw/dv/tools/testplans/csr_testplan.hjson
+++ b/hw/dv/tools/testplans/csr_testplan.hjson
@@ -1,3 +1,6 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
{
entries: [
{
diff --git a/hw/dv/tools/testplans/intr_test_testplan.hjson b/hw/dv/tools/testplans/intr_test_testplan.hjson
index da2747f..b285ac3 100644
--- a/hw/dv/tools/testplans/intr_test_testplan.hjson
+++ b/hw/dv/tools/testplans/intr_test_testplan.hjson
@@ -1,3 +1,6 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
{
entries: [
{
diff --git a/hw/dv/tools/testplans/mem_testplan.hjson b/hw/dv/tools/testplans/mem_testplan.hjson
index c2d2b8b..115ec8e 100644
--- a/hw/dv/tools/testplans/mem_testplan.hjson
+++ b/hw/dv/tools/testplans/mem_testplan.hjson
@@ -1,3 +1,6 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
{
entries: [
{
diff --git a/hw/dv/tools/testplans/tl_device_access_types_testplan.hjson b/hw/dv/tools/testplans/tl_device_access_types_testplan.hjson
index 641c11e..97c5267 100644
--- a/hw/dv/tools/testplans/tl_device_access_types_testplan.hjson
+++ b/hw/dv/tools/testplans/tl_device_access_types_testplan.hjson
@@ -1,3 +1,6 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
{
entries: [
{
diff --git a/hw/ip/aes/model/aes_example.c b/hw/ip/aes/model/aes_example.c
index 9b995cc..f1aa85f 100644
--- a/hw/ip/aes/model/aes_example.c
+++ b/hw/ip/aes/model/aes_example.c
@@ -1,3 +1,7 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
+
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/hw/ip/prim/rtl/prim_lfsr.sv b/hw/ip/prim/rtl/prim_lfsr.sv
index 1e6fb37..b76f825 100644
--- a/hw/ip/prim/rtl/prim_lfsr.sv
+++ b/hw/ip/prim/rtl/prim_lfsr.sv
@@ -1,3 +1,4 @@
+// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
diff --git a/hw/ip/rv_core_ibex/dv/tests/core_ibex_base_test.sv b/hw/ip/rv_core_ibex/dv/tests/core_ibex_base_test.sv
index 30637eb..bb3aec8 100644
--- a/hw/ip/rv_core_ibex/dv/tests/core_ibex_base_test.sv
+++ b/hw/ip/rv_core_ibex/dv/tests/core_ibex_base_test.sv
@@ -1,3 +1,7 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
+
// TODO(taliu) extend this class with the common base test
class core_ibex_base_test extends uvm_test;
diff --git a/hw/ip/rv_dm/dv/probe.tcl b/hw/ip/rv_dm/dv/probe.tcl
index 2de47bc..968eccc 100644
--- a/hw/ip/rv_dm/dv/probe.tcl
+++ b/hw/ip/rv_dm/dv/probe.tcl
@@ -1,3 +1,7 @@
+# Copyright lowRISC contributors.
+# Licensed under the Apache License, Version 2.0, see LICENSE for details.
+# SPDX-License-Identifier: Apache-2.0
+
database -shm -open waves.shm -default
probe -create -shm tb -depth all -all -mem
run
diff --git a/hw/ip/rv_plic/dv/probe.tcl b/hw/ip/rv_plic/dv/probe.tcl
index 64f5733..a00b14e 100644
--- a/hw/ip/rv_plic/dv/probe.tcl
+++ b/hw/ip/rv_plic/dv/probe.tcl
@@ -1,3 +1,7 @@
+# Copyright lowRISC contributors.
+# Licensed under the Apache License, Version 2.0, see LICENSE for details.
+# SPDX-License-Identifier: Apache-2.0
+
database -shm -open waves.shm -default
probe -create -shm tb -depth all -all -mem
#probe -create -shm tb -depth all
diff --git a/hw/ip/trial1/dv/bus_pkg.sv b/hw/ip/trial1/dv/bus_pkg.sv
index 8e4a8cf..a2d5ddc 100644
--- a/hw/ip/trial1/dv/bus_pkg.sv
+++ b/hw/ip/trial1/dv/bus_pkg.sv
@@ -1,3 +1,7 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
+
package bus_pkg;
typedef struct packed {
diff --git a/hw/ip/trial1/dv/tb.sv b/hw/ip/trial1/dv/tb.sv
index 8d221b3..ed8ddec 100644
--- a/hw/ip/trial1/dv/tb.sv
+++ b/hw/ip/trial1/dv/tb.sv
@@ -1,3 +1,7 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
+
module tb;
import tlul_pkg::*;
diff --git a/hw/ip/trial1/dv/trial1_test.sv b/hw/ip/trial1/dv/trial1_test.sv
index 8a37d4b..9b67c3f 100644
--- a/hw/ip/trial1/dv/trial1_test.sv
+++ b/hw/ip/trial1/dv/trial1_test.sv
@@ -1,3 +1,7 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
+
import tlul_pkg::*;
import trial1_reg_pkg::*;
diff --git a/hw/ip/uart/dv/uart_testplan.hjson b/hw/ip/uart/dv/uart_testplan.hjson
index 6a97b00..7a3cba6 100644
--- a/hw/ip/uart/dv/uart_testplan.hjson
+++ b/hw/ip/uart/dv/uart_testplan.hjson
@@ -1,3 +1,6 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
{
name: "uart"
import_testplans: ["hw/dv/tools/testplans/csr_testplan.hjson",
diff --git a/sw/boot_rom/bootstrap.h b/sw/boot_rom/bootstrap.h
index 03ea92f..e9434fb 100644
--- a/sw/boot_rom/bootstrap.h
+++ b/sw/boot_rom/bootstrap.h
@@ -1,3 +1,7 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
+
#ifndef _F_BOOTSTRAP_H__
#define _F_BOOTSTRAP_H__
diff --git a/sw/boot_rom/crt0.S b/sw/boot_rom/crt0.S
index ac53f7f..35c6fc4 100644
--- a/sw/boot_rom/crt0.S
+++ b/sw/boot_rom/crt0.S
@@ -1,3 +1,7 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
+
.section .text
exception_handler:
diff --git a/sw/boot_rom/rom_link.ld b/sw/boot_rom/rom_link.ld
index c8fd0b5..1719116 100644
--- a/sw/boot_rom/rom_link.ld
+++ b/sw/boot_rom/rom_link.ld
@@ -1,3 +1,7 @@
+/* Copyright lowRISC contributors. */
+/* Licensed under the Apache License, Version 2.0, see LICENSE for details. */
+/* SPDX-License-Identifier: Apache-2.0 */
+
OUTPUT_ARCH(riscv)
/* required to correctly link newlib */
diff --git a/sw/exts/common/_crt.c b/sw/exts/common/_crt.c
index e176867..66721b3 100644
--- a/sw/exts/common/_crt.c
+++ b/sw/exts/common/_crt.c
@@ -1,3 +1,7 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
+
#include <string.h>
#include "common.h"
diff --git a/sw/exts/common/link.ld b/sw/exts/common/link.ld
index 93d7d61..803020a 100644
--- a/sw/exts/common/link.ld
+++ b/sw/exts/common/link.ld
@@ -1,3 +1,7 @@
+/* Copyright lowRISC contributors. */
+/* Licensed under the Apache License, Version 2.0, see LICENSE for details. */
+/* SPDX-License-Identifier: Apache-2.0 */
+
OUTPUT_ARCH(riscv)
/* required to correctly link newlib */
diff --git a/sw/lib/handler.h b/sw/lib/handler.h
index 6c99ef4..6af92d3 100644
--- a/sw/lib/handler.h
+++ b/sw/lib/handler.h
@@ -1,3 +1,7 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
+
#ifndef _HANDLER_H_
#define _HANDLER_H_
diff --git a/sw/lib/rv_timer.h b/sw/lib/rv_timer.h
index 7d74c6e..0228d0a 100644
--- a/sw/lib/rv_timer.h
+++ b/sw/lib/rv_timer.h
@@ -1,3 +1,7 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
+
#ifndef _F_LIB_RV_TIMER_H__
#define _F_LIB_RV_TIMER_H__
diff --git a/util/docgen/examples/badwen.hjson b/util/docgen/examples/badwen.hjson
index 99e4ef9..07eedad 100644
--- a/util/docgen/examples/badwen.hjson
+++ b/util/docgen/examples/badwen.hjson
@@ -1,3 +1,6 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
{
name: "BADWEN",
clock_primary: "clk_fixed",
diff --git a/util/docgen/examples/errors.hjson b/util/docgen/examples/errors.hjson
index 0730a8e..0e8e5a1 100644
--- a/util/docgen/examples/errors.hjson
+++ b/util/docgen/examples/errors.hjson
@@ -1,3 +1,6 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
{
name: "ERR",
clock_primary: "clk_fixed",
diff --git a/util/docgen/examples/gp.hjson b/util/docgen/examples/gp.hjson
index 0ccad3a..1329d55 100644
--- a/util/docgen/examples/gp.hjson
+++ b/util/docgen/examples/gp.hjson
@@ -1,3 +1,6 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
{
name: "GP",
clock_primary: "clk_fixed",
diff --git a/util/docgen/examples/uart.hjson b/util/docgen/examples/uart.hjson
index 9b39dfc..bf8e36c 100644
--- a/util/docgen/examples/uart.hjson
+++ b/util/docgen/examples/uart.hjson
@@ -1,3 +1,6 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
{
name: "UART",
clock_primary: "clk_fixed",
diff --git a/util/docgen/examples/uart16550.hjson b/util/docgen/examples/uart16550.hjson
index 4a9f160..c88f294 100644
--- a/util/docgen/examples/uart16550.hjson
+++ b/util/docgen/examples/uart16550.hjson
@@ -1,3 +1,6 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
{
name: "UART16550",
clock_primary: "clk_fixed",
diff --git a/util/docgen/examples/uartcfg.hjson b/util/docgen/examples/uartcfg.hjson
index c06be60..8f227d6 100644
--- a/util/docgen/examples/uartcfg.hjson
+++ b/util/docgen/examples/uartcfg.hjson
@@ -1,3 +1,6 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
{
name: "uart",
clock_primary: "clk_fixed",
diff --git a/util/docgen/examples/win.hjson b/util/docgen/examples/win.hjson
index 436af39..9d228d1 100644
--- a/util/docgen/examples/win.hjson
+++ b/util/docgen/examples/win.hjson
@@ -1,3 +1,6 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
{
name: "WIND",
clock_primary: "clk_fixed",
diff --git a/util/example/tlgen/top_jasmine.hjson b/util/example/tlgen/top_jasmine.hjson
index 200022f..64982dd 100644
--- a/util/example/tlgen/top_jasmine.hjson
+++ b/util/example/tlgen/top_jasmine.hjson
@@ -1,3 +1,6 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
{ name: "main",
clock: "main", // Main clock, used in sockets
nodes: [
diff --git a/util/example/xbar/rtl/xbar.sv b/util/example/xbar/rtl/xbar.sv
index f58f8d9..89e05a4 100644
--- a/util/example/xbar/rtl/xbar.sv
+++ b/util/example/xbar/rtl/xbar.sv
@@ -1,3 +1,7 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
+
module xbar(
input clk,
input rst_n,
diff --git a/util/testplanner/examples/common_testplan.hjson b/util/testplanner/examples/common_testplan.hjson
index 48a1e3b..5a5f288 100644
--- a/util/testplanner/examples/common_testplan.hjson
+++ b/util/testplanner/examples/common_testplan.hjson
@@ -1,3 +1,6 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
{
// only 'entries' supported in imported testplans for now
entries: [
diff --git a/util/testplanner/examples/foo_regr_results.hjson b/util/testplanner/examples/foo_regr_results.hjson
index 8b0ef20..be83aad 100644
--- a/util/testplanner/examples/foo_regr_results.hjson
+++ b/util/testplanner/examples/foo_regr_results.hjson
@@ -1,3 +1,6 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
{
timestamp: 10/10/2019 1:55AM
test_results: [
diff --git a/util/testplanner/examples/foo_testplan.hjson b/util/testplanner/examples/foo_testplan.hjson
index 6b6771b..bbb1bb8 100644
--- a/util/testplanner/examples/foo_testplan.hjson
+++ b/util/testplanner/examples/foo_testplan.hjson
@@ -1,3 +1,6 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
{
// 'name' is mandatory field
name: "foo"
diff --git a/util/uvmdvgen/testplan.hjson.tpl b/util/uvmdvgen/testplan.hjson.tpl
index 7a68d5d..bc32b68 100644
--- a/util/uvmdvgen/testplan.hjson.tpl
+++ b/util/uvmdvgen/testplan.hjson.tpl
@@ -1,3 +1,6 @@
+// Copyright lowRISC contributors.
+// Licensed under the Apache License, Version 2.0, see LICENSE for details.
+// SPDX-License-Identifier: Apache-2.0
{
name: "${name}"
// TODO: remove the common testplans if not applicable