URL
https://opencores.org/ocsvn/apbtoaes128/apbtoaes128/trunk
[/] [apbtoaes128/] [trunk/] [rtl/] [datapath.v] - Diff between revs 14 and 15
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 14 |
Rev 15 |
Line 261... |
Line 261... |
.data_in ( sbox_input ),
|
.data_in ( sbox_input ),
|
.swap_type( data_type )
|
.swap_type( data_type )
|
);
|
);
|
|
|
// IV and BKP Muxs
|
// IV and BKP Muxs
|
always@(*)
|
always@(iv_mux_out or bkp_mux_out or col_en or iv_sel_rd or iv[0] or iv[1] or iv[2] or iv[3] or bkp[0] or bkp[1] or bkp[2] or bkp[3])
|
begin: IV_BKP_MUX
|
begin: IV_BKP_MUX
|
integer i;
|
integer i;
|
iv_mux_out = {32{1'b0}};
|
iv_mux_out = {32{1'b0}};
|
bkp_mux_out = {32{1'b0}};
|
bkp_mux_out = {32{1'b0}};
|
for(i = 0; i < 4; i = i + 1)
|
for(i = 0; i < 4; i = i + 1)
|
Line 394... |
Line 394... |
.data_out_dec ( sr_dec ),
|
.data_out_dec ( sr_dec ),
|
.data_in ( sr_input )
|
.data_in ( sr_input )
|
);
|
);
|
|
|
//SBOX Input Multiplexor
|
//SBOX Input Multiplexor
|
always @(*)
|
always @(sbox_input or sbox_sel or col_sel_host or col[0] or col[1] or col[2] or col[3] or g_in)
|
begin
|
begin
|
sbox_input = {32{1'b0}};
|
sbox_input = {32{1'b0}};
|
case(sbox_sel | col_sel_host)
|
case(sbox_sel | col_sel_host)
|
COL_0:
|
COL_0:
|
sbox_input = col[0];
|
sbox_input = col[0];
|
Line 473... |
Line 473... |
);
|
);
|
|
|
assign key_mux_sel = (bypass_key_en) ? key_out_sel : ( (enc_dec | mode_ctr) ? key_out_sel_pp2 : key_out_sel_pp1 );
|
assign key_mux_sel = (bypass_key_en) ? key_out_sel : ( (enc_dec | mode_ctr) ? key_out_sel_pp2 : key_out_sel_pp1 );
|
|
|
// Key Expander Mux
|
// Key Expander Mux
|
always @(*)
|
always @(key_mux_out or key_mux_sel or key_sel_rd or key[0] or key[1] or key[2] or key[3])
|
begin
|
begin
|
key_mux_out = {32{1'b0}};
|
key_mux_out = {32{1'b0}};
|
case(key_mux_sel | key_sel_rd)
|
case(key_mux_sel | key_sel_rd)
|
KEY_0:
|
KEY_0:
|
key_mux_out = key[0];
|
key_mux_out = key[0];
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.