/cl-verilog-generator

S-expression language that generates Verilog HDL

Primary LanguageCommon Lisp

  • start with cl-cpp-generator2
  • verilog code beautifier
git clone https://github.com/thomasrussellmurphy/istyle-verilog-formatter
cd istyle-verilog-formatter
sudo cp bin/release/iStyle /usr/local/

  • use code formatter:
    iStyle --style=gnu 
        

Building blocks to make s-expression language easy to use

indentprefix with absolute number of tabs
rindentprefix with relative number of tabs
commentsone or more full line comments
commentcomment behind column 80 or after the last character of the current line, whatever is largest
semicolonsuffix line with a semicolon if its last character is no semicolon
“string”write a string in verilog, except if it is a function call, e.g. (“\pipe” a b)

Internal helpers

suffixstring to be injected before newline