Skip to content

Commit 2238b14

Browse files
committed
Merge upstream/v1.1.1 into VHDL port
2 parents 68d199f + 17ceaa7 commit 2238b14

File tree

13 files changed

+47
-36
lines changed

13 files changed

+47
-36
lines changed

docs/conf.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,17 @@
4949
# The theme to use for HTML and HTML Help pages. See the documentation for
5050
# a list of builtin themes.
5151
#
52-
html_theme = "sphinx_rtd_theme"
52+
html_theme = "sphinx_book_theme"
53+
54+
html_theme_options = {
55+
"repository_url": "https://github.com/SystemRDL/PeakRDL-regblock-vhdl",
56+
"path_to_docs": "docs",
57+
"use_download_button": False,
58+
"use_source_button": True,
59+
"use_repository_button": True,
60+
"use_issues_button": True,
61+
}
62+
5363

5464
# Add any paths that contain custom static files (such as style sheets) here,
5565
# relative to this directory. They are copied after the builtin static files,

docs/cpuif/internal_protocol.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ cpuif_req_stall_rd
4444
transfer will not be accepted until this signal is deasserted.
4545

4646
cpuif_req_stall_wr
47-
If asserted, and the next pending request is a read operation, then the
47+
If asserted, and the next pending request is a write operation, then the
4848
transfer will not be accepted until this signal is deasserted.
4949

5050

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pygments-systemrdl
22
sphinxcontrib-wavedrom
3-
sphinx-rtd-theme
3+
sphinx-book-theme
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version_info = (1, 1, 0, 0)
1+
version_info = (1, 1, 1, 0)
22
__version__ = ".".join([str(n) for n in version_info])

src/peakrdl_regblock_vhdl/cpuif/apb3/apb3_tmpl.vhd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{%- if cpuif.is_interface -%}
22
-- pragma translate_off
33
cpuif_generics: process begin
4-
assert {{cpuif.signal("paddr")}}'length >= {{ds.module_name.upper()}}_MIN_ADDR_WIDTH
4+
assert_bad_addr_width: assert {{cpuif.signal("paddr")}}'length >= {{ds.module_name.upper()}}_MIN_ADDR_WIDTH
55
report "Interface address width of " & integer'image({{cpuif.signal("paddr")}}'length) & " is too small. Shall be at least " & integer'image({{ds.module_name.upper()}}_MIN_ADDR_WIDTH) & " bits"
66
severity failure;
7-
assert {{cpuif.signal("pwdata")}}'length = {{ds.module_name.upper()}}_DATA_WIDTH
7+
assert_bad_data_width: assert {{cpuif.signal("pwdata")}}'length = {{ds.module_name.upper()}}_DATA_WIDTH
88
report "Interface data width of " & integer'image({{cpuif.signal("pwdata")}}'length) & " is incorrect. Shall be " & integer'image({{ds.module_name.upper()}}_DATA_WIDTH) & " bits"
99
severity failure;
1010
wait;

src/peakrdl_regblock_vhdl/cpuif/apb4/apb4_tmpl.vhd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{%- if cpuif.is_interface -%}
22
-- pragma translate_off
33
cpuif_generics: process begin
4-
assert {{cpuif.signal("paddr")}}'length >= {{ds.module_name.upper()}}_MIN_ADDR_WIDTH
4+
assert_bad_addr_width: assert {{cpuif.signal("paddr")}}'length >= {{ds.module_name.upper()}}_MIN_ADDR_WIDTH
55
report "Interface address width of " & integer'image({{cpuif.signal("paddr")}}'length) & " is too small. Shall be at least " & integer'image({{ds.module_name.upper()}}_MIN_ADDR_WIDTH) & " bits"
66
severity failure;
7-
assert {{cpuif.signal("pwdata")}}'length = {{ds.module_name.upper()}}_DATA_WIDTH
7+
assert_bad_data_width: assert {{cpuif.signal("pwdata")}}'length = {{ds.module_name.upper()}}_DATA_WIDTH
88
report "Interface data width of " & integer'image({{cpuif.signal("pwdata")}}'length) & " is incorrect. Shall be " & integer'image({{ds.module_name.upper()}}_DATA_WIDTH) & " bits"
99
severity failure;
1010
wait;

