docs: update README with project description and fix bit display order

Fix bit display order in adder demos to show most significant bit first
This commit is contained in:
sanbuphy
2026-03-04 15:13:28 +08:00
parent 87b150a3e7
commit c927f03018
3 changed files with 11 additions and 9 deletions
@@ -456,15 +456,15 @@
<div class="multi-chain">
<div
v-for="(s, i) in multiStages"
:key="i"
v-for="(s, i) in multiStages.slice().reverse()"
:key="3 - i"
class="multi-stage"
:class="{ highlight: multiHover === i }"
@mouseenter="multiHover = i"
:class="{ highlight: multiHover === (3 - i) }"
@mouseenter="multiHover = 3 - i"
@mouseleave="multiHover = null"
>
<span class="multi-stage-bit">{{ i }}</span>
<span class="multi-stage-io">{{ s.a }}+{{ s.b }}<span v-if="i > 0">+{{ s.cin }}</span></span>
<span class="multi-stage-bit">{{ 3 - i }}</span>
<span class="multi-stage-io">{{ s.a }}+{{ s.b }}<span v-if="3 - i > 0">+{{ s.cin }}</span></span>
<span class="multi-stage-out">={{ s.sum }}<span v-if="s.cout">C</span></span>
</div>
</div>