Add breakdown of cmp_wrap() for reference

This commit is contained in:
Donald Sebastian Leung 2020-10-22 11:27:08 +08:00
parent 1766fbeca9
commit 04640794b9
3 changed files with 20 additions and 1 deletions

18
NOTES.md Normal file
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 |

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

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