New license headers: DWTFPL -> Apache 2.0
This commit is contained in:
parent
f1cda26bcc
commit
b0d28447ab
13
License
13
License
|
@ -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.
|
|
|
@ -1,19 +1,7 @@
|
||||||
/**********************************************************************
|
/*****************************************************************************\
|
||||||
* DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE *
|
| Copyright (C) 2021 Luke Wren |
|
||||||
* Version 3, April 2008 *
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
* *
|
\*****************************************************************************/
|
||||||
* 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. *
|
|
||||||
* *
|
|
||||||
*********************************************************************/
|
|
||||||
|
|
||||||
// FPGA toplevel for ../soc/example_soc.v on an iCEBreaker dev board
|
// FPGA toplevel for ../soc/example_soc.v on an iCEBreaker dev board
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
/**********************************************************************
|
/*****************************************************************************\
|
||||||
* DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE *
|
| Copyright (C) 2021 Luke Wren |
|
||||||
* Version 3, April 2008 *
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
* *
|
\*****************************************************************************/
|
||||||
* 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. *
|
|
||||||
* *
|
|
||||||
*********************************************************************/
|
|
||||||
|
|
||||||
`default_nettype none
|
`default_nettype none
|
||||||
|
|
||||||
|
@ -45,13 +33,18 @@ fpga_reset #(
|
||||||
|
|
||||||
example_soc #(
|
example_soc #(
|
||||||
.DTM_TYPE ("ECP5"),
|
.DTM_TYPE ("ECP5"),
|
||||||
.SRAM_DEPTH (1 << 15),
|
.SRAM_DEPTH (1 << 12),
|
||||||
|
|
||||||
.EXTENSION_C (0),
|
|
||||||
.EXTENSION_M (1),
|
.EXTENSION_M (1),
|
||||||
.CSR_COUNTER (1),
|
.EXTENSION_A (1),
|
||||||
.MUL_FAST (1),
|
.EXTENSION_C (0),
|
||||||
.MULDIV_UNROLL (2)
|
.EXTENSION_ZBA (0),
|
||||||
|
.EXTENSION_ZBB (0),
|
||||||
|
.EXTENSION_ZBC (0),
|
||||||
|
.EXTENSION_ZBS (0),
|
||||||
|
.CSR_COUNTER (0),
|
||||||
|
.MUL_FAST (0),
|
||||||
|
.MULDIV_UNROLL (1)
|
||||||
) soc_u (
|
) soc_u (
|
||||||
.clk (clk_sys),
|
.clk (clk_sys),
|
||||||
.rst_n (rst_n_sys),
|
.rst_n (rst_n_sys),
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
/**********************************************************************
|
/*****************************************************************************\
|
||||||
* DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE *
|
| Copyright (C) 2021 Luke Wren |
|
||||||
* Version 3, April 2008 *
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
* *
|
\*****************************************************************************/
|
||||||
* 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. *
|
|
||||||
* *
|
|
||||||
*********************************************************************/
|
|
||||||
|
|
||||||
// Example file integrating a Hazard3 processor, processor JTAG + debug
|
// Example file integrating a Hazard3 processor, processor JTAG + debug
|
||||||
// components, some memory and a UART.
|
// components, some memory and a UART.
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
/**********************************************************************
|
/*****************************************************************************\
|
||||||
* DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE *
|
| Copyright (C) 2021 Luke Wren |
|
||||||
* Version 3, April 2008 *
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
* *
|
\*****************************************************************************/
|
||||||
* 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. *
|
|
||||||
* *
|
|
||||||
*********************************************************************/
|
|
||||||
|
|
||||||
`default_nettype none
|
`default_nettype none
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
/**********************************************************************
|
/*****************************************************************************\
|
||||||
* DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE *
|
| Copyright (C) 2021 Luke Wren |
|
||||||
* Version 3, April 2008 *
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
* *
|
\*****************************************************************************/
|
||||||
* 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. *
|
|
||||||
* *
|
|
||||||
*********************************************************************/
|
|
||||||
|
|
||||||
// Separate ALU for atomic memory operations
|
// Separate ALU for atomic memory operations
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
/**********************************************************************
|
/*****************************************************************************\
|
||||||
* DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE *
|
| Copyright (C) 2021 Luke Wren |
|
||||||
* Version 3, April 2008 *
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
* *
|
\*****************************************************************************/
|
||||||
* 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. *
|
|
||||||
* *
|
|
||||||
*********************************************************************/
|
|
||||||
|
|
||||||
// MUL-only (cfg: MUL_FAST) and MUL/MULH/MULHU/MULHSU (cfg: MUL_FAST &&
|
// 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
|
// MULH_FAST) are handled by different circuits. In either case it's a simple
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
/**********************************************************************
|
/*****************************************************************************\
|
||||||
* DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE *
|
| Copyright (C) 2021 Luke Wren |
|
||||||
* Version 3, April 2008 *
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
* *
|
\*****************************************************************************/
|
||||||
* 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. *
|
|
||||||
* *
|
|
||||||
*********************************************************************/
|
|
||||||
|
|
||||||
// Combined multiply/divide/modulo circuit.
|
// Combined multiply/divide/modulo circuit.
|
||||||
// All operations performed at 1 bit per clock; aiming for minimal resource usage.
|
// All operations performed at 1 bit per clock; aiming for minimal resource usage.
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
/******************************************************************************
|
/*****************************************************************************\
|
||||||
* DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE *
|
| Copyright (C) 2021 Luke Wren |
|
||||||
* Version 3, April 2008 *
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
* *
|
\*****************************************************************************/
|
||||||
* 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. *
|
|
||||||
* *
|
|
||||||
*****************************************************************************/
|
|
||||||
|
|
||||||
// Really something like this should be in a utility library (or the language!),
|
// Really something like this should be in a utility library (or the language!),
|
||||||
// but Hazard3 is supposed to be self-contained
|
// but Hazard3 is supposed to be self-contained
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
/**********************************************************************
|
/*****************************************************************************\
|
||||||
* DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE *
|
| Copyright (C) 2021 Luke Wren |
|
||||||
* Version 3, April 2008 *
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
* *
|
\*****************************************************************************/
|
||||||
* 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. *
|
|
||||||
* *
|
|
||||||
*********************************************************************/
|
|
||||||
|
|
||||||
// Implement the three shifts (left logical, right logical, right arithmetic)
|
// Implement the three shifts (left logical, right logical, right arithmetic)
|
||||||
// using a single log-type barrel shifter. Around 240 LUTs for 32 bits.
|
// using a single log-type barrel shifter. Around 240 LUTs for 32 bits.
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
/**********************************************************************
|
/*****************************************************************************\
|
||||||
* DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE *
|
| Copyright (C) 2021 Luke Wren |
|
||||||
* Version 3, April 2008 *
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
* *
|
\*****************************************************************************/
|
||||||
* 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. *
|
|
||||||
* *
|
|
||||||
*********************************************************************/
|
|
||||||
|
|
||||||
// APB-to-APB asynchronous bridge for connecting DTM to DM, in case DTM is in
|
// 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
|
// a different clock domain (e.g. running directly from crystal to get a
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
/**********************************************************************
|
/*****************************************************************************\
|
||||||
* DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE *
|
| Copyright (C) 2021 Luke Wren |
|
||||||
* Version 3, April 2008 *
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
* *
|
\*****************************************************************************/
|
||||||
* 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. *
|
|
||||||
* *
|
|
||||||
*********************************************************************/
|
|
||||||
|
|
||||||
// The output is asserted asynchronously when the input is asserted,
|
// The output is asserted asynchronously when the input is asserted,
|
||||||
// but deasserted synchronously when clocked with the input deasserted.
|
// but deasserted synchronously when clocked with the input deasserted.
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
/**********************************************************************
|
/*****************************************************************************\
|
||||||
* DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE *
|
| Copyright (C) 2021 Luke Wren |
|
||||||
* Version 3, April 2008 *
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
* *
|
\*****************************************************************************/
|
||||||
* 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. *
|
|
||||||
* *
|
|
||||||
*********************************************************************/
|
|
||||||
|
|
||||||
// A 2FF synchronizer to mitigate metastabilities. This is a baseline
|
// A 2FF synchronizer to mitigate metastabilities. This is a baseline
|
||||||
// implementation -- you should replace it with cells specific to your
|
// implementation -- you should replace it with cells specific to your
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
/**********************************************************************
|
/*****************************************************************************\
|
||||||
* DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE *
|
| Copyright (C) 2021 Luke Wren |
|
||||||
* Version 3, April 2008 *
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
* *
|
\*****************************************************************************/
|
||||||
* 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. *
|
|
||||||
* *
|
|
||||||
*********************************************************************/
|
|
||||||
|
|
||||||
// RISC-V Debug Module for Hazard3
|
// RISC-V Debug Module for Hazard3
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
/*****************************************************************************\
|
||||||
|
| Copyright (C) 2021 Luke Wren |
|
||||||
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
|
\*****************************************************************************/
|
||||||
|
|
||||||
// Hazard3 CPU configuration parameters
|
// Hazard3 CPU configuration parameters
|
||||||
|
|
||||||
// To configure Hazard3 you can either edit this file, or set parameters on
|
// To configure Hazard3 you can either edit this file, or set parameters on
|
||||||
|
|
|
@ -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
|
// 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
|
// be set at instantiation rather than editing the config file, and will flow
|
||||||
// correctly down through the hierarchy.
|
// correctly down through the hierarchy.
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
/**********************************************************************
|
/*****************************************************************************\
|
||||||
* DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE *
|
| Copyright (C) 2021 Luke Wren |
|
||||||
* Version 3, April 2008 *
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
* *
|
\*****************************************************************************/
|
||||||
* 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. *
|
|
||||||
* *
|
|
||||||
*********************************************************************/
|
|
||||||
|
|
||||||
`default_nettype none
|
`default_nettype none
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
/**********************************************************************
|
/*****************************************************************************\
|
||||||
* DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE *
|
| Copyright (C) 2021 Luke Wren |
|
||||||
* Version 3, April 2008 *
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
* *
|
\*****************************************************************************/
|
||||||
* 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. *
|
|
||||||
* *
|
|
||||||
*********************************************************************/
|
|
||||||
|
|
||||||
// Single-ported top level file for Hazard3 CPU. This file instantiates the
|
// Single-ported top level file for Hazard3 CPU. This file instantiates the
|
||||||
// Hazard3 core, and arbitrates its instruction fetch and load/store signals
|
// Hazard3 core, and arbitrates its instruction fetch and load/store signals
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
/**********************************************************************
|
/*****************************************************************************\
|
||||||
* DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE *
|
| Copyright (C) 2021 Luke Wren |
|
||||||
* Version 3, April 2008 *
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
* *
|
\*****************************************************************************/
|
||||||
* 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. *
|
|
||||||
* *
|
|
||||||
*********************************************************************/
|
|
||||||
|
|
||||||
// Dual-ported top level file for Hazard3 CPU. This file instantiates the
|
// Dual-ported top level file for Hazard3 CPU. This file instantiates the
|
||||||
// Hazard3 core, and interfaces its instruction fetch and load/store signals
|
// Hazard3 core, and interfaces its instruction fetch and load/store signals
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
/******************************************************************************
|
/*****************************************************************************\
|
||||||
* DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE *
|
| Copyright (C) 2021 Luke Wren |
|
||||||
* Version 3, April 2008 *
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
* *
|
\*****************************************************************************/
|
||||||
* 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. *
|
|
||||||
* *
|
|
||||||
*****************************************************************************/
|
|
||||||
|
|
||||||
`default_nettype none
|
`default_nettype none
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
/******************************************************************************
|
/*****************************************************************************\
|
||||||
* DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE *
|
| Copyright (C) 2021 Luke Wren |
|
||||||
* Version 3, April 2008 *
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
* *
|
\*****************************************************************************/
|
||||||
* 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. *
|
|
||||||
* *
|
|
||||||
*****************************************************************************/
|
|
||||||
|
|
||||||
`default_nettype none
|
`default_nettype none
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
/******************************************************************************
|
/*****************************************************************************\
|
||||||
* DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE *
|
| Copyright (C) 2021 Luke Wren |
|
||||||
* Version 3, April 2008 *
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
* *
|
\*****************************************************************************/
|
||||||
* 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. *
|
|
||||||
* *
|
|
||||||
*****************************************************************************/
|
|
||||||
|
|
||||||
`default_nettype none
|
`default_nettype none
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
/******************************************************************************
|
/*****************************************************************************\
|
||||||
* DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE *
|
| Copyright (C) 2021 Luke Wren |
|
||||||
* Version 3, April 2008 *
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
* *
|
\*****************************************************************************/
|
||||||
* 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. *
|
|
||||||
* *
|
|
||||||
*****************************************************************************/
|
|
||||||
|
|
||||||
`default_nettype none
|
`default_nettype none
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/*****************************************************************************\
|
||||||
|
| Copyright (C) 2021 Luke Wren |
|
||||||
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
|
\*****************************************************************************/
|
||||||
|
|
||||||
// ALU operation selectors
|
// ALU operation selectors
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
/**********************************************************************
|
/*****************************************************************************\
|
||||||
* DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE *
|
| Copyright (C) 2021 Luke Wren |
|
||||||
* Version 3, April 2008 *
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
* *
|
\*****************************************************************************/
|
||||||
* 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. *
|
|
||||||
* *
|
|
||||||
*********************************************************************/
|
|
||||||
|
|
||||||
// Register file
|
// Register file
|
||||||
// Single write port, dual read port
|
// Single write port, dual read port
|
||||||
|
|
|
@ -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
|
// These really ought to be localparams, but are occasionally needed for
|
||||||
// passing flags around between modules, so are made available as parameters
|
// passing flags around between modules, so are made available as parameters
|
||||||
// instead. It's ugly, but better scope hygiene than the preprocessor. These
|
// instead. It's ugly, but better scope hygiene than the preprocessor. These
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
/**********************************************************************
|
/*****************************************************************************\
|
||||||
* DO WHAT THE FUCK YOU WANT TO AND DON'T BLAME US PUBLIC LICENSE *
|
| Copyright (C) 2021 Luke Wren |
|
||||||
* Version 3, April 2008 *
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
* *
|
\*****************************************************************************/
|
||||||
* 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. *
|
|
||||||
* *
|
|
||||||
*********************************************************************/
|
|
||||||
|
|
||||||
// Implementation of standard RISC-V timer (mtime/mtimeh mtimecmp/mtimecmph)
|
// Implementation of standard RISC-V timer (mtime/mtimeh mtimecmp/mtimecmph)
|
||||||
// accessed over 32-bit data bus.
|
// accessed over 32-bit data bus.
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
/*****************************************************************************\
|
||||||
|
| Copyright (C) 2021 Luke Wren |
|
||||||
|
| SPDX-License-Identifier: Apache-2.0 |
|
||||||
|
\*****************************************************************************/
|
||||||
|
|
||||||
localparam RV_RS1_LSB = 15;
|
localparam RV_RS1_LSB = 15;
|
||||||
localparam RV_RS1_BITS = 5;
|
localparam RV_RS1_BITS = 5;
|
||||||
localparam RV_RS2_LSB = 20;
|
localparam RV_RS2_LSB = 20;
|
||||||
|
|
Loading…
Reference in New Issue