Skip to content

Commit

Permalink
Move tutorial implementation to examples directory
Browse files Browse the repository at this point in the history
  • Loading branch information
minseongg committed Sep 1, 2024
1 parent a3e9fcc commit 052c77b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/docs/tutorial/fir_filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,4 @@ impl<const N: usize> Valid<Array<u32, N>> {
It takes an `Valid<Array<u32, N>>` and returns `Valid<u32>`. It transforms the ingress payload to sum of them.
In the application-specific logic in `map` interface combinator, we use `fold_assoc` method which aggregates the data within array of signal.

You can find the implementation in [fir_filter.rs](TODO).
You can find the implementation in [fir_filter.rs](https://github.com/kaist-cp/hazardflow/blob/main/hazardflow-designs/src/examples/fir_filter.rs).
4 changes: 2 additions & 2 deletions doc/docs/tutorial/masked_merge.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Masked Merge

In this tutorial, `masked_merge` combinator를 이용해서 resolver 개념을 modular design에 어떻게 활용할 수 있는지 알아볼 것이다.

## Specification

<p align="center">
Expand Down Expand Up @@ -97,4 +95,6 @@ pub fn m(ingress: [Vr<u32>; 5]) -> Vr<u32> {
}
```

You can find the implementation in [masked_merge.rs](https://github.com/kaist-cp/hazardflow/blob/main/hazardflow-designs/src/examples/masked_merge.rs).

Congratulations! You finished the tutorial!
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions hazardflow-designs/src/examples/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
//! HazardFlow examples.
pub mod fir_filter;
pub mod masked_merge;
3 changes: 1 addition & 2 deletions hazardflow-designs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
#![register_tool(hazardflow)]

pub mod cpu;
pub mod fir_filter;
pub mod examples;
pub mod gemmini;
pub mod masked_merge;
pub mod prelude;
pub mod std;

0 comments on commit 052c77b

Please sign in to comment.