Skip to content

Commit

Permalink
Merge branch 'micro-demos' into micro_demo
Browse files Browse the repository at this point in the history
  • Loading branch information
kalhankoul96 committed Oct 31, 2024
2 parents 2053dc9 + 8d0d140 commit de6014c
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,6 @@
[submodule "Lego_v0"]
path = Lego_v0
url = https://github.com/sgauthamr2001/Lego_v0.git
[submodule "DSEGraphAnalysis"]
path = DSEGraphAnalysis
url = https://github.com/jack-melchert/DSEGraphAnalysis.git
1 change: 1 addition & 0 deletions DSEGraphAnalysis
Submodule DSEGraphAnalysis added at 9b3793
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ COPY ./peak /aha/peak
COPY ./peak_generator /aha/peak_generator
COPY ./pycoreir /aha/pycoreir
COPY ./Lego_v0 /aha/Lego_v0
COPY ./DSEGraphAnalysis /aha/DSEGraphAnalysis

# Install aha tools /aha/aha/
COPY ./setup.py /aha/setup.py
Expand Down
2 changes: 1 addition & 1 deletion MetaMapper
Submodule MetaMapper updated 1 files
+1 −4 scripts/map_app.py
25 changes: 25 additions & 0 deletions canal_demo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
from canal.cyclone import *

num_tracks = 5

input_nodes = {}
for side in SwitchBoxSide:
input_nodes[side] = []
for track in range(num_tracks):
input_nodes[side].append(SwitchBoxNode(0, 0, track, 16, side, SwitchBoxIO.SB_IN))

output_nodes = {}
for side in SwitchBoxSide:
output_nodes[side] = []
for track in range(num_tracks):
output_nodes[side].append(SwitchBoxNode(0, 0, track, 16, side, SwitchBoxIO.SB_OUT))

for track in range(num_tracks):
for side_from in SwitchBoxSide:
for side_to in SwitchBoxSide:
if side_from == side_to:
continue
input_node = input_nodes[side_from][track]
output_node = output_nodes[side_to][track]
print(f"Wire {input_node} -> {output_node}")
input_node.add_edge(output_node)
8 changes: 8 additions & 0 deletions cascade_demo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cd /aha/

pip install Pillow

POST_PNR_ITR=$1 PYTHONPATH=/aha/garnet/ python /aha/garnet/tests/test_memory_core/build_tb.py --ic_fork --sam_graph /aha/sam/compiler/sam-outputs/onyx-dot/mat_elemadd.gv --seed 0 --dump_bitstream --add_pond --combined --pipeline_scanner --base_dir /aha/garnet/SPARSE_TESTS/ --just_glb --dump_glb --fiber_access --width 12 --height 4

python archipelago/archipelago/sta.py -a garnet/SIM_DIR/ -v

2 changes: 1 addition & 1 deletion peak_generator

0 comments on commit de6014c

Please sign in to comment.