Skip to content

Commit

Permalink
Add optional parameter to tc_clk_gating to flag functional gates (#22)
Browse files Browse the repository at this point in the history
* Add optional parameter to tc_clk_gating to flag functional gates

* Update changelog
  • Loading branch information
meggiman authored Mar 17, 2022
1 parent 8ed192c commit f0be9a4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## Unreleased
### Changed
- Added optional `IS_FUNCTIONAL` flag to `tc_clk_gating` cell to optionally mark them as *not required for functionality*.

## 0.2.4 - 2021-02-04
- Add `deprecated/pulp_clk_cells_xilinx.sv` to `Bender.yml`

Expand Down
9 changes: 8 additions & 1 deletion src/rtl/tc_clk.sv
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ module tc_clk_buffer (
endmodule

// Description: Behavioral model of an integrated clock-gating cell (ICG)
module tc_clk_gating (
module tc_clk_gating #(
/// This paramaeter is a hint for tool/technology specific mappings of this
/// tech_cell. It indicates wether this particular clk gate instance is
/// required for functional correctness or just instantiated for power
/// savings. If IS_FUNCTIONAL == 0, technology specific mappings might
/// replace this cell with a feedthrough connection without any gating.
parameter bit IS_FUNCTIONAL = 1'b1
)(
input logic clk_i,
input logic en_i,
input logic test_en_i,
Expand Down

0 comments on commit f0be9a4

Please sign in to comment.