Skip to content

Commit

Permalink
add license (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
donggyukim authored Oct 10, 2017
1 parent 70e3f18 commit 52d1c8d
Show file tree
Hide file tree
Showing 79 changed files with 185 additions and 0 deletions.
29 changes: 29 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
BSD 3-Clause License

Copyright (c) 2017, 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:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* 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.

* 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.

THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2 changes: 2 additions & 0 deletions src/main/cc/emul/mmio.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#ifndef __MMIO_H
#define __MMIO_H

Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/emul/mmio_zynq.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#include "mmio_zynq.h"
#include "mm.h"
#include "mm_dramsim2.h"
Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/emul/mmio_zynq.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#ifndef __MMIO_ZYNQ_H
#define __MMIO_ZYNQ_H

Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/emul/vcs_main.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#ifndef __VCS_MAIN
#define __VCS_MAIN

Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/endpoints/address_map.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#include "address_map.h"

AddressMap::AddressMap(
Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/endpoints/address_map.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#ifndef __ADDRESS_MAP_H
#define __ADDRESS_MAP_H

Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/endpoints/endpoint.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#ifndef __ENDPOINT_H
#define __ENDPOINT_H

Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/endpoints/fpga_memory_model.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#include <iostream>
#include <algorithm>
#include <exception>
Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/endpoints/fpga_memory_model.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#ifndef __FPGA_MEMORY_MODEL_H
#define __FPGA_MEMORY_MODEL_H

Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/endpoints/fpga_model.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#ifndef __FPGA_MODEL_H
#define __FPGA_MODEL_H

Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/endpoints/sim_mem.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#include <algorithm>
#include <stdio.h>

Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/endpoints/sim_mem.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#ifndef __SIM_MEM_H
#define __SIM_MEM_H

Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/replay/replay.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#ifndef __REPLAY_H
#define __REPLAY_H

Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/replay/replay_vpi.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#include "replay_vpi.h"
#include "emul/vcs_main.h"

Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/replay/replay_vpi.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#ifndef __REPLAY_VPI_H
#define __REPLAY_VPI_H

Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/sample/sample.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#include "sample.h"
#include <cassert>
#include <cstring>
Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/sample/sample.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#ifndef __SAMPLE_H
#define __SAMPLE_H

Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/sample/simif_sample.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#include "simif.h"
#include <fstream>
#include <iostream>
Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/simif.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#include "simif.h"
#include <fstream>
#include <algorithm>
Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/simif.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#ifndef __SIMIF_H
#define __SIMIF_H

Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/simif_emul.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#include "simif_emul.h"
#ifdef VCS
#include "midas_context.h"
Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/simif_emul.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#ifndef __SIMIF_VERILATOR_H
#define __SIMIF_VERILATOR_H

Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/simif_zynq.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#include "simif_zynq.h"
#include <cassert>
#include <fcntl.h>
Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/simif_zynq.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#ifndef __SIMIF_ZYNQ_H
#define __SIMIF_ZYNQ_H

Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/utils/midas_context.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#include "midas_context.h"
#include <stdlib.h>
#include <cassert>
Expand Down
2 changes: 2 additions & 0 deletions src/main/cc/utils/midas_context.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

#ifndef __CONTEXT_H
#define __CONTEXT_H

Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/replay/estimate-power.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python

# See LICENSE for license details.

import os
import os.path
from subprocess import Popen
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/replay/fm-macro.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python

# See LICENSE for license details.

import sys
import os
import tempfile
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/replay/fm-match.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python

# See LICENSE for license details.

import fm_regex
import read_svf
import sys
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/replay/fm_regex.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import re

# See LICENSE for license details.

""" define reference(RTL) name regular expression """
ref_regex = re.compile(r"""
Ref\s+ # is reference(RTL)?
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/replay/read_svf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import sys
import argparse
# See LICENSE for license details.


def construct_instance_map(instance_map, tokens):
is_design = False
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/replay/replay-samples.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python

# See LICENSE for license details.

import os.path
import argparse
from subprocess import Popen
Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/midas/Compiler.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package midas

import chisel3.Data
Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/midas/Config.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package midas

import core._
Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/midas/core/Channel.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package midas
package core

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/midas/core/Endpoints.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package midas
package core

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/midas/core/FPGATop.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package midas
package core

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/midas/core/Interfaces.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package midas
package core

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/midas/core/SimWrapper.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package midas
package core

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/midas/passes/Fame1Transform.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package midas
package passes

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/midas/passes/MidasTransforms.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package midas
package passes

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/midas/passes/PlatformMapping.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package midas
package passes

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/midas/passes/SimulationMapping.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package midas
package passes

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/midas/passes/Utils.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package midas
package passes

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/midas/platform/ZynqShim.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package midas
package platform

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/midas/widgets/CppGeneration.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package midas
package widgets

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/midas/widgets/Lib.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package midas
package widgets

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/midas/widgets/LoadMem.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package midas
package widgets

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/midas/widgets/Master.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package midas
package widgets

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/midas/widgets/NastiIO.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package midas
package widgets

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/midas/widgets/PeekPokeIO.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package midas
package widgets

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/midas/widgets/SimpleLatencyPipe.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package midas
package widgets

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/midas/widgets/Widget.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package midas
package widgets

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/strober/core/DaisyChain.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package strober
package core

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/strober/core/TraceQueue.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package strober
package core

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/strober/passes/AddDaisyChain.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package strober
package passes

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/strober/passes/DumpChains.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package strober
package passes

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/strober/passes/StroberTransforms.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package strober
package passes

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/strober/replay/Compiler.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See LICENSE for license details.

package strober
package replay

Expand Down
Loading

0 comments on commit 52d1c8d

Please sign in to comment.