invert clock/spc link for input pintypes
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 30 Jul 2018 08:31:46 +0000 (09:31 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 30 Jul 2018 08:31:46 +0000 (09:31 +0100)
src/bsv/peripheral_gen/base.py

index 51902fcf6c126dd46223ee59c22ec524941cadc6..397c1c06e683c2a4d16f0366d52cdbbe67db74d0 100644 (file)
@@ -300,6 +300,8 @@ Ifc_sync#({0}) {1}_sync <-mksyncconnection(
 
         n_ = "{0}{1}".format(name, count)
         n_ = '{0}_{1}'.format(n_, pname)
+        if typ == 'in' or typ == 'inout':
+            ck, spc = spc, ck
         return template.format(bitspec,  n_, ck, spc)