Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Eggimann committed Nov 11, 2020
0 parents commit 8c7f4cb
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/dummy_module/dummy_header.svh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`define DUMMY_SUCCESS_MESSAGE "Successfully integrated dummy IP."
43 changes: 43 additions & 0 deletions rtl/dummy_submodule.sv
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
25 changes: 25 additions & 0 deletions rtl/dummy_top.sv
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

0 comments on commit 8c7f4cb

Please sign in to comment.