Skip to content
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

flopping mode decode in ntt to help timing/fanout issues #44

Merged
merged 4 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflow_metadata/pr_hash
Original file line number Diff line number Diff line change
@@ -1 +1 @@
33d06fbea7186dcc35701c7246494b5dc37c2ced6c160c81495915e8364ce6817152174a1048eba8618a889e68f0e06d
111d16ee2f110fee7f711f78fd5440db8226f6ca262388d96e92fe0a3ce18a51c81b3ceb16a6524be00cd21c4680a85a
2 changes: 1 addition & 1 deletion .github/workflow_metadata/pr_timestamp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1732146153
1732302200
28 changes: 21 additions & 7 deletions src/ntt_top/rtl/ntt_top.sv
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,27 @@ module ntt_top
logic pwm_mode, pwa_mode, pws_mode;
logic pwm_intt_mode;

assign ct_mode = (mode == ct);
assign gs_mode = (mode == gs);
assign pwo_mode = (mode inside {pwm, pwa, pws});
assign pwm_mode = (mode == pwm);
assign pwa_mode = (mode == pwa);
assign pws_mode = (mode == pws);
assign pwm_intt_mode = (mode == pwm_intt);
always_ff @(posedge clk or negedge reset_n) begin
if (!reset_n) begin
ct_mode <= 0;
gs_mode <= 0;
pwo_mode <= 0;
pwm_mode <= 0;
pwa_mode <= 0;
pws_mode <= 0;
pwm_intt_mode <= 0;
end
else begin
ct_mode <= (mode == ct);
gs_mode <= (mode == gs);
pwo_mode <= (mode inside {pwm, pwa, pws});
pwm_mode <= (mode == pwm);
pwa_mode <= (mode == pwa);
pws_mode <= (mode == pws);
pwm_intt_mode <= (mode == pwm_intt);
end
end

assign pw_rden_dest_mem = accumulate ? pw_rden : 1'b0;

//Mem IF assignments:
Expand Down