diff --git a/License b/License deleted file mode 100644 index 682b6d3..0000000 --- a/License +++ /dev/null @@ -1,13 +0,0 @@ - DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE - Version 3, April 2008 - - Copyright (C) 2021 Luke Wren - - Everyone is permitted to copy and distribute verbatim or modified - copies of this license document and accompanying software, and - changing either is allowed. - - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. You just DO WHAT THE FUCK YOU WANT TO. - 1. We're NOT RESPONSIBLE WHEN IT DOESN'T FUCKING WORK. diff --git a/example_soc/fpga/fpga_icebreaker.v b/example_soc/fpga/fpga_icebreaker.v index 200dff9..a31d9bc 100644 --- a/example_soc/fpga/fpga_icebreaker.v +++ b/example_soc/fpga/fpga_icebreaker.v @@ -1,19 +1,7 @@ -/********************************************************************** - * DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE * - * Version 3, April 2008 * - * * - * Copyright (C) 2021 Luke Wren * - * * - * Everyone is permitted to copy and distribute verbatim or modified * - * copies of this license document and accompanying software, and * - * changing either is allowed. * - * * - * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION * - * * - * 0. You just DO WHAT THE FUCK YOU WANT TO. * - * 1. We're NOT RESPONSIBLE WHEN IT DOESN'T FUCKING WORK. * - * * - *********************************************************************/ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ // FPGA toplevel for ../soc/example_soc.v on an iCEBreaker dev board diff --git a/example_soc/fpga/fpga_ulx3s.v b/example_soc/fpga/fpga_ulx3s.v index 5277660..284e6c8 100644 --- a/example_soc/fpga/fpga_ulx3s.v +++ b/example_soc/fpga/fpga_ulx3s.v @@ -1,19 +1,7 @@ -/********************************************************************** - * DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE * - * Version 3, April 2008 * - * * - * Copyright (C) 2021 Luke Wren * - * * - * Everyone is permitted to copy and distribute verbatim or modified * - * copies of this license document and accompanying software, and * - * changing either is allowed. * - * * - * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION * - * * - * 0. You just DO WHAT THE FUCK YOU WANT TO. * - * 1. We're NOT RESPONSIBLE WHEN IT DOESN'T FUCKING WORK. * - * * - *********************************************************************/ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ `default_nettype none @@ -45,13 +33,18 @@ fpga_reset #( example_soc #( .DTM_TYPE ("ECP5"), - .SRAM_DEPTH (1 << 15), + .SRAM_DEPTH (1 << 12), - .EXTENSION_C (0), .EXTENSION_M (1), - .CSR_COUNTER (1), - .MUL_FAST (1), - .MULDIV_UNROLL (2) + .EXTENSION_A (1), + .EXTENSION_C (0), + .EXTENSION_ZBA (0), + .EXTENSION_ZBB (0), + .EXTENSION_ZBC (0), + .EXTENSION_ZBS (0), + .CSR_COUNTER (0), + .MUL_FAST (0), + .MULDIV_UNROLL (1) ) soc_u ( .clk (clk_sys), .rst_n (rst_n_sys), diff --git a/example_soc/soc/example_soc.v b/example_soc/soc/example_soc.v index e1c339b..4ad4878 100644 --- a/example_soc/soc/example_soc.v +++ b/example_soc/soc/example_soc.v @@ -1,19 +1,7 @@ -/********************************************************************** - * DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE * - * Version 3, April 2008 * - * * - * Copyright (C) 2021 Luke Wren * - * * - * Everyone is permitted to copy and distribute verbatim or modified * - * copies of this license document and accompanying software, and * - * changing either is allowed. * - * * - * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION * - * * - * 0. You just DO WHAT THE FUCK YOU WANT TO. * - * 1. We're NOT RESPONSIBLE WHEN IT DOESN'T FUCKING WORK. * - * * - *********************************************************************/ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ // Example file integrating a Hazard3 processor, processor JTAG + debug // components, some memory and a UART. diff --git a/hdl/arith/hazard3_alu.v b/hdl/arith/hazard3_alu.v index 15a9c43..e4d034e 100644 --- a/hdl/arith/hazard3_alu.v +++ b/hdl/arith/hazard3_alu.v @@ -1,19 +1,7 @@ -/********************************************************************** - * DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE * - * Version 3, April 2008 * - * * - * Copyright (C) 2021 Luke Wren * - * * - * Everyone is permitted to copy and distribute verbatim or modified * - * copies of this license document and accompanying software, and * - * changing either is allowed. * - * * - * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION * - * * - * 0. You just DO WHAT THE FUCK YOU WANT TO. * - * 1. We're NOT RESPONSIBLE WHEN IT DOESN'T FUCKING WORK. * - * * - *********************************************************************/ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ `default_nettype none diff --git a/hdl/arith/hazard3_amo_alu.v b/hdl/arith/hazard3_amo_alu.v index ed8884e..74925d2 100644 --- a/hdl/arith/hazard3_amo_alu.v +++ b/hdl/arith/hazard3_amo_alu.v @@ -1,19 +1,7 @@ -/********************************************************************** - * DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE * - * Version 3, April 2008 * - * * - * Copyright (C) 2021 Luke Wren * - * * - * Everyone is permitted to copy and distribute verbatim or modified * - * copies of this license document and accompanying software, and * - * changing either is allowed. * - * * - * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION * - * * - * 0. You just DO WHAT THE FUCK YOU WANT TO. * - * 1. We're NOT RESPONSIBLE WHEN IT DOESN'T FUCKING WORK. * - * * - *********************************************************************/ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ // Separate ALU for atomic memory operations diff --git a/hdl/arith/hazard3_mul_fast.v b/hdl/arith/hazard3_mul_fast.v index da50f1f..59d0f6a 100644 --- a/hdl/arith/hazard3_mul_fast.v +++ b/hdl/arith/hazard3_mul_fast.v @@ -1,19 +1,7 @@ -/********************************************************************** - * DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE * - * Version 3, April 2008 * - * * - * Copyright (C) 2021 Luke Wren * - * * - * Everyone is permitted to copy and distribute verbatim or modified * - * copies of this license document and accompanying software, and * - * changing either is allowed. * - * * - * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION * - * * - * 0. You just DO WHAT THE FUCK YOU WANT TO. * - * 1. We're NOT RESPONSIBLE WHEN IT DOESN'T FUCKING WORK. * - * * - *********************************************************************/ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ // MUL-only (cfg: MUL_FAST) and MUL/MULH/MULHU/MULHSU (cfg: MUL_FAST && // MULH_FAST) are handled by different circuits. In either case it's a simple diff --git a/hdl/arith/hazard3_muldiv_seq.v b/hdl/arith/hazard3_muldiv_seq.v index a2ba493..7957ac0 100644 --- a/hdl/arith/hazard3_muldiv_seq.v +++ b/hdl/arith/hazard3_muldiv_seq.v @@ -1,19 +1,7 @@ -/********************************************************************** - * DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE * - * Version 3, April 2008 * - * * - * Copyright (C) 2018 Luke Wren * - * * - * Everyone is permitted to copy and distribute verbatim or modified * - * copies of this license document and accompanying software, and * - * changing either is allowed. * - * * - * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION * - * * - * 0. You just DO WHAT THE FUCK YOU WANT TO. * - * 1. We're NOT RESPONSIBLE WHEN IT DOESN'T FUCKING WORK. * - * * - *********************************************************************/ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ // Combined multiply/divide/modulo circuit. // All operations performed at 1 bit per clock; aiming for minimal resource usage. diff --git a/hdl/arith/hazard3_priority_encode.v b/hdl/arith/hazard3_priority_encode.v index 7efdd4f..2c1da14 100644 --- a/hdl/arith/hazard3_priority_encode.v +++ b/hdl/arith/hazard3_priority_encode.v @@ -1,19 +1,7 @@ -/****************************************************************************** - * DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE * - * Version 3, April 2008 * - * * - * Copyright (C) 2019 Luke Wren * - * * - * Everyone is permitted to copy and distribute verbatim or modified * - * copies of this license document and accompanying software, and * - * changing either is allowed. * - * * - * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION * - * * - * 0. You just DO WHAT THE FUCK YOU WANT TO. * - * 1. We're NOT RESPONSIBLE WHEN IT DOESN'T FUCKING WORK. * - * * - *****************************************************************************/ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ // Really something like this should be in a utility library (or the language!), // but Hazard3 is supposed to be self-contained diff --git a/hdl/arith/hazard3_shift_barrel.v b/hdl/arith/hazard3_shift_barrel.v index 7f65ec9..a00a081 100644 --- a/hdl/arith/hazard3_shift_barrel.v +++ b/hdl/arith/hazard3_shift_barrel.v @@ -1,19 +1,7 @@ -/********************************************************************** - * DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE * - * Version 3, April 2008 * - * * - * Copyright (C) 2018 Luke Wren * - * * - * Everyone is permitted to copy and distribute verbatim or modified * - * copies of this license document and accompanying software, and * - * changing either is allowed. * - * * - * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION * - * * - * 0. You just DO WHAT THE FUCK YOU WANT TO. * - * 1. We're NOT RESPONSIBLE WHEN IT DOESN'T FUCKING WORK. * - * * - *********************************************************************/ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ // Implement the three shifts (left logical, right logical, right arithmetic) // using a single log-type barrel shifter. Around 240 LUTs for 32 bits. diff --git a/hdl/debug/cdc/hazard3_apb_async_bridge.v b/hdl/debug/cdc/hazard3_apb_async_bridge.v index 107816d..02dd75f 100644 --- a/hdl/debug/cdc/hazard3_apb_async_bridge.v +++ b/hdl/debug/cdc/hazard3_apb_async_bridge.v @@ -1,19 +1,7 @@ -/********************************************************************** - * DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE * - * Version 3, April 2008 * - * * - * Copyright (C) 2021 Luke Wren * - * * - * Everyone is permitted to copy and distribute verbatim or modified * - * copies of this license document and accompanying software, and * - * changing either is allowed. * - * * - * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION * - * * - * 0. You just DO WHAT THE FUCK YOU WANT TO. * - * 1. We're NOT RESPONSIBLE WHEN IT DOESN'T FUCKING WORK. * - * * - *********************************************************************/ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ // APB-to-APB asynchronous bridge for connecting DTM to DM, in case DTM is in // a different clock domain (e.g. running directly from crystal to get a diff --git a/hdl/debug/cdc/hazard3_reset_sync.v b/hdl/debug/cdc/hazard3_reset_sync.v index 22f7798..3c0d342 100644 --- a/hdl/debug/cdc/hazard3_reset_sync.v +++ b/hdl/debug/cdc/hazard3_reset_sync.v @@ -1,19 +1,7 @@ -/********************************************************************** - * DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE * - * Version 3, April 2008 * - * * - * Copyright (C) 2021 Luke Wren * - * * - * Everyone is permitted to copy and distribute verbatim or modified * - * copies of this license document and accompanying software, and * - * changing either is allowed. * - * * - * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION * - * * - * 0. You just DO WHAT THE FUCK YOU WANT TO. * - * 1. We're NOT RESPONSIBLE WHEN IT DOESN'T FUCKING WORK. * - * * - *********************************************************************/ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ // The output is asserted asynchronously when the input is asserted, // but deasserted synchronously when clocked with the input deasserted. diff --git a/hdl/debug/cdc/hazard3_sync_1bit.v b/hdl/debug/cdc/hazard3_sync_1bit.v index 74ba645..098bec4 100644 --- a/hdl/debug/cdc/hazard3_sync_1bit.v +++ b/hdl/debug/cdc/hazard3_sync_1bit.v @@ -1,19 +1,7 @@ -/********************************************************************** - * DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE * - * Version 3, April 2008 * - * * - * Copyright (C) 2021 Luke Wren * - * * - * Everyone is permitted to copy and distribute verbatim or modified * - * copies of this license document and accompanying software, and * - * changing either is allowed. * - * * - * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION * - * * - * 0. You just DO WHAT THE FUCK YOU WANT TO. * - * 1. We're NOT RESPONSIBLE WHEN IT DOESN'T FUCKING WORK. * - * * - *********************************************************************/ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ // A 2FF synchronizer to mitigate metastabilities. This is a baseline // implementation -- you should replace it with cells specific to your diff --git a/hdl/debug/dm/hazard3_dm.v b/hdl/debug/dm/hazard3_dm.v index 41c048c..e851226 100644 --- a/hdl/debug/dm/hazard3_dm.v +++ b/hdl/debug/dm/hazard3_dm.v @@ -1,19 +1,7 @@ -/********************************************************************** - * DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE * - * Version 3, April 2008 * - * * - * Copyright (C) 2021 Luke Wren * - * * - * Everyone is permitted to copy and distribute verbatim or modified * - * copies of this license document and accompanying software, and * - * changing either is allowed. * - * * - * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION * - * * - * 0. You just DO WHAT THE FUCK YOU WANT TO. * - * 1. We're NOT RESPONSIBLE WHEN IT DOESN'T FUCKING WORK. * - * * - *********************************************************************/ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ // RISC-V Debug Module for Hazard3 diff --git a/hdl/hazard3_config.vh b/hdl/hazard3_config.vh index 18b5adc..1f97cc4 100644 --- a/hdl/hazard3_config.vh +++ b/hdl/hazard3_config.vh @@ -1,3 +1,8 @@ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ + // Hazard3 CPU configuration parameters // To configure Hazard3 you can either edit this file, or set parameters on diff --git a/hdl/hazard3_config_inst.vh b/hdl/hazard3_config_inst.vh index 4a264e4..d6844b3 100644 --- a/hdl/hazard3_config_inst.vh +++ b/hdl/hazard3_config_inst.vh @@ -1,3 +1,8 @@ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ + // Pass-through of parameters defined in hazard3_config.vh, so that these can // be set at instantiation rather than editing the config file, and will flow // correctly down through the hierarchy. diff --git a/hdl/hazard3_core.v b/hdl/hazard3_core.v index 7199a8f..48f143a 100644 --- a/hdl/hazard3_core.v +++ b/hdl/hazard3_core.v @@ -1,19 +1,7 @@ -/********************************************************************** - * DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE * - * Version 3, April 2008 * - * * - * Copyright (C) 2021 Luke Wren * - * * - * Everyone is permitted to copy and distribute verbatim or modified * - * copies of this license document and accompanying software, and * - * changing either is allowed. * - * * - * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION * - * * - * 0. You just DO WHAT THE FUCK YOU WANT TO. * - * 1. We're NOT RESPONSIBLE WHEN IT DOESN'T FUCKING WORK. * - * * - *********************************************************************/ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ `default_nettype none diff --git a/hdl/hazard3_cpu_1port.v b/hdl/hazard3_cpu_1port.v index 554df58..af0a91d 100644 --- a/hdl/hazard3_cpu_1port.v +++ b/hdl/hazard3_cpu_1port.v @@ -1,19 +1,7 @@ -/********************************************************************** - * DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE * - * Version 3, April 2008 * - * * - * Copyright (C) 2021 Luke Wren * - * * - * Everyone is permitted to copy and distribute verbatim or modified * - * copies of this license document and accompanying software, and * - * changing either is allowed. * - * * - * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION * - * * - * 0. You just DO WHAT THE FUCK YOU WANT TO. * - * 1. We're NOT RESPONSIBLE WHEN IT DOESN'T FUCKING WORK. * - * * - *********************************************************************/ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ // Single-ported top level file for Hazard3 CPU. This file instantiates the // Hazard3 core, and arbitrates its instruction fetch and load/store signals diff --git a/hdl/hazard3_cpu_2port.v b/hdl/hazard3_cpu_2port.v index e0c625c..da83f0a 100644 --- a/hdl/hazard3_cpu_2port.v +++ b/hdl/hazard3_cpu_2port.v @@ -1,19 +1,7 @@ -/********************************************************************** - * DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE * - * Version 3, April 2008 * - * * - * Copyright (C) 2021 Luke Wren * - * * - * Everyone is permitted to copy and distribute verbatim or modified * - * copies of this license document and accompanying software, and * - * changing either is allowed. * - * * - * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION * - * * - * 0. You just DO WHAT THE FUCK YOU WANT TO. * - * 1. We're NOT RESPONSIBLE WHEN IT DOESN'T FUCKING WORK. * - * * - *********************************************************************/ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ // Dual-ported top level file for Hazard3 CPU. This file instantiates the // Hazard3 core, and interfaces its instruction fetch and load/store signals diff --git a/hdl/hazard3_csr.v b/hdl/hazard3_csr.v index 4b30485..9d77422 100644 --- a/hdl/hazard3_csr.v +++ b/hdl/hazard3_csr.v @@ -1,19 +1,7 @@ -/****************************************************************************** - * DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE * - * Version 3, April 2008 * - * * - * Copyright (C) 2021 Luke Wren * - * * - * Everyone is permitted to copy and distribute verbatim or modified * - * copies of this license document and accompanying software, and * - * changing either is allowed. * - * * - * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION * - * * - * 0. You just DO WHAT THE FUCK YOU WANT TO. * - * 1. We're NOT RESPONSIBLE WHEN IT DOESN'T FUCKING WORK. * - * * - *****************************************************************************/ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ `default_nettype none diff --git a/hdl/hazard3_decode.v b/hdl/hazard3_decode.v index b6d07ff..8f18de3 100644 --- a/hdl/hazard3_decode.v +++ b/hdl/hazard3_decode.v @@ -1,19 +1,7 @@ -/****************************************************************************** - * DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE * - * Version 3, April 2008 * - * * - * Copyright (C) 2021 Luke Wren * - * * - * Everyone is permitted to copy and distribute verbatim or modified * - * copies of this license document and accompanying software, and * - * changing either is allowed. * - * * - * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION * - * * - * 0. You just DO WHAT THE FUCK YOU WANT TO. * - * 1. We're NOT RESPONSIBLE WHEN IT DOESN'T FUCKING WORK. * - * * - *****************************************************************************/ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ `default_nettype none diff --git a/hdl/hazard3_frontend.v b/hdl/hazard3_frontend.v index 3bdbd67..02ac0c0 100644 --- a/hdl/hazard3_frontend.v +++ b/hdl/hazard3_frontend.v @@ -1,19 +1,7 @@ -/****************************************************************************** - * DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE * - * Version 3, April 2008 * - * * - * Copyright (C) 2021 Luke Wren * - * * - * Everyone is permitted to copy and distribute verbatim or modified * - * copies of this license document and accompanying software, and * - * changing either is allowed. * - * * - * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION * - * * - * 0. You just DO WHAT THE FUCK YOU WANT TO. * - * 1. We're NOT RESPONSIBLE WHEN IT DOESN'T FUCKING WORK. * - * * - *****************************************************************************/ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ `default_nettype none diff --git a/hdl/hazard3_instr_decompress.v b/hdl/hazard3_instr_decompress.v index b44e2ba..3132b85 100644 --- a/hdl/hazard3_instr_decompress.v +++ b/hdl/hazard3_instr_decompress.v @@ -1,19 +1,7 @@ -/****************************************************************************** - * DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE * - * Version 3, April 2008 * - * * - * Copyright (C) 2021 Luke Wren * - * * - * Everyone is permitted to copy and distribute verbatim or modified * - * copies of this license document and accompanying software, and * - * changing either is allowed. * - * * - * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION * - * * - * 0. You just DO WHAT THE FUCK YOU WANT TO. * - * 1. We're NOT RESPONSIBLE WHEN IT DOESN'T FUCKING WORK. * - * * - *****************************************************************************/ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ `default_nettype none diff --git a/hdl/hazard3_ops.vh b/hdl/hazard3_ops.vh index 19cade0..5248cc3 100644 --- a/hdl/hazard3_ops.vh +++ b/hdl/hazard3_ops.vh @@ -1,3 +1,7 @@ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ // ALU operation selectors diff --git a/hdl/hazard3_regfile_1w2r.v b/hdl/hazard3_regfile_1w2r.v index 8f90776..b6fbca4 100644 --- a/hdl/hazard3_regfile_1w2r.v +++ b/hdl/hazard3_regfile_1w2r.v @@ -1,19 +1,7 @@ -/********************************************************************** - * DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE * - * Version 3, April 2008 * - * * - * Copyright (C) 2018 Luke Wren * - * * - * Everyone is permitted to copy and distribute verbatim or modified * - * copies of this license document and accompanying software, and * - * changing either is allowed. * - * * - * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION * - * * - * 0. You just DO WHAT THE FUCK YOU WANT TO. * - * 1. We're NOT RESPONSIBLE WHEN IT DOESN'T FUCKING WORK. * - * * - *********************************************************************/ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ // Register file // Single write port, dual read port diff --git a/hdl/hazard3_width_const.vh b/hdl/hazard3_width_const.vh index 1926cb8..5039f63 100644 --- a/hdl/hazard3_width_const.vh +++ b/hdl/hazard3_width_const.vh @@ -1,3 +1,8 @@ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ + // These really ought to be localparams, but are occasionally needed for // passing flags around between modules, so are made available as parameters // instead. It's ugly, but better scope hygiene than the preprocessor. These diff --git a/hdl/peri/hazard3_riscv_timer.v b/hdl/peri/hazard3_riscv_timer.v index 6400543..2644476 100644 --- a/hdl/peri/hazard3_riscv_timer.v +++ b/hdl/peri/hazard3_riscv_timer.v @@ -1,19 +1,7 @@ -/********************************************************************** - * DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE * - * Version 3, April 2008 * - * * - * Copyright (C) 2021 Luke Wren * - * * - * Everyone is permitted to copy and distribute verbatim or modified * - * copies of this license document and accompanying software, and * - * changing either is allowed. * - * * - * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION * - * * - * 0. You just DO WHAT THE FUCK YOU WANT TO. * - * 1. We're NOT RESPONSIBLE WHEN IT DOESN'T FUCKING WORK. * - * * - *********************************************************************/ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ // Implementation of standard RISC-V timer (mtime/mtimeh mtimecmp/mtimecmph) // accessed over 32-bit data bus. diff --git a/hdl/rv_opcodes.vh b/hdl/rv_opcodes.vh index c8fa9c0..ce11ba8 100644 --- a/hdl/rv_opcodes.vh +++ b/hdl/rv_opcodes.vh @@ -1,3 +1,8 @@ +/*****************************************************************************\ +| Copyright (C) 2021 Luke Wren | +| SPDX-License-Identifier: Apache-2.0 | +\*****************************************************************************/ + localparam RV_RS1_LSB = 15; localparam RV_RS1_BITS = 5; localparam RV_RS2_LSB = 20;