Skip to content

Commit

Permalink
Add Copyright and License header
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasAlaif committed Jul 31, 2020
1 parent 70a068c commit 73006d7
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions PerformanceMonitor.bsv
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
/*-
* Copyright (c) 2020 Jonas Fiala
* All rights reserved.
*
* This software was developed by SRI International and the University of
* Cambridge Computer Laboratory (Department of Computer Science and
* Technology) under DARPA contract HR0011-18-C-0016 ("ECATS"), as part of the
* DARPA SSITH research programme.
*
* @BERI_LICENSE_HEADER_START@
*
* Licensed to BERI Open Systems C.I.C. (BERI) under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. BERI licenses this
* file to you under the BERI Hardware-Software License, Version 1.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.beri-open-systems.org/legal/license-1-0.txt
*
* Unless required by applicable law or agreed to in writing, Work distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*
* @BERI_LICENSE_HEADER_END@
*/

package PerformanceMonitor;

import Vector :: * ;
Expand Down Expand Up @@ -104,9 +132,15 @@ module mkPerfCounters_Core (PerfCounters_IFC #(ctrs, ctrW, evts));
endmodule

// For a synthesize module, the values must be fixed
`ifndef ctrs
`define ctrs 29
`endif
`ifndef ctrW
`define ctrW 64
`endif
`ifndef evts
`define evts 63
`endif

(* synthesize *)
module mkPerfCounters (PerfCounters_IFC #(`ctrs, `ctrW, `evts));
Expand Down

0 comments on commit 73006d7

Please sign in to comment.