EDAN15
Lab 2: Dataflow - Build an FIR filter
Skip to content
Dashboard
  • Login
  • Dashboard
  • Calendar
  • Inbox
  • History
  • Help
Close
  • My dashboard
  • EDAN15
  • Assignments
  • Lab 2: Dataflow - Build an FIR filter
2022 VT/Spring
  • Home
  • Assignments
  • Pages
  • Files
  • Syllabus
  • Quizzes
  • Modules
  • Collaborations
  • Office 365
  • Google Drive

Lab 2: Dataflow - Build an FIR filter

  • Due 3 May 2022 by 15:00
  • Points 1


In this assignment, you are supposed to construct a small finite impulse response (FIR) filter. Start by reading about them here Links to an external site..

In the picture, you see three different components:

  1. z-1 corresponds to Ptolemy's SampleDelay actor (Actors/FlowControl/SequenceControl,
  2. the triangles are multipliers that multiply their input by a constant factor (you will have to simulate this using Ptolemy's Const (Actors/Sources/GenericSources) and MultiplyDivide (Actors/Math), and
  3. the Sum-Signs represent AddSubtract (Actors/Math).

Your FIR filter will be of order 5, which means it has 6 coefficients ("taps"), which are in this order -0.2, 0.3, 0.4, 0.4, 0.3, -0.2. Construct it using only SampleDelay, Const, MultiplyDivide, and AddSubtract.

Download this model skeleton. Download Download this model skeleton.

Screenshot_20210421_164938.png  

The top level model is a small test harness that generates a sinusoid signal, adds a bit of noise to it, and feeds the result into a composite actor --- that's the one you are supposed to create your FIR filter in --- and a reference FIR filter from the Ptolemy library. Two plotters allow you to look at the results. The plotter at the bottom acts as a check whether your implementation is correct: it shows the difference between the output from your FIR filter and Ptolemy's implementation. If your version is correct, it should display a flat line.

 

1651582800 05/03/2022 03:00pm
Please include a description
Additional comments:
Rating max score to > Pts
Please include a rating title

Rubric

Find rubric
Please include a title
Find a rubric
Title
You've already rated students with this rubric. Any major changes could affect their assessment results.
 
 
 
 
 
 
 
     
Can't change a rubric once you've started using it.  
Title
Criteria Ratings Pts
This criterion is linked to a learning outcome Description of criterion
threshold: 5 pts
Edit criterion description Delete criterion row
5 to >0 Pts Full marks blank
0 to >0 Pts No marks blank_2
This area will be used by the assessor to leave comments related to this criterion.
pts
  / 5 pts
--
Additional comments
This criterion is linked to a learning outcome Description of criterion
threshold: 5 pts
Edit criterion description Delete criterion row
5 to >0 Pts Full marks blank
0 to >0 Pts No marks blank_2
This area will be used by the assessor to leave comments related to this criterion.
pts
  / 5 pts
--
Additional comments
Total points: 5 out of 5
Previous
Next
Lab 1: FSMs Q&A