Add Addressmap block size to generated package (#134)
* add map size as a localparam in rdl map package * rename from _SIZE -> _BYTES_SIZE * fix names on new test & localparam * wrap map size in SVInt
This commit is contained in:
committed by
GitHub
parent
aba2af17af
commit
28ed82129f
12
tests/test_map_size/tb_template.sv
Normal file
12
tests/test_map_size/tb_template.sv
Normal file
@@ -0,0 +1,12 @@
|
||||
{% extends "lib/tb_base.sv" %}
|
||||
|
||||
{% block seq %}
|
||||
{% sv_line_anchor %}
|
||||
##1;
|
||||
cb.rst <= '0;
|
||||
##1;
|
||||
|
||||
// check block size
|
||||
assert(regblock_pkg::REGBLOCK_SIZE == {{exporter.ds.top_node.size}});
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user