code wiki / _hdl_build / nx_multsynth_test.nx
nx_multsynth_test.nx
buildroot/runtime/_hdl_build/nx_multsynth_test.nx
about
nx_multsynth_test.nx -- the team synthesizes a 2x2 MULTIPLIER from gates (Vedic/array
multiplier search space) and verifies each output bit EXACTLY over all 16 inputs.
Known answer: all 4 output bits synthesized + re-verified -> exit 0.
dependencies 1 imports · 0 importers
imports: nx_multsynth.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 7 | func ms_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 8 | func ms_num(v: i64) -> i64 |
| 16 | func tally(r: *i64, n: i64) -> i64 { var ec: i64 = 0; var i: i64 = 0; while i < n { if r[i] != 1 { if ec == 0 { ec = i + 1 } } i = i + 1 } return ec } called by 1: main |
| 18 | func ms_bit(k: i64, r: *i64, total: *i64) -> i64 |
| 29 | func ms_main(r: *i64) -> i64 |
| 41 | func main() -> i64 |