From 861a9b9eb3cf1c52094b1b1f4244173eb2b64e40 Mon Sep 17 00:00:00 2001 From: upadhyayulakiran <125604693+upadhyayulakiran@users.noreply.github.com> Date: Thu, 31 Oct 2024 13:42:13 -0700 Subject: [PATCH] Enable shuffling (#26) * Enable shuffling for synth exp * MICROSOFT AUTOMATED PIPELINE: Stamp 'user/dev/kupadhyayula/enable_shuffling' with updated timestamp and hash after successful run --- .github/workflow_metadata/pr_hash | 2 +- .github/workflow_metadata/pr_timestamp | 2 +- src/mldsa_top/rtl/mldsa_top.sv | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflow_metadata/pr_hash b/.github/workflow_metadata/pr_hash index c90da91..5d56dc9 100644 --- a/.github/workflow_metadata/pr_hash +++ b/.github/workflow_metadata/pr_hash @@ -1 +1 @@ -7a3eb92951b68c97aac175fd0faf18d82ba97c85e5669450c340c4ccba5752f566eee2cfbcd5cc15b632a79a57d2bea7 \ No newline at end of file +7e5c23f1bd97ae4ddd574b3b63f21d6fe6c451f6f5e9a26e575da96f48e8ab5fc0035f771571df2d66bd41607eb2e30f \ No newline at end of file diff --git a/.github/workflow_metadata/pr_timestamp b/.github/workflow_metadata/pr_timestamp index 074a8d0..59da0c8 100644 --- a/.github/workflow_metadata/pr_timestamp +++ b/.github/workflow_metadata/pr_timestamp @@ -1 +1 @@ -1730401607 \ No newline at end of file +1730405348 \ No newline at end of file diff --git a/src/mldsa_top/rtl/mldsa_top.sv b/src/mldsa_top/rtl/mldsa_top.sv index e9ec54c..d90dc54 100644 --- a/src/mldsa_top/rtl/mldsa_top.sv +++ b/src/mldsa_top/rtl/mldsa_top.sv @@ -452,11 +452,11 @@ generate end MLDSA_NTT: begin mode[g_inst] = ct; - // shuffle_en[g_inst] = 1; + shuffle_en[g_inst] = 1; end MLDSA_INTT: begin mode[g_inst] = gs; - // shuffle_en[g_inst] = 1; + shuffle_en[g_inst] = 1; end MLDSA_PWM_SMPL: begin mode[g_inst] = pwm; @@ -472,23 +472,23 @@ generate MLDSA_PWM: begin mode[g_inst] = pwm; sampler_valid[g_inst] = 1; - // shuffle_en[g_inst] = 1; + shuffle_en[g_inst] = 1; end MLDSA_PWM_ACCUM: begin mode[g_inst] = pwm; accumulate[g_inst] = 1; sampler_valid[g_inst] = 1; - // shuffle_en[g_inst] = 1; + shuffle_en[g_inst] = 1; end MLDSA_PWA: begin mode[g_inst] = pwa; sampler_valid[g_inst] = 1; - // shuffle_en[g_inst] = 1; + shuffle_en[g_inst] = 1; end MLDSA_PWS: begin mode[g_inst] = pws; sampler_valid[g_inst] = 1; - // shuffle_en[g_inst] = 1; + shuffle_en[g_inst] = 1; end default: begin end @@ -513,7 +513,7 @@ generate .accumulate(accumulate[g_inst]), .sampler_valid(sampler_valid[g_inst]), .shuffle_en(shuffle_en[g_inst]), - .random(rand_bits[g_inst*6+5:g_inst*6]), + .random(rand_bits[5:0]), //NTT mem IF .mem_wr_req(ntt_mem_wr_req[g_inst]), .mem_rd_req(ntt_mem_rd_req[g_inst]),