From 8adbabbb195fd7d4a8de1d36680b1c06a4981bb3 Mon Sep 17 00:00:00 2001 From: lf <15201710458@163.com> Date: Wed, 5 Aug 2020 21:51:00 +0800 Subject: [PATCH] add performance analyze excel --- doc/perf/SM3性能分析.xlsx | Bin 10219 -> 10496 bytes rtl/inc/sm3_cfg.v | 8 +++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/perf/SM3性能分析.xlsx b/doc/perf/SM3性能分析.xlsx index b6975312d90ae507ddb97d5a319ea4d4688a7a1b..8105d3f5d5634f77c1039de314e92b81d7523c98 100644 GIT binary patch delta 2492 zcmZ8jc{J1w8~qu^ntd!`41=+iU6!WoTf9O|gBsBoTQkU(ePoTqtD#V$mkN{YOSUkw zuaT{cMD|_9jPTXBocH^_=bz^}=iYzrJN8p|+!B6qzSEU$TU+w!;LX^(a>g%Q(rxC!5K!OBW$mFViNX=*=hi*SLhtwj z2;y}$zKSDb=srHs=+s*(y$Me!4Dyniow{`zP2^*EYS9AE|8g%^C`$iT#~WE3&h&bi z!Ti+H$sZuRF!++JPgdbK2bR3%nQw2Q?zO}Zn^-6p_qoPb%J99jE9RC3#QNNI!b)aW z)#;G{=Ryx9iQcx^ojfjr*Xv^b(pUzBBcbNFaFvl(Njlu@`H{k50gEbN>Y={ZL3u~lL?*V(z!l0G?9G6BFOCjbZoBr-yT zn2yHykWG0aN=J{Qg1w{|8hRt6a0e@AYOtNfmo*79Y)*Ix#co1c>+n0&UX((u`{U0q zEdza7IXY)4Du+8I+PcaW-hQZoYim;DX}IE`kTTGqN z+XfmrY3i+#8$_ciJ}T}1Odal?i$V5W?u8D`>k{a&j8HEDt+H64d>P`{F8zUauQ8)@ zu5a3z9db0S5Tm4QrEtLWUeEjJ6| zc~QEmOtPe)EhItCRFHfV%Stt5t@sF^eKu&k`ZHiMJbOvieN4Vi3)FEM_R*HAtRo^I z84#7q&(?!ZbloKKhd9=(w7&|SNKNauA&HAD+k)W0*Li_IlE z-paSN#IRZ2?c8mA3z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v +++ b/rtl/inc/sm3_cfg.v @@ -27,7 +27,7 @@ // `define C_MODEL_SELF_TEST //定义 SM3 输入位宽------------------------ -`define SM3_INPT_DW_32 +// `define SM3_INPT_DW_32 `ifndef SM3_INPT_DW_32 `define SM3_INPT_DW_64 `endif @@ -66,6 +66,8 @@ //定义 SM3 迭代压缩中的加法方式----------------------- //直接使用加法符,使工具推断 -`define SM3_CMPRSS_DIRECT_ADD +//`define SM3_CMPRSS_DIRECT_ADD //显式例化 CSA 加法器 在 SM3_CMPRSS_DIRECT_ADD 未定义时有效 -`define SM3_CMPRSS_CSA_ADD \ No newline at end of file +`ifndef SM3_CMPRSS_DIRECT_ADD + `define SM3_CMPRSS_CSA_ADD +`endif \ No newline at end of file