Wrench Report
[github] [isa_docs] [variants] [examples] [scratch]

/* variant: example factorial.s + factorial.yaml */

/* author: wrench */

/* wrench: 0.0.6.4 */

/* comment */

Reads n = 4 from the input port 0x80, computes n! in a loop and writes 24 to the output port 0x84. Multiplication is done with +* steps, as f32a has no multiply instruction.

Source: example/f32a/factorial.s
Config: example/f32a/factorial.yaml
ISA:    f32a
/* assembler_code */

/* simulation_config */

/* simulation_result */

$ wrench --version
0.0.6.4
/usr/local/bin/wrench --isa f32a /app/example/f32a/factorial.s -c /app/example/f32a/factorial.yaml --stats
ExitCode 0

/* testcase_result */