Skip to content

Commit

Permalink
adding statistics and simulation links
Browse files Browse the repository at this point in the history
  • Loading branch information
shannong committed Jul 31, 2024
1 parent 162957a commit ce3d362
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/sst/elements/vanadis/examples/vanadis_L1_L2_L3.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,19 @@
memory.addParams({
"access_time" : "1000ns",
"mem_size" : "512MiB"
})
})



# Enable statistics
sst.setStatisticLoadLevel(7)
sst.setStatisticOutput("sst.statOutputConsole")
for a in componentlist:
sst.enableAllStatisticsForComponentType(a)


# Define the simulation links
link_cpu_cache_link = sst.Link("link_cpu_cache_link")
link_cpu_cache_link.connect( (iface, "port", "1000ps"), (l1cache, "high_network_0", "1000ps") )
link_mem_bus_link = sst.Link("link_mem_bus_link")
link_mem_bus_link.connect( (l1cache, "low_network_0", "50ps"), (memctrl, "direct_link", "50ps") )

0 comments on commit ce3d362

Please sign in to comment.