For many programming languages there exist free IDEs with refactoring support to allow one to break out chunks of code into new functions/classes with minimal risk of error.
I would like to do similar things to some of my Verilog HDL code breaking an over-sized module into smaller modules, but I don't do enough of this sort of work to justify buying a paid tool. Are there any free (free as in foss would be preferable, but free as in beer would be tolerable) tools that can do this?