diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..7cff15e4 --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +Copyright (c) 2012-2014, The Regents of the University of California +(Regents). All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. Neither the name of the Regents nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +IN NO EVENT SHALL REGENTS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, +SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING +OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF REGENTS HAS +BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +REGENTS SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE SOFTWARE AND ACCOMPANYING DOCUMENTATION, IF ANY, PROVIDED +HEREUNDER IS PROVIDED "AS IS". REGENTS HAS NO OBLIGATION TO PROVIDE +MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. diff --git a/README.md b/README.md index 4400a29d..a5c90d46 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,19 @@ +Rocket Chip Generator +===================== + +This repository contains the Rocket chip generator necessary to instantiate +the RISC-V Rocket Core. + +Contributors +------------ + +Scott Beamer +Henry Cook +Yunsup Lee +Stephen Twigg +Huy Vo +Andrew Waterman + _Quick and dirty instructions:_ Checkout The Code diff --git a/csrc/emulator.cc b/csrc/emulator.cc index 7e51cc96..4ddaee27 100644 --- a/csrc/emulator.cc +++ b/csrc/emulator.cc @@ -1,3 +1,5 @@ +// See LICENSE for license details. + #include "htif_emulator.h" #include "emulator.h" #include "mm.h" diff --git a/csrc/htif_emulator.h b/csrc/htif_emulator.h index d0f7f7f5..9dbc0ba4 100644 --- a/csrc/htif_emulator.h +++ b/csrc/htif_emulator.h @@ -1,3 +1,5 @@ +// See LICENSE for license details. + #ifndef _HTIF_EMULATOR_H #define _HTIF_EMULATOR_H diff --git a/csrc/mm.cc b/csrc/mm.cc index c5399cfd..e95b1a2c 100644 --- a/csrc/mm.cc +++ b/csrc/mm.cc @@ -1,3 +1,5 @@ +// See LICENSE for license details. + #include "mm.h" #include #include diff --git a/csrc/mm.h b/csrc/mm.h index 13ccf202..88718707 100644 --- a/csrc/mm.h +++ b/csrc/mm.h @@ -1,3 +1,5 @@ +// See LICENSE for license details. + #ifndef MM_EMULATOR_H #define MM_EMULATOR_H diff --git a/csrc/mm_dramsim2.cc b/csrc/mm_dramsim2.cc index 904a24b3..8af4ffca 100644 --- a/csrc/mm_dramsim2.cc +++ b/csrc/mm_dramsim2.cc @@ -1,3 +1,5 @@ +// See LICENSE for license details. + #include "mm_dramsim2.h" #include "mm.h" #include diff --git a/csrc/mm_dramsim2.h b/csrc/mm_dramsim2.h index 1546afe8..398995cb 100644 --- a/csrc/mm_dramsim2.h +++ b/csrc/mm_dramsim2.h @@ -1,3 +1,5 @@ +// See LICENSE for license details. + #ifndef _MM_EMULATOR_DRAMSIM2_H #define _MM_EMULATOR_DRAMSIM2_H diff --git a/csrc/vcs_main.cc b/csrc/vcs_main.cc index cc9e4a06..86d719e8 100644 --- a/csrc/vcs_main.cc +++ b/csrc/vcs_main.cc @@ -1,3 +1,5 @@ +// See LICENSE for license details. + #include "htif_emulator.h" #include "mm.h" #include "mm_dramsim2.h" diff --git a/fsim/fpga_mem_gen b/fsim/fpga_mem_gen index f8aa5578..2f0e5305 100755 --- a/fsim/fpga_mem_gen +++ b/fsim/fpga_mem_gen @@ -1,9 +1,11 @@ -#!/usr/bin/env python +#! /usr/bin/env python + +# See LICENSE for license details. +# This is based off of reference-chip/vlsi/src/vlsi_mem_gen + import sys import math -# This is based off of reference-chip/vlsi/src/vlsi_mem_gen - use_latches = 1 diff --git a/src/main/scala/Backends.scala b/src/main/scala/Backends.scala index 50315921..a712a811 100644 --- a/src/main/scala/Backends.scala +++ b/src/main/scala/Backends.scala @@ -1,3 +1,5 @@ +// See LICENSE for license details. + package rocketchip import Chisel._ diff --git a/src/main/scala/PublicConfigs.scala b/src/main/scala/PublicConfigs.scala index 6a0bd475..1cec5f69 100644 --- a/src/main/scala/PublicConfigs.scala +++ b/src/main/scala/PublicConfigs.scala @@ -1,3 +1,5 @@ +// See LICENSE for license details. + package rocketchip import Chisel._ diff --git a/src/main/scala/RocketChip.scala b/src/main/scala/RocketChip.scala index 0785d573..952afa44 100644 --- a/src/main/scala/RocketChip.scala +++ b/src/main/scala/RocketChip.scala @@ -1,3 +1,5 @@ +// See LICENSE for license details. + package rocketchip import Chisel._ diff --git a/src/main/scala/network.scala b/src/main/scala/network.scala index be8018e6..21a775cd 100644 --- a/src/main/scala/network.scala +++ b/src/main/scala/network.scala @@ -1,3 +1,5 @@ +// See LICENSE for license details. + package rocketchip import Chisel._ diff --git a/src/main/scala/vlsi.scala b/src/main/scala/vlsi.scala index 44de7751..06b204bc 100644 --- a/src/main/scala/vlsi.scala +++ b/src/main/scala/vlsi.scala @@ -1,3 +1,5 @@ +// See LICENSE for license details. + package rocketchip import Chisel._ diff --git a/vsim/vlsi_mem_gen b/vsim/vlsi_mem_gen index 8c2e0561..e15415e8 100755 --- a/vsim/vlsi_mem_gen +++ b/vsim/vlsi_mem_gen @@ -1,4 +1,7 @@ -#!/usr/bin/env python +#! /usr/bin/env python + +# See LICENSE for license details. + import sys import math diff --git a/vsrc/backup_mem.v b/vsrc/backup_mem.v index 8a5a2838..ad6d037d 100644 --- a/vsrc/backup_mem.v +++ b/vsrc/backup_mem.v @@ -1,3 +1,5 @@ +// See LICENSE for license details. + `define ceilLog2(x) ( \ (x) > 2**30 ? 31 : \ (x) > 2**29 ? 30 : \ diff --git a/vsrc/rocketTestHarness.v b/vsrc/rocketTestHarness.v index a7975118..94fbf76c 100644 --- a/vsrc/rocketTestHarness.v +++ b/vsrc/rocketTestHarness.v @@ -1,4 +1,4 @@ -// Test harness for Rocket RISC-V Processor +// See LICENSE for license details. extern "A" void htif_init (