Skip to content

Commit

Permalink
Add DIRECTION attribute for frame definitions (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Davis authored Dec 10, 2019
1 parent 3386508 commit b2641f4
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions rfcs/analog/spec_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ directive.

```
DefFrame :: DEFFRAME Frame (: FrameSpec+ )?
FrameSpec :: Indent FrameAttr : Expression
FrameAttr :: SAMPLE-RATE | INITIAL-FREQUENCY
FrameSpec :: Indent FrameAttr : ( Expression | String )
FrameAttr :: SAMPLE-RATE | INITIAL-FREQUENCY | DIRECTION
```

All frames used in a program must have a corresponding top-level definition.
Expand All @@ -45,6 +45,15 @@ Examples (names only):
"out" # eg. for the capture line
```


##### Frame Attributes

Frame attributes represent quantities associated with a given frame which need not be specified by the programmer, but which are ultimately required to fully link and execute a Quilt program on a physical device.

- `SAMPLE-RATE` is a floating point number indicating the rate (in Hz) of the digital-to-analog converter on the control hardware associated with this frame.
- `INITIAL-FREQUENCY` is a floating point number indicating the initial frame frequency.
- `DIRECTION` is one of `"tx"` or `"rx"`.

### Waveforms

```
Expand Down

0 comments on commit b2641f4

Please sign in to comment.