mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-05-02 22:25:00 -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
1 changed files with 6 additions and 4 deletions
|
@ -570,10 +570,12 @@ module tk1(
|
|||
tmp_read_data = cdi_mem[address[2 : 0]];
|
||||
end
|
||||
|
||||
if ((address >= ADDR_UDI_FIRST) && (address <= ADDR_UDI_LAST)) begin
|
||||
if (!switch_app_reg) begin
|
||||
tmp_read_data = udi_rdata;
|
||||
end
|
||||
if ((address == ADDR_UDI_FIRST) & ~switch_app_reg) begin
|
||||
tmp_read_data = udi_rdata;
|
||||
end
|
||||
|
||||
if (address == ADDR_UDI_LAST) begin
|
||||
tmp_read_data = udi_rdata;
|
||||
end
|
||||
|
||||
`ifdef INCLUDE_SPI_MASTER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue