diff --git a/doc/docs/tutorial/fir_filter.md b/doc/docs/tutorial/fir_filter.md index bdf3cd7..121ece4 100644 --- a/doc/docs/tutorial/fir_filter.md +++ b/doc/docs/tutorial/fir_filter.md @@ -147,4 +147,4 @@ impl Valid> { It takes an `Valid>` and returns `Valid`. 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). diff --git a/doc/docs/tutorial/masked_merge.md b/doc/docs/tutorial/masked_merge.md index 10c0008..8ddbb32 100644 --- a/doc/docs/tutorial/masked_merge.md +++ b/doc/docs/tutorial/masked_merge.md @@ -1,7 +1,5 @@ # Masked Merge -In this tutorial, `masked_merge` combinator를 이용해서 resolver 개념을 modular design에 어떻게 활용할 수 있는지 알아볼 것이다. - ## Specification

@@ -97,4 +95,6 @@ pub fn m(ingress: [Vr; 5]) -> Vr { } ``` +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! diff --git a/hazardflow-designs/src/fir_filter.rs b/hazardflow-designs/src/examples/fir_filter.rs similarity index 100% rename from hazardflow-designs/src/fir_filter.rs rename to hazardflow-designs/src/examples/fir_filter.rs diff --git a/hazardflow-designs/src/masked_merge.rs b/hazardflow-designs/src/examples/masked_merge.rs similarity index 100% rename from hazardflow-designs/src/masked_merge.rs rename to hazardflow-designs/src/examples/masked_merge.rs diff --git a/hazardflow-designs/src/examples/mod.rs b/hazardflow-designs/src/examples/mod.rs new file mode 100644 index 0000000..1dd5a16 --- /dev/null +++ b/hazardflow-designs/src/examples/mod.rs @@ -0,0 +1,4 @@ +//! HazardFlow examples. + +pub mod fir_filter; +pub mod masked_merge; diff --git a/hazardflow-designs/src/lib.rs b/hazardflow-designs/src/lib.rs index bea6373..fda65e1 100644 --- a/hazardflow-designs/src/lib.rs +++ b/hazardflow-designs/src/lib.rs @@ -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;