Buy this, UART to USB converter - #13 by toalan
Read section 6,7,8 of the Spartan 3 user manual, https://cdn.shopify.com/s/files/1/0189/1312/files/Spartan_3_v2_User_Manual_a3aca744-bca6-4148-8214-e93e0c07858a.pdf?v=1768973819
Send the serial command: “SETLAMFIVEV1.52” and “SETLAMZEROV0.50” without the quotation marks.