Earlier quoted context omitted.
have a look into hardware descriptive languages, VHDL or verilog and go from there
How is the best way to programm with them?, IDE or LSP?
(FWIW, I've only just taken a class on Verilog this past Spring, but we used oss-cad-suite and I found it pretty straightforward to use. The bundled version of Verilator had some issues on my Mac though, so I had to compile my own copy of Verilator.)