Skip to main content

emit_alu_datapath_verilog

Function emit_alu_datapath_verilog 

Source
pub fn emit_alu_datapath_verilog(width: u32) -> String
Expand description

Emit the GENERAL INTEGER ALU datapath — the combinational functional unit that executes the arithmetic / bitwise / signed-comparison ops straight off a WIRE OPCODE BYTE. The case labels are the stable binisa opcodes (one source of truth with the wire format), so the ALU decodes the same bytes the network carries. Each operation is proven correct by our own certified SAT (the identity battery the_general_alu_datapath_is_proven_correct_by_our_sat); comparisons are SIGNED (matching the VM’s i64 semantics) and yield 0/1. This is the ratchet frontier grown from the reversible core.