Skip to content

Commit

Permalink
Adding note about the patching of the UDI and UDS
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Strömbergson <[email protected]>
  • Loading branch information
secworks committed Apr 3, 2024
1 parent 33fe3ed commit c45d57d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hw/application_fpga/core/tk1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,15 @@ Each SB_LUT4 MUX is able to store 16 bits of data, in total 512
bits. But since the UDI is 64 bits, we only use the two LSBs in each
MUX.

During build of the FPGA design, the UDI is set to a known bit
pattern, which means that the SB_LUT4 instantiations are initialized
to a fixed bit pattern.

The tool 'patch_uds_udi.py' is used to replace the fixed bit pattern
with a unique bit pattern before generating the per device unique FPGA
bitstream. This allows us to generate these device unique FPGA
bitstreams without haveing to do a full FPGA build.


### RAM memory protecion

Expand Down
9 changes: 9 additions & 0 deletions hw/application_fpga/core/uds/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ The eight UDS words are stored using 32 named SB_LUT4 FPGA multiplexer
(MUX) instances, identified in the source code as "uds\_rom\_idx". One
instance for each bit in the core read_data output bus.

During build of the FPGA design, the UDS is set to a known bit
pattern, which means that the SB_LUT4 instantiations are initialized
to a fixed bit pattern.

The tool 'patch_uds_udi.py' is used to replace the fixed bit pattern
with a unique bit pattern before generating the per device unique FPGA
bitstream. This allows us to generate these device unique FPGA
bitstreams without haveing to do a full FPGA build.

Each SB_LUT4 MUX is able to store 16 bits of data, in total 512
bits. But since the UDS is 256 bits, we only use the eight LSBs in
each MUX.
Expand Down

0 comments on commit c45d57d

Please sign in to comment.