Skip to content

Commit

Permalink
Merge branch 'main' into fud2-remove-duplicate-ops
Browse files Browse the repository at this point in the history
  • Loading branch information
jku20 committed Nov 3, 2024
2 parents 87f2cc9 + a1a2b3e commit 0360733
Show file tree
Hide file tree
Showing 152 changed files with 5,626 additions and 3,045,839 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,21 @@ jobs:
git checkout -f $GITHUB_SHA
git clean -fd
- name: Install calyx-py & MrXL
- name: Install calyx-py, MrXL, and queues
working-directory: /home/calyx
run: |
cd calyx-py
FLIT_ROOT_INSTALL=1 flit install --symlink
cd -
cd frontends/mrxl
FLIT_ROOT_INSTALL=1 flit install --symlink
cd -
cd frontends/queues
FLIT_ROOT_INSTALL=1 flit install --symlink
- name: Generate queue .data and .expect files
working-directory: /home/calyx
run: ./frontends/queues/test_data_gen/gen_test_data.sh

- name: Build
uses: actions-rs/cargo@v1
Expand All @@ -191,7 +198,7 @@ jobs:
- name: Runt tests
working-directory: /home/calyx
run: |
runt -x 'cocotb' -d -o fail -j 1 --max-futures 5
runt -x 'cocotb|profiler' -d -o fail -j 1 --max-futures 5
- name: Run Python Tests
working-directory: /home/calyx
Expand Down
14 changes: 10 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,17 @@ results.xml
# btor2i ignore
tools/btor2/btor2i/build/

# vcd-parsing tmp files ignore
tools/profiler/tmp/
tools/profiler/logs
# profiling ignore
tools/profiler/data

temp/

# large queue .data and .expect files ignore
frontends/queues/tests/**/*.data
frontends/queues/tests/**/*.expect

# for running a venv
.venv
.venv

# emacs
*~
38 changes: 16 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ members = [
"fud2/fud-core",
"tools/data-conversion",
"tools/btor2/btor2i",
"tools/cider-data-converter",
"tools/calyx-pass-explorer",
"tools/cider-data-converter",
"tools/component_cells",
"tools/yxi",
"tools/calyx-writer",
]
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ ENV PATH="/opt/venv/bin:$PATH"
RUN python3 -m pip install numpy==1.26.4 flit prettytable wheel hypothesis pytest simplejson cocotb==1.6.2
# Current cocotb-bus has a bug that is fixed in more up to date repo
RUN python3 -m pip install git+https://github.com/cocotb/cocotb-bus.git cocotbext-axi
# Vcdvcd for profiling
RUN python3 -m pip install vcdvcd

# Install clang
RUN apt-get install -y clang
Expand Down
9 changes: 9 additions & 0 deletions calyx-ir/src/structure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,15 @@ impl<T> Assignment<T> {
}
self.guard.for_each(&mut |port| f(&port).map(Guard::port))
}

/// Iterate through all ports contained within the assignment.
pub fn iter_ports(&self) -> impl Iterator<Item = RRC<Port>> {
self.guard
.all_ports()
.into_iter()
.chain(std::iter::once(Rc::clone(&self.dst)))
.chain(std::iter::once(Rc::clone(&self.src)))
}
}

impl From<Assignment<Nothing>> for Assignment<StaticTiming> {
Expand Down
Loading

0 comments on commit 0360733

Please sign in to comment.