Initial Commit - Forked from PeakRDL-regblock @ a440cc19769069be831d267505da4f3789a26695
This commit is contained in:
0
tests/test_map_size/__init__.py
Normal file
0
tests/test_map_size/__init__.py
Normal file
5
tests/test_map_size/regblock.rdl
Normal file
5
tests/test_map_size/regblock.rdl
Normal file
@@ -0,0 +1,5 @@
|
||||
addrmap top {
|
||||
reg {
|
||||
field {} f1[32] = 0;
|
||||
} my_reg;
|
||||
};
|
||||
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 %}
|
||||
5
tests/test_map_size/testcase.py
Normal file
5
tests/test_map_size/testcase.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from ..lib.sim_testcase import SimTestCase
|
||||
|
||||
class Test(SimTestCase):
|
||||
def test_dut(self):
|
||||
self.run_test()
|
||||
Reference in New Issue
Block a user