src/peakrdl_regblock_vhdl/cpuif/avalon/avalon_tmpl.vhd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{%- if cpuif.is_interface -%}
22
-- pragma translate_off
33
cpuif_generics: process begin
4-
assert {{cpuif.signal("address")}}'length >= {{cpuif.word_addr_width}}
4+
assert_bad_addr_width: assert {{cpuif.signal("address")}}'length >= {{cpuif.word_addr_width}}
55
report "Interface address width of " & integer'image({{cpuif.signal("address")}}'length) & " is too small. Shall be at least " & integer'image({{cpuif.word_addr_width}}) & " bits"
66
severity failure;
7-
assert {{cpuif.signal("writedata")}}'length = {{ds.module_name.upper()}}_DATA_WIDTH
7+
assert_bad_data_width: assert {{cpuif.signal("writedata")}}'length = {{ds.module_name.upper()}}_DATA_WIDTH
88
report "Interface data width of " & integer'image({{cpuif.signal("writedata")}}'length) & " is incorrect. Shall be " & integer'image({{ds.module_name.upper()}}_DATA_WIDTH) & " bits"
99
severity failure;
1010
wait;

src/peakrdl_regblock_vhdl/cpuif/axi4lite/axi4lite_tmpl.vhd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{%- if cpuif.is_interface -%}
22
-- pragma translate_off
33
cpuif_generics: process begin
4-
assert {{cpuif.signal("araddr")}}'length >= {{ds.module_name.upper()}}_MIN_ADDR_WIDTH
4+
assert_bad_addr_width: assert {{cpuif.signal("araddr")}}'length >= {{ds.module_name.upper()}}_MIN_ADDR_WIDTH
55
report "Interface address width of " & integer'image({{cpuif.signal("araddr")}}'length) & " is too small. Shall be at least " & integer'image({{ds.module_name.upper()}}_MIN_ADDR_WIDTH) & " bits"
66
severity failure;
7-
assert {{cpuif.signal("wdata")}}'length = {{ds.module_name.upper()}}_DATA_WIDTH
7+
assert_bad_data_width: assert {{cpuif.signal("wdata")}}'length = {{ds.module_name.upper()}}_DATA_WIDTH
88
report "Interface data width of " & integer'image({{cpuif.signal("wdata")}}'length) & " is incorrect. Shall be " & integer'image({{ds.module_name.upper()}}_DATA_WIDTH) & " bits"
99
severity failure;
1010
wait;

src/peakrdl_regblock_vhdl/hwif/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def top_node(self) -> AddrmapNode:
5050

5151

5252
def get_extra_package_params(self) -> str:
53-
lines = []
53+
lines = [""]
5454

5555
for param in self.top_node.inst.parameters:
5656
value = param.get_value()
@@ -70,7 +70,7 @@ def get_package_contents(self) -> str:
7070
"""
7171
If this hwif requires a package, generate the string
7272
"""
73-
lines = []
73+
lines = [""]
7474

7575
gen_in = self._gen_in_cls(self)
7676
structs_in = gen_in.get_struct(

src/peakrdl_regblock_vhdl/module_tmpl.vhd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ begin
153153
external_pending <= '0';
154154
end if;
155155
--pragma translate_off
156-
assert not external_wr_ack or (external_pending or external_req)
156+
assert_bad_ext_wr_ack: assert not external_wr_ack or (external_pending or external_req)
157157
report "An external wr_ack strobe was asserted when no external request was active";
158-
assert not external_rd_ack or (external_pending or external_req)
158+
assert_bad_ext_rd_ack: assert not external_rd_ack or (external_pending or external_req)
159159
report "An external rd_ack strobe was asserted when no external request was active";
160160
--pragma translate_on
161161
end if;

0 commit comments

Comments
 (0)