ArrayList<VerilogParameterElement> parameters=new ArrayList<VerilogParameterElement>();
ArrayList<VerilogPortElement> ports=new ArrayList<VerilogPortElement>();
for(OutlineElement child : module.getChildren()){
if (child instanceof VerilogParameterElement) {
VerilogParameterElement p = (VerilogParameterElement) child;
// localparam is not included parameter list
if (!p.isLocal())
parameters.add(p);
}
if (child instanceof VerilogPortElement) {
VerilogPortElement p = (VerilogPortElement) child;
ports.add(p);