mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-10-01 01:45:38 -04:00
Write to CDI in app mode blocks read access
Signed-off-by: Joachim Strömbergson <joachim@assured.se>
This commit is contained in:
parent
4ab225714a
commit
a17a413e81
@ -75,7 +75,6 @@ module tk1(
|
||||
|
||||
localparam ADDR_CDI_FIRST = 8'h20;
|
||||
localparam ADDR_CDI_LAST = 8'h27;
|
||||
localparam ADDR_CDI_DONE = 8'h28;
|
||||
|
||||
localparam ADDR_UDI_FIRST = 8'h30;
|
||||
localparam ADDR_UDI_LAST = 8'h31;
|
||||
@ -436,13 +435,9 @@ module tk1(
|
||||
end
|
||||
end
|
||||
|
||||
if ((address >= ADDR_CDI_FIRST) && (address <= ADDR_CDI_LAST)) begin
|
||||
if (!switch_app_reg) begin
|
||||
cdi_mem_we = 1'h1;
|
||||
end
|
||||
end
|
||||
|
||||
if (address == ADDR_CDI_DONE) begin
|
||||
if ((address >= ADDR_CDI_FIRST) && (address <= ADDR_CDI_LAST) & !switch_app_reg ) begin
|
||||
cdi_mem_we = 1'h1;
|
||||
end else begin
|
||||
cdi_access_we = 1'h1;
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user