Browse Source

Add breakdown of cmp_wrap() for reference

pull/1/head
parent
commit
04640794b9
3 changed files with 20 additions and 1 deletions
  1. +18
    -0
      NOTES.md
  2. +0
    -1
      README.md
  3. +2
    -0
      rtio/sed/output_network.py

+ 18
- 0
NOTES.md View File

@@ -0,0 +1,18 @@
| a | b | cmp_wrap(a, b) |
| --- | --- | --- |
| 00 | 00 | 0 |
| 00 | 01 | 1 |
| 00 | 10 | 1 |
| 00 | 11 | 0 |
| 01 | 00 | 0 |
| 01 | 01 | 0 |
| 01 | 10 | 1 |
| 01 | 11 | 1 |
| 10 | 00 | 0 |
| 10 | 01 | 0 |
| 10 | 10 | 0 |
| 10 | 11 | 1 |
| 11 | 00 | 1 |
| 11 | 01 | 0 |
| 11 | 10 | 0 |
| 11 | 11 | 0 |

+ 0
- 1
README.md View File

@@ -8,7 +8,6 @@ Formally verified implementation of the ARTIQ RTIO core in nMigen
- `README.md`: this document
- `shell.nix`: Nix file for setting up the environment for this project
- `rtio`: RTIO core in nMigen
- `traces`: History of traces for debugging

## Progress



+ 2
- 0
rtio/sed/output_network.py View File

@@ -164,6 +164,7 @@ class OutputNetwork(Elaboratable):
with m.If(match):
m.d.comb += appeared.eq(1)
m.d.comb += Assert(appeared)
# Otherwise, TODO

with m.If(f_output_valid):
nodes_unique = Signal(reset=1)
@@ -181,6 +182,7 @@ class OutputNetwork(Elaboratable):
# are unique then there should be no replacements
with m.If(nodes_unique):
m.d.comb += Assert(~replacement_occurred)
# Otherwise, TODO

def elaborate(self, platform):
return self.m

Loading…
Cancel
Save