URL
https://opencores.org/ocsvn/apbtoaes128/apbtoaes128/trunk
Subversion Repositories apbtoaes128
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 9 to Rev 10
- ↔ Reverse comparison
Rev 9 → Rev 10
/apbtoaes128/trunk/rtl/host_interface.v
199,8 → 199,8
|
// Write and read enable signals |
assign write_en = PSEL & PENABLE & PWRITE; |
assign read_en = (PSEL & ~PWRITE & (ccf_set | ccf))?1'b1: |
((PSEL & ~PWRITE)&(PADDR >= AES_KEYR0 & PADDR <= AES_IVR3 ))?1'b1:1'b0; |
assign read_en = (PSEL & ~PWRITE)?1'b1:1'b0; |
//((PSEL & ~PWRITE)&(PADDR >= AES_KEYR0 & PADDR <= AES_IVR3))?1'b1:1'b0; |
|
// Configuration Register Logic |
assign dma_out_en = aes_cr[10]; |
273,7 → 273,7
if(ccf_set) |
ccf <= 1'b1; |
else |
if(ccfc && aes_cr_wr_en)// && access_permission) |
if(ccfc && aes_cr_wr_en && access_permission) |
ccf <= 1'b0; |
end |
end |
429,9 → 429,12
AES_CR: |
bus_out_mux = {{19{1'b0}}, aes_cr[10:7], 2'b00, aes_cr[6:0]}; |
AES_SR: |
bus_out_mux = {{29{1'b0}}, wr_err, rd_err, (ccf && ~PENABLE)?1'b1:((ccf_set && PENABLE))?1'b0:(ccfc && aes_cr_wr_en)?1'b0:1'b1}; |
bus_out_mux = {{29{1'b0}}, wr_err, rd_err, (ccf_set && ~PENABLE)? 1'b1:(ccfc && aes_cr_wr_en)?1'b0:ccf}; |
AES_DINR, AES_DOUTR: |
bus_out_mux = col_bus; |
begin |
if(~PWRITE && PADDR == AES_DOUTR && (ccf_set || ccf )) |
bus_out_mux = col_bus; |
end |
AES_KEYR0, AES_KEYR1, AES_KEYR2, AES_KEYR3: |
if(!enable) |
bus_out_mux = key_bus; |