Verilog templating using Mako See the following blog posts for more information: http://blog.edmondcote.com/2014/10/wednesday-night-hack-6-verilog-code.html http://blog.edmondcote.com/2014/10/wednesday-night-hack-7-more-experiments.html