mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-10-01 01:45:38 -04:00
fpga: Expose PID, VID info in UDI for apps
Signed-off-by: Joachim Strömbergson <joachim@assured.se>
This commit is contained in:
parent
d297514e7e
commit
e5eabec19a
@ -570,10 +570,12 @@ module tk1(
|
|||||||
tmp_read_data = cdi_mem[address[2 : 0]];
|
tmp_read_data = cdi_mem[address[2 : 0]];
|
||||||
end
|
end
|
||||||
|
|
||||||
if ((address >= ADDR_UDI_FIRST) && (address <= ADDR_UDI_LAST)) begin
|
if ((address == ADDR_UDI_FIRST) & ~switch_app_reg) begin
|
||||||
if (!switch_app_reg) begin
|
tmp_read_data = udi_rdata;
|
||||||
tmp_read_data = udi_rdata;
|
end
|
||||||
end
|
|
||||||
|
if (address == ADDR_UDI_LAST) begin
|
||||||
|
tmp_read_data = udi_rdata;
|
||||||
end
|
end
|
||||||
|
|
||||||
`ifdef INCLUDE_SPI_MASTER
|
`ifdef INCLUDE_SPI_MASTER
|
||||||
|
Loading…
Reference in New Issue
Block a user