pb_type clock outputs are now in "outputs" instead of "clocks".

Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
diff --git a/v2x/vlog_to_pbtype.py b/v2x/vlog_to_pbtype.py
index 6f8d897..7146992 100755
--- a/v2x/vlog_to_pbtype.py
+++ b/v2x/vlog_to_pbtype.py
@@ -819,6 +819,12 @@
         port_attrs = mod.port_attrs(name)
 
         is_clock = utils.is_clock_name(name)
+
+        # In pb_type "clock" ports can be only inputs. Clock outputs must
+        # be declared as "output".
+        if iodir == "output":
+            is_clock = False
+
         if "CLOCK" in port_attrs:
             is_clock = int(port_attrs["CLOCK"]) != 0