In BlockPower, manage correctly a block without clock tree.

This commit is contained in:
Jean-Paul Chaput 2014-12-12 18:40:53 +01:00
parent a09e716ce9
commit 56bd484429
1 changed files with 4 additions and 0 deletions

View File

@ -218,6 +218,10 @@ class Block ( chip.Configuration.ChipConfWrapper ):
def connectClock ( self ):
if not self.useClockTree:
print WarningMessage( "Clock tree generation has been disabled ('chip.clockTree':False) ignored." )
return
if not self.cko:
print ErrorMessage( 1, 'Cannot build clock terminal as ck is not known.' )
return