Skip to content

Commit 9fc4396

Browse files
committed
Merge branch 'development' of https://github.com/UCSBarchlab/PyRTL into development
2 parents 0d45e9d + c631112 commit 9fc4396

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+6364
-562
lines changed

.coveragerc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ exclude_lines =
99
pragma: no cover
1010

1111
# ignore pass statements that are not run:
12-
# sometimes you need them to make a block (especially for unittetsts)
12+
# sometimes you need them to make a block (especially for unittests)
1313
# need to be really careful with this one because 'pass' shows up in other places as well
1414
\spass\s
1515
\spass$
@@ -28,4 +28,9 @@ exclude_lines =
2828

2929
ignore_errors = True
3030

31-
omit = .tox/*
31+
omit =
32+
.tox/*
33+
*/tests/*
34+
*/ctypes/*
35+
six.py
36+
pyparsing.py

.github/workflows/python-package.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
- name: Install dependencies
2121
run: |
2222
python -m pip install --upgrade pip
23-
pip install tox tox-gh-actions
23+
pip install tox tox-gh-actions coverage
2424
- name: Test with tox
25-
run: tox
25+
run: tox
26+
- name: Upload coverage to Codecov
27+
uses: codecov/codecov-action@v1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ htmlcov/
1313
dist
1414
build
1515
eggs
16+
.eggs
1617
parts
1718
bin
1819
var

apt.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
graphviz

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
author = 'Timothy Sherwood'
2323

2424
# The full version, including alpha/beta/rc tags
25-
release = '0.9.0'
25+
release = '0.10.0'
2626

2727

2828
# -- General configuration ---------------------------------------------------

docs/rtllib.rst

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ This is a set of files that contain useful miscellaneous functions and classes
1818
| :ref:`libutils-ref`
1919
| :ref:`multipliers-ref`
2020
| :ref:`muxes-ref`
21+
| :ref:`matrix-ref`
2122
| :ref:`testingutils-ref`
2223
2324

@@ -101,7 +102,21 @@ Muxes
101102
:show-inheritance:
102103
:special-members:
103104
:undoc-members:
104-
:exclude-members: __dict__,__weakref__,__module__, __exit__
105+
:exclude-members: __dict__,__weakref__,__module__,__exit__
106+
107+
:ref:`Back to top of page <top-of-page-rtllib>`
108+
109+
.. _matrix-ref:
110+
111+
Matrix
112+
------
113+
114+
.. automodule:: pyrtl.rtllib.matrix
115+
:members:
116+
:show-inheritance:
117+
:special-members:
118+
:undoc-members:
119+
:exclude-members: __dict__,__weakref__,__module__
105120

106121
:ref:`Back to top of page <top-of-page-rtllib>`
107122

File renamed without changes.

ipynb-examples/example7-synth-timing-draft.ipynb renamed to ipynb-examples/example7-synth-timing.ipynb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
},
2626
"outputs": [],
2727
"source": [
28-
"import pyrtl\n",
29-
"from pyrtl.analysis import estimate"
28+
"import pyrtl"
3029
]
3130
},
3231
{
@@ -77,7 +76,7 @@
7776
"source": [
7877
"# Generating timing analysis information\n",
7978
"print(\"Pre Synthesis:\")\n",
80-
"timing = estimate.TimingAnalysis()\n",
79+
"timing = pyrtl.TimingAnalysis()\n",
8180
"timing.print_max_length()"
8281
]
8382
},
@@ -119,7 +118,7 @@
119118
"metadata": {},
120119
"outputs": [],
121120
"source": [
122-
"logic_area, mem_area = estimate.area_estimation(tech_in_nm=65)\n",
121+
"logic_area, mem_area = pyrtl.area_estimation(tech_in_nm=65)\n",
123122
"est_area = logic_area + mem_area\n",
124123
"print(\"Estimated Area of block\", est_area, \"sq mm\")\n",
125124
"print()"
@@ -154,7 +153,7 @@
154153
"pyrtl.synthesize()\n",
155154
"\n",
156155
"print(\"Pre Optimization:\")\n",
157-
"timing = estimate.TimingAnalysis()\n",
156+
"timing = pyrtl.TimingAnalysis()\n",
158157
"timing.print_max_length()\n",
159158
"for net in pyrtl.working_block().logic:\n",
160159
" print(str(net))\n",
@@ -201,7 +200,7 @@
201200
"outputs": [],
202201
"source": [
203202
"print(\"Post Optimization:\")\n",
204-
"timing = estimate.TimingAnalysis()\n",
203+
"timing = pyrtl.TimingAnalysis()\n",
205204
"timing.print_max_length()"
206205
]
207206
},

ipynb-examples/example8-verilog.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
"source": [
2929
"import random\n",
3030
"import io\n",
31-
"import pyrtl\n",
32-
"from pyrtl.analysis import estimate"
31+
"import pyrtl"
3332
]
3433
},
3534
{

postBuild

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
set -e
2+
3+
pip install graphviz

0 commit comments

Comments
 (0)