Add breakdown of cmp_wrap() for reference

pull/1/head
Donald Sebastian Leung 2020-10-22 11:27:08 +08:00
rodič 1766fbeca9
revize 04640794b9
3 změnil soubory, kde provedl 20 přidání a 1 odebrání

18
NOTES.md Normal file
Zobrazit soubor

@ -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 |

Zobrazit soubor

@ -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

Zobrazit soubor

@ -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