This website works better with JavaScript.
Home
Help
Sign In
tmeissner
/
cryptocores
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
register mode_i and iv_i only if start_i is high
master
Torsten Meissner
13 years ago
parent
8909aa0d9a
commit
b9ed938d6d
1 changed files
with
5 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-3
cbcdes/rtl/cbcdes.vhd
+ 5
- 3
cbcdes/rtl/cbcdes.vhd
View File
@ -97,13 +97,15 @@ begin
s_iv
<
=
(
others
=
>
'0'
)
;
s_datain
<
=
(
others
=
>
'0'
)
;
elsif
(
rising_edge
(
clk_i
)
)
then
s_reset
<
=
reset_i
;
s_reset
<
=
reset_i
;
if
(
valid_i
=
'1'
and
s_ready
=
'1'
)
then
s_mode
<
=
mode_i
;
s_start
<
=
start_i
;
s_iv
<
=
iv_i
;
s_datain
<
=
data_i
;
end
if
;
if
(
valid_i
=
'1'
and
s_ready
=
'1'
and
start_i
=
'1'
)
then
s_mode
<
=
mode_i
;
s_iv
<
=
iv_i
;
end
if
;
end
if
;
end
process
inputregister
;
Write
Preview
Loading…
Cancel
Save