gen/genlib/cdc: import gcd from math and not fractions (deprecated)
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 25 Apr 2017 08:55:13 +0000 (10:55 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 25 Apr 2017 08:55:13 +0000 (10:55 +0200)
litex/gen/genlib/cdc.py

index 6e7b0ad8b5a7b947e6d8817168b07efd96dca262..2f9efabc2b5c4958bb853050e853bb3d1de65cc8 100644 (file)
@@ -1,7 +1,7 @@
 """
 Clock domain crossing module
 """
-from fractions import gcd
+from math import gcd
 
 from litex.gen.fhdl.structure import *
 from litex.gen.fhdl.module import Module