Add breakdown of cmp_wrap() for reference
This commit is contained in:
parent
1766fbeca9
commit
04640794b9
|
@ -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 |
|
|
@ -8,7 +8,6 @@ Formally verified implementation of the ARTIQ RTIO core in nMigen
|
||||||
- `README.md`: this document
|
- `README.md`: this document
|
||||||
- `shell.nix`: Nix file for setting up the environment for this project
|
- `shell.nix`: Nix file for setting up the environment for this project
|
||||||
- `rtio`: RTIO core in nMigen
|
- `rtio`: RTIO core in nMigen
|
||||||
- `traces`: History of traces for debugging
|
|
||||||
|
|
||||||
## Progress
|
## Progress
|
||||||
|
|
||||||
|
|
|
@ -164,6 +164,7 @@ class OutputNetwork(Elaboratable):
|
||||||
with m.If(match):
|
with m.If(match):
|
||||||
m.d.comb += appeared.eq(1)
|
m.d.comb += appeared.eq(1)
|
||||||
m.d.comb += Assert(appeared)
|
m.d.comb += Assert(appeared)
|
||||||
|
# Otherwise, TODO
|
||||||
|
|
||||||
with m.If(f_output_valid):
|
with m.If(f_output_valid):
|
||||||
nodes_unique = Signal(reset=1)
|
nodes_unique = Signal(reset=1)
|
||||||
|
@ -181,6 +182,7 @@ class OutputNetwork(Elaboratable):
|
||||||
# are unique then there should be no replacements
|
# are unique then there should be no replacements
|
||||||
with m.If(nodes_unique):
|
with m.If(nodes_unique):
|
||||||
m.d.comb += Assert(~replacement_occurred)
|
m.d.comb += Assert(~replacement_occurred)
|
||||||
|
# Otherwise, TODO
|
||||||
|
|
||||||
def elaborate(self, platform):
|
def elaborate(self, platform):
|
||||||
return self.m
|
return self.m
|
||||||
|
|
Loading…
Reference in New Issue