Skip to content

Commit

Permalink
Add warning about lack of bridge support in exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
amykyta3 committed May 27, 2021
1 parent fbe6b5c commit f371538
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: build

on:
push:
branches: [ master ]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![.github/workflows/build.yml](https://github.com/SystemRDL/PeakRDL-uvm/workflows/.github/workflows/build.yml/badge.svg)
[![build](https://github.com/SystemRDL/PeakRDL-uvm/workflows/build/badge.svg)](https://github.com/SystemRDL/PeakRDL-uvm/actions?query=workflow%3Abuild+branch%3Amaster)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/peakrdl-uvm.svg)](https://pypi.org/project/peakrdl-uvm)

# PeakRDL-uvm
Expand Down
2 changes: 1 addition & 1 deletion peakrdl/uvm/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.0.2"
__version__ = "2.0.3"
6 changes: 6 additions & 0 deletions peakrdl/uvm/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ def export(self, node: Node, path: str, **kwargs):
node = node.top
self.top = node

if isinstance(node, AddrmapNode) and node.get_property('bridge'):
node.env.msg.warning(
"UVM RAL generator does not have proper support for bridge addmaps yet. The 'bridge' property will be ignored.",
node.inst.property_src_ref.get('bridge', node.inst.inst_src_ref)
)

# First, traverse the model and collect some information
self.bus_width_db = {}
RDLWalker().walk(self.top, PreExportListener(self))
Expand Down

0 comments on commit f371538

Please sign in to comment.