Some dict instances are replaced with OrderedDict to keep the inserion order of paramter and localparam.