1 # SPDX-License-Identifier: LGPL-2.1-or-later
2 # See Notices.txt for copyright information
3 from nmigen import Module
4 from typing import Iterable, Optional, Iterator, Any, Union
5 from typing_extensions import final
9 class LFSRPolynomial(set):
10 def __init__(self, exponents: Iterable[int] = ()):
11 def elements() -> Iterable[int]: ...
13 def exponents(self) -> list[int]: ...
14 def __str__(self) -> str: ...
15 def __repr__(self) -> str: ...
20 def __init__(self, polynomial: Union[Iterable[int], LFSRPolynomial]): ...
22 def width(self) -> int: ...
23 def elaborate(self, platform: Any) -> Module: ...