fpga: Expose PID, VID info in UDI for apps

Signed-off-by: Joachim Strömbergson <joachim@assured.se>
This commit is contained in:
Joachim Strömbergson 2024-07-08 09:35:50 +02:00
parent d297514e7e
commit e5eabec19a
No known key found for this signature in database
GPG Key ID: 865B8A548EA61679

View File

@ -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
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