First let me thank you for all the work you put into this core. I like your method of generating a configurable core with a C++ program that has no dependencies!
I'm not sure if this is a bug or not but with iverilog there is an error from longbimpy.v. The error given is: "longbimpy.v:142: error: Concatenation operand "(LUTB)*((k)+('sd2))" has indefinite width.". Iverilog seems very strict with this. The core does compile with another simulator (Active-HDL) and seems to work correctly.
I think the syntax that causes the error is actually the replication operator (line 1218 of the c program) "genp, {{(LUTB(k+2))}{1'b0}} };" should be "genp, {(LUTB(k+2)){1'b0}} };" After making this change it compiles and simulates on both of my simulators.
Best regards