From 717f11e0fca162512a7e0675813a14cf23a539cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Tue, 2 Oct 2018 15:10:16 +0200 Subject: Reading AES result will be zero when ready is not set. --- src/rtl/aes.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/rtl') 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 -- cgit v1.2.3