Bugs addsubz
From HDLBits
The following adder-subtractor with zero flag doesn't work. Fix the bug(s).
Module Declaration
// synthesis verilog_input_version verilog_2001 module top_module ( input do_sub, input [7:0] a, input [7:0] b, output reg [7:0] out, output reg result_is_zero );