From fb473258748d333b4831e47880d02099da550f73 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 30 Jul 2018 09:31:46 +0100 Subject: [PATCH] invert clock/spc link for input pintypes --- src/bsv/peripheral_gen/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bsv/peripheral_gen/base.py b/src/bsv/peripheral_gen/base.py index 51902fc..397c1c0 100644 --- a/src/bsv/peripheral_gen/base.py +++ b/src/bsv/peripheral_gen/base.py @@ -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) -- 2.30.2