message: ToSystemc: fix port connection codestyle, typedef array size format
diff: @@ -71,7 +71,7 @@ class ToSystemc(ToSystemcStm):
  w("// component instances\n")
  for c in components:
  - w(c.module_name)
  + w(c.module_name.val)
  w(" ")
  w(c.name)
  w('();\n')
  @@ -101,16 +101,19 @@ class ToSystemc(ToSystemcStm):
  w(" {\n")
  with Indent(self.out):
  for p in processes:
  + if p.sensitivity:
  w("SC_METHOD(")
  w(p.labels[0])
  w(");\n")
  - if p.sensitivity:
  w("sensitive")
  for s in p.sensitivity:
  w(" << ")
  self.visit_iHdlExpr(s)
  w(";\n")
  -
  + else:
  + w(p.labels[0])
  + w("();\n")
  + w("// connect ports\n")
  for c in components:
  for pm in c.port_map:
  w(c.name)
  @@ -124,7 +127,7 @@ class ToSystemc(ToSystemcStm):
  connected_sig, HdlName), connected_sig
  w("(")
  self.visit_iHdlExpr(connected_sig)
  - w(")")
  + w(");\n")
  w("}\n")
  w("};\n")
  @@ -155,12 +158,16 @@ class ToSystemc(ToSystemcStm):
  """
  self.visit_doc(var)
  w = self.out.write
  - self.visit_type(var.type)
  + t, arr_dims = collect_array_dims(var.type)
  + self.visit_type(t)
  w(" ")
  w(var.name)
  + for d in arr_dims:
  + w("[")
  + self.visit_iHdlExpr(d)
  + w("]")
  if var.value is not None:
  - w("(")
  + w(" = ")
  with Indent(self.out):
  self.visit_iHdlExpr(var.value)
  - w(")")
  return True
  