|
| 1 | +# ============================================================================= |
| 2 | +# __ ___ _ ____ _ __ __ _ _ |
| 3 | +# _ __ _ \ \ / / | | | _ \| | | \/ | ___ __| | ___| | |
| 4 | +# | '_ \| | | \ \ / /| |_| | | | | | | |\/| |/ _ \ / _` |/ _ \ | |
| 5 | +# | |_) | |_| |\ V / | _ | |_| | |___| | | | (_) | (_| | __/ | |
| 6 | +# | .__/ \__, | \_/ |_| |_|____/|_____|_| |_|\___/ \__,_|\___|_| |
| 7 | +# |_| |___/ |
| 8 | +# ============================================================================== |
| 9 | +# Authors: Patrick Lehmann |
| 10 | +# |
| 11 | +# Python module: An abstract PSL language model. |
| 12 | +# |
| 13 | +# Description: |
| 14 | +# ------------------------------------ |
| 15 | +# TODO: |
| 16 | +# |
| 17 | +# License: |
| 18 | +# ============================================================================== |
| 19 | +# Copyright 2017-2021 Patrick Lehmann - Boetzingen, Germany |
| 20 | +# Copyright 2016-2017 Patrick Lehmann - Dresden, Germany |
| 21 | +# |
| 22 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 23 | +# you may not use this file except in compliance with the License. |
| 24 | +# You may obtain a copy of the License at |
| 25 | +# |
| 26 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 27 | +# |
| 28 | +# Unless required by applicable law or agreed to in writing, software |
| 29 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 30 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 31 | +# See the License for the specific language governing permissions and |
| 32 | +# limitations under the License. |
| 33 | +# |
| 34 | +# SPDX-License-Identifier: Apache-2.0 |
| 35 | +# ============================================================================== |
| 36 | +# |
| 37 | +""" |
| 38 | +This module contains a document language model for PSL. |
| 39 | +
|
| 40 | +:copyright: Copyright 2007-2021 Patrick Lehmann - Bötzingen, Germany |
| 41 | +:license: Apache License, Version 2.0 |
| 42 | +""" |
| 43 | +# load dependencies |
| 44 | +from pydecor.decorators import export |
| 45 | + |
| 46 | +from pyVHDLModel.VHDLModel import PrimaryUnit, ModelEntity |
| 47 | + |
| 48 | + |
| 49 | +__all__ = [] |
| 50 | + |
| 51 | +@export |
| 52 | +class PSLPrimaryUnit(PrimaryUnit): |
| 53 | + pass |
| 54 | + |
| 55 | + |
| 56 | +@export |
| 57 | +class PSLEntity(ModelEntity): |
| 58 | + pass |
| 59 | + |
| 60 | + |
| 61 | +@export |
| 62 | +class VerificationUnit(PSLPrimaryUnit): |
| 63 | + def __init__(self, identifier: str): |
| 64 | + super().__init__(identifier) |
| 65 | + |
| 66 | + |
| 67 | +@export |
| 68 | +class VerificationProperty(PSLPrimaryUnit): |
| 69 | + def __init__(self, identifier: str): |
| 70 | + super().__init__(identifier) |
| 71 | + |
| 72 | + |
| 73 | +@export |
| 74 | +class VerificationMode(PSLPrimaryUnit): |
| 75 | + def __init__(self, identifier: str): |
| 76 | + super().__init__(identifier) |
| 77 | + |
| 78 | + |
| 79 | +@export |
| 80 | +class DefaultClock(PSLEntity): |
| 81 | + _identifier: str |
| 82 | + |
| 83 | + def __init__(self, identifier: str): |
| 84 | + super().__init__() |
| 85 | + self._identifier = identifier |
| 86 | + |
| 87 | + @property |
| 88 | + def Identifier(self) -> str: |
| 89 | + return self._identifier |
0 commit comments