elf2hex icon indicating copy to clipboard operation
elf2hex copied to clipboard

objcopy verilog output

Open jim-wilson opened this issue 6 years ago • 2 comments

objcopy can produce verilog output directly from ELF files with "objcopy -O verilog inputfile outputfile".

jim-wilson avatar Jul 18 '18 03:07 jim-wilson

It's not quite the same sort of output, though:

  • We need it all in one blob, objcopy's verilog backend is sparse.
  • It only supports one bit width (or at least did last time I checked).

IIRC I actually own the bug to fix these on sourceware.org :)

palmer-dabbelt avatar Jul 18 '18 03:07 palmer-dabbelt

On my side I fixed the issue by generating an intelhex output from objcopy and then converting it to "readmemh" compatible file with a Python script.

amnesia13 avatar Dec 21 '20 10:12 amnesia13