How to write myhdl code to implement Unary XOR in verilog
reg [63:0] large_bus;
wire xor_value;
assign xor_value = ^large_bus;
doesn't work for me.
@block
def dataVecXor(large_bus, xor_value):
@always_comb
def outputlogic():
xor_value.next = ^large_bus
return instances()
You can construct what you want by using 'for'.