I got promoted for doing that.
We had a completely *mental* process where we would get an XLS file and had to manually translate the tables of register names and bit positions into C structs.
Budgeted time: 2 person weeks.
I spent the two weeks writing a perl script that did everything I needed (ok, 2 hours, then the rest of the time making it do 'cool' stuff to the source code, and compiler, and source control, and....)
Total runtime of the script? 2.5 minutes.
Did this for a couple projects, turned in the changes same day I would get the XLS files. Boss thought I was doing something akin to faking it. Showed him the script, got a promotion 1 month later.
He asked me how I thought of doing it that way, told him I was lazy, this was easier...