1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

cad/py-pyfda: Fix build with setuptools 58.0.0+

With hat:	python
This commit is contained in:
Po-Chuan Hsieh 2022-06-03 21:56:20 +08:00
parent c630dbc482
commit 19f314f400
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B

View File

@ -0,0 +1,32 @@
Reference: https://docs.myhdl.org/en/stable/manual/reference.html#myhdl.ResetSignal
--- pyfda/hdl_generation/filter_iir.py.orig 2017-01-10 06:40:25 UTC
+++ pyfda/hdl_generation/filter_iir.py
@@ -3,9 +3,6 @@
# Copyright (c) 2011, 2015 Christopher L. Felton
#
-from __future__ import absolute_import
-from __future__ import print_function
-from __future__ import division
"""
IIR Hadward Filter Generation
@@ -243,7 +240,7 @@ class FilterIIR(object):
return iir
clock = Signal(False)
- reset = ResetSignal(0, active=1, async=False)
+ reset = ResetSignal(0, active=1, isasync=False)
x = Signal(intbv(0, min=-imax, max=imax))
y = Signal(intbv(0, min=-imax, max=imax))
xdv, ydv = Signal(bool(0)), Signal(bool(0))
@@ -268,7 +265,7 @@ class FilterIIR(object):
self.Nfft = Nfft
w = self.word_format[0]
clock = Signal(bool(0))
- reset = ResetSignal(0, active=1, async=False)
+ reset = ResetSignal(0, active=1, isasync=False)
sigin = FilterInterface(word_format=self.word_format)
sigout = FilterInterface(word_format=self.word_format)
xf = Signal(0.0) # floating point version