Skip to content

Commit

Permalink
flopping mode decode in ntt to help timing/fanout issues (#44)
Browse files Browse the repository at this point in the history
* flopping mode decode in ntt to help timing/fanout issues

* fixing reset copy paste issue due to rushed changes

* MICROSOFT AUTOMATED PIPELINE: Stamp 'user/dev/michnorris/ntt_timing' with updated timestamp and hash after successful run
  • Loading branch information
Nitsirks authored Nov 22, 2024
1 parent e70ac5d commit 4fdaceb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
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

0 comments on commit 4fdaceb

Please sign in to comment.