Skip to content

Commit

Permalink
add dummy assign (pulp-platform#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
davideschiavone committed Nov 14, 2022
1 parent cf6a6bf commit f3022b1
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions Bender.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ sources:
- src/sync.sv
- src/sync_wedge.sv
- src/unread.sv
- src/read.sv
- src/cdc_reset_ctrlr_pkg.sv
# Level 1
- src/addr_decode_napot.sv
Expand Down
1 change: 1 addition & 0 deletions common_cells.core
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ filesets:
- src/sync.sv
- src/sync_wedge.sv
- src/unread.sv
- src/read.sv
- src/cdc_reset_ctrlr_pkg.sv
# Level 1
- src/cdc_2phase.sv
Expand Down
20 changes: 20 additions & 0 deletions src/read.sv
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Copyright 2022 EPFL
// Solderpad Hardware License, Version 2.1, see LICENSE.md for details.
// SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1

// Author: Davide Schiavone, EPFL, OpenHW Group
// Date: 07.11.2022
// Description: Dummy circuit to assign a signal, prevent signal being removed after non-ungroupped synthesis compilation

(* no_ungroup *)
module read #(
parameter int unsigned Width = 1,
parameter type T = logic [Width-1:0]
) (
input T d_i,
output T d_o
);

assign d_o = d_i;

endmodule
1 change: 1 addition & 0 deletions src_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ common_cells_all:
- src/sync.sv
- src/sync_wedge.sv
- src/unread.sv
- src/read.sv
- src/cdc_reset_ctrlr_pkg.sv
# Level 1
- src/cdc_2phase.sv
Expand Down

0 comments on commit f3022b1

Please sign in to comment.