diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2018-04-06 13:57:57 +0200 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2018-04-06 13:57:57 +0200 |
commit | bb88518a94cf1fc6b2c8c4c6d66810d5ee298e87 (patch) | |
tree | 823a4bf974885ad9ed192ab9540afd22f2791d9d /src | |
parent | 69cebd617e1a2ad8eadde7e8c813a4b0c53705bb (diff) |
Minor cleanup of mask definition to make it easier to understand.
Diffstat (limited to 'src')
-rw-r--r-- | src/tb/tb_sha512_core.v | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tb/tb_sha512_core.v b/src/tb/tb_sha512_core.v index e2b8a21..955fee6 100644 --- a/src/tb/tb_sha512_core.v +++ b/src/tb/tb_sha512_core.v @@ -422,22 +422,22 @@ module tb_sha512_core(); case (mode) MODE_SHA_512_224: begin - mask = {{7{32'hffffffff}}, {9{32'h00000000}}}; + mask = {{224{1'h1}}, 288'h0}; end MODE_SHA_512_256: begin - mask = {{8{32'hffffffff}}, {8{32'h00000000}}}; + mask = {{256{1'h1}}, 256'h0}; end MODE_SHA_384: begin - mask = {{12{32'hffffffff}}, {4{32'h00000000}}}; + mask = {{384{1'h1}}, 128'h0}; end MODE_SHA_512: begin - mask = {16{32'hffffffff}}; + mask = {512{1'h1}}; end endcase // case (mode) |