diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-08-29 22:46:15 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-08-29 22:46:15 +0300 |
| commit | d53ca78497316436c89f8f277da1b2664f404281 (patch) | |
| tree | d133fcd950639a78d522cc62636a2305580c3122 /tests/simple_mem/bus.c | |
| parent | da2c88e13f1ef6576a5afa1b671f75973435caf3 (diff) | |
| download | gran-d53ca78497316436c89f8f277da1b2664f404281.tar.gz gran-d53ca78497316436c89f8f277da1b2664f404281.zip | |
fix mem tests
Diffstat (limited to 'tests/simple_mem/bus.c')
| -rw-r--r-- | tests/simple_mem/bus.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/simple_mem/bus.c b/tests/simple_mem/bus.c index 5f4b89f..9af3e4c 100644 --- a/tests/simple_mem/bus.c +++ b/tests/simple_mem/bus.c @@ -12,8 +12,9 @@ int main() { - const size_t size = 100000; - const uintptr_t addr = 100000; + /* ensure aligned accesses */ + const size_t size = 0x100000; + const uintptr_t addr = 0x100000; struct component *simple_mem = create_simple_mem(size); struct component *simple_bus = create_simple_bus(); simple_bus_add(simple_bus, simple_mem, addr, size); @@ -21,8 +22,12 @@ int main() struct component *traffic_gen = create_traffic_gen(simple_bus, addr, size); + simple_bus_add(simple_bus, traffic_gen, 0, 1); + struct clock_domain *clk = create_clock_domain(NS(1)); clock_domain_add(clk, traffic_gen); + clock_domain_add(clk, simple_mem); + clock_domain_add(clk, simple_bus); struct gran_root *root = create_root(); root_add_clock(root, clk); |
