OpenCores
no use no use 1/1 no use no use
objcopy to verilog hex dump format
by atgreen on Apr 23, 2009
atgreen
Posts: 1
Joined: Apr 5, 2009
Last seen: Dec 2, 2014
Hello...

In the process of developing my own core (http://moxielogic.org/blog), I just submitted a patch to BFD that adds verilog memory hex dump output support to binutils. So now my workflow for getting programs loaded into my verilog simulation looks something like this...

$ moxie-elf-gcc -o hello.x hello.c
$ moxie-elf-objcopy -O verilog hello.x hello.vh

The contents of hello.vh are directly loadable with verilog's $readmemh() function.

I'm not sure if/when it will get accepted, but if you're willing to patch your own tools...
http://sourceware.org/ml/binutils/2009-04/msg00321.html

AG
no use no use 1/1 no use no use
© copyright 1999-2026 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.