-
Notifications
You must be signed in to change notification settings - Fork 8
hw: Add possibility of removing CDC cut between SoC and Cluster #80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Lore0599
wants to merge
2
commits into
pulp-platform:devel
Choose a base branch
from
Lore0599:lleone/fix-cdc
base: devel
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -133,9 +133,6 @@ module chimera_top_wrapper | |
| .axi_ext_llc_rsp_t(axi_mst_rsp_t), | ||
| .axi_ext_mst_req_t(axi_mst_req_t), | ||
| .axi_ext_mst_rsp_t(axi_mst_rsp_t), | ||
| // lleone: TODO: remove from here | ||
| // .axi_ext_wide_mst_req_t(axi_wide_mst_req_t), | ||
| // .axi_ext_wide_mst_rsp_t(axi_wide_mst_rsp_t), | ||
| .axi_ext_slv_req_t(axi_slv_req_t), | ||
| .axi_ext_slv_rsp_t(axi_slv_rsp_t), | ||
| .reg_ext_req_t (reg_req_t), | ||
|
|
@@ -315,7 +312,11 @@ module chimera_top_wrapper | |
| }; | ||
|
|
||
| logic [ExtClusters-1:0] cluster_clock_gate_en; | ||
| logic [ExtClusters-1:0] clu_clk_gated; | ||
| // This is the enable clk gate, i.e. | ||
| // - enable = 1 -> clock is gated (off) | ||
| // - enable = 0 -> clock is running (on) | ||
| // It will be used to drive the actual clk eneable signal ine ach cluster. | ||
| // For this reason it's inverted when connected to the cluster. | ||
| assign cluster_clock_gate_en = { | ||
| reg2hw.cluster_4_clk_gate_en, | ||
| reg2hw.cluster_3_clk_gate_en, | ||
|
|
@@ -324,14 +325,6 @@ module chimera_top_wrapper | |
| reg2hw.cluster_0_clk_gate_en | ||
| }; | ||
|
|
||
| for (genvar extClusterIdx = 0; extClusterIdx < ExtClusters; extClusterIdx++) begin : gen_clk_gates | ||
| tc_clk_gating i_cluster_clk_gate ( | ||
| .clk_i (clu_clk_i), | ||
| .en_i (~cluster_clock_gate_en[extClusterIdx]), | ||
| .test_en_i(1'b0), | ||
| .clk_o (clu_clk_gated[extClusterIdx]) | ||
| ); | ||
| end | ||
|
|
||
| logic [ExtClusters-1:0] cluster_rst_n; | ||
| logic [ExtClusters-1:0] cluster_soft_rst_n; | ||
|
|
@@ -343,6 +336,7 @@ module chimera_top_wrapper | |
| ~reg2hw.reset_cluster_0.q | ||
| }; | ||
|
|
||
| // TODO: Double check that teh logic AND is sufficient! | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is this TODO about? |
||
| // The Rst used for each cluster is the AND gate among all different source of rst in the system that are: | ||
| // - rst_ni: Global asynchronous reset coming from the PAD | ||
| // - cluster_soft_rst_n: Software synchronous rst coming from the SoC configuration registers | ||
|
|
@@ -363,8 +357,9 @@ module chimera_top_wrapper | |
| .wide_out_resp_t (axi_wide_mst_rsp_t) | ||
| ) i_cluster_domain ( | ||
| .soc_clk_i (soc_clk_i), | ||
| .clu_clk_i (clu_clk_gated), | ||
| .clu_clk_i (clu_clk_i), | ||
| .rst_ni (cluster_rst_n), | ||
| .clu_clk_en_i (~cluster_clock_gate_en), | ||
| .widemem_bypass_i (wide_mem_bypass_mode), | ||
| .boot_addr_i (reg2hw.snitch_configurable_boot_addr.q), | ||
| .debug_req_i (dbg_ext_req), | ||
|
|
||
This file contains hidden or 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
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes seem unwanted.