forked from pulp-soc-training/dummy_vip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Manuel Eggimann
committed
Nov 11, 2020
0 parents
commit 8c7f4cb
Showing
3 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
`define DUMMY_SUCCESS_MESSAGE "Successfully integrated dummy IP." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
//----------------------------------------------------------------------------- | ||
// Title : Dummy Submodule | ||
//----------------------------------------------------------------------------- | ||
// File : dummy_submodule.sv | ||
// Author : Manuel Eggimann <[email protected]> | ||
// Created : 11.11.2020 | ||
//----------------------------------------------------------------------------- | ||
// Description : | ||
// Component of the Dummy Module for IP integration exercise in PULP Training | ||
//----------------------------------------------------------------------------- | ||
// Copyright (C) 2013-2020 ETH Zurich, University of Bologna | ||
// Copyright and related rights are licensed under the Solderpad Hardware | ||
// License, Version 0.51 (the "License"); you may not use this file except in | ||
// compliance with the License. You may obtain a copy of the License at | ||
// http://solderpad.org/licenses/SHL-0.51. Unless required by applicable law | ||
// or agreed to in writing, software, hardware and materials distributed under | ||
// this 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. | ||
//----------------------------------------------------------------------------- | ||
|
||
`include "dummy_module/dummy_header.svh" | ||
|
||
module dummy_submodule; | ||
import cf_math_pkg::*; | ||
`ifdef ENABLE_DUMMY_VIP | ||
initial begin | ||
#10us $info(`DUMMY_SUCCESS_MESSAGE); | ||
end | ||
`else | ||
initial begin | ||
#10us $fatal("Dummy module is not enabled. Add the define flag to the package description (src_files.yml)"); | ||
end | ||
`endif | ||
|
||
//Random instantiation of common cells IP to enforce correct dependency declaration. | ||
lzc i_lzc ( | ||
.in_i(), | ||
.cnt_o(), | ||
.empty_o() | ||
); | ||
|
||
endmodule : dummy_submodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
//----------------------------------------------------------------------------- | ||
// Title : Dummy Top | ||
//----------------------------------------------------------------------------- | ||
// File : dummy_top.sv | ||
// Author : Manuel Eggimann <[email protected]> | ||
// Created : 11.11.2020 | ||
//----------------------------------------------------------------------------- | ||
// Description : | ||
// A dummy behavioral module to train IP integration into PULP | ||
//----------------------------------------------------------------------------- | ||
// Copyright (C) 2013-2020 ETH Zurich, University of Bologna | ||
// Copyright and related rights are licensed under the Solderpad Hardware | ||
// License, Version 0.51 (the "License"); you may not use this file except in | ||
// compliance with the License. You may obtain a copy of the License at | ||
// http://solderpad.org/licenses/SHL-0.51. Unless required by applicable law | ||
// or agreed to in writing, software, hardware and materials distributed under | ||
// this 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. | ||
//----------------------------------------------------------------------------- | ||
|
||
|
||
module dummy_top; | ||
dummy_submodule i_dummy_sub(); | ||
endmodule : dummy_top |