diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2018-10-02 15:10:16 +0200 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2018-10-02 15:10:16 +0200 |
commit | 190bdf4f5e7a2bda7bbbe9703a1b08eb8905f1ab (patch) | |
tree | 4b34577282c3d088354f0365f119ea30e70ea522 /src/rtl | |
parent | 9af80907f9d1913cd8cb200eabe5e99cc65021a4 (diff) |
Reading AES result will be zero when ready is not set.
Diffstat (limited to 'src/rtl')
-rw-r--r-- | src/rtl/aes.v | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rtl/aes.v b/src/rtl/aes.v index ddee8f0..48a7735 100644 --- a/src/rtl/aes.v +++ b/src/rtl/aes.v @@ -256,7 +256,8 @@ module aes( endcase // case (address) if ((address >= ADDR_RESULT0) && (address <= ADDR_RESULT3)) - tmp_read_data = core_result[(3 - (address - ADDR_RESULT0)) * 32 +: 32]; + if (core_ready) + tmp_read_data = core_result[(3 - (address - ADDR_RESULT0)) * 32 +: 32]; end end end // addr_decoder |