Return to Video

Apply a Patch cs348 unit6

  • 0:01 - 0:06
    Imagine you just come back from vacation, you write a few tests. You look at
  • 0:06 - 0:10
    your note file and you see that none of your coverage was hit. Nothing. You look
  • 0:10 - 0:16
    at the samples, nothing was sampled. Kind of strange. So, the next thing you do
  • 0:16 - 0:22
    is debug and you find out that somebody has modified the packet monitor. In
  • 0:22 - 0:27
    particular, the watch_interface method. Alright, everything looks good here
  • 0:27 - 0:33
    similar to what we implemented earlier, but in the [unknown] here, they deleted
  • 0:33 - 0:38
    out the evaluation pky_detected. Now, the person who owns this code is out sick
  • 0:38 - 0:43
    with the flu. You are under pressure to write more tests and to bring up the
  • 0:43 - 0:47
    coverage score. So, now it's time to patch. You can't wait until this person is
  • 0:47 - 0:52
    available again and you don't have permission right now to edit this code. So,
  • 0:52 - 0:57
    you go ahead, you open a new file. And you patch this, monitor in the particular
  • 0:57 - 1:02
    method. So, you want to emit, basically, a packet event, pkt_detected event
  • 1:02 - 1:07
    inside of this monitor. So, you can replace this method right here.
Title:
Apply a Patch cs348 unit6
Video Language:
English
Team:
Udacity
Project:
CS348 - Functional Hardware Verification
Duration:
01:07
Cogi-Admin added a translation

English subtitles

Revisions