data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/knns_td/taxicab_distance.v
1: b"%Error: data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/knns_td/taxicab_distance.v:3: Unsupported: SystemVerilog 2005 reserved word not implemented: 'dist'\n output [N+1:0] dist\n                ^~~~\n%Error: data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/knns_td/taxicab_distance.v:4: syntax error, unexpected ')', expecting IDENTIFIER or '[' or do or final\n);\n^\n%Error: data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/knns_td/taxicab_distance.v:11: syntax error, unexpected IDENTIFIER\nSUB_1 #(.N(N)) diff_x12 (.A(x1), .B(x2), .D(dist_x12));\n^~~~~\n%Error: data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/knns_td/taxicab_distance.v:24: Unsupported: SystemVerilog 2005 reserved word not implemented: 'dist'\nADD #(.N(N+1))t_d (.A(dist_xabs), .B(dist_yabs), .CI(1'b0), .S(dist[N:0]), .CO(dist[N+1]));\n                                                               ^~~~\n%Error: data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/knns_td/taxicab_distance.v:24: Unsupported: SystemVerilog 2005 reserved word not implemented: 'dist'\nADD #(.N(N+1))t_d (.A(dist_xabs), .B(dist_yabs), .CI(1'b0), .S(dist[N:0]), .CO(dist[N+1]));\n                                                                               ^~~~\n%Error: Exiting due to 5 error(s)\n        ... See the manual and https://verilator.org for more assistance.\n"
module SUB_1 #(parameter N = 32)(
	input [N-1:0] A, B,
	output [N:0] D
);

wire CO;
assign D[N] = ~CO;

ADD
#(
	.N(N)
)
ADD_
(
	.A(A),
	.B(~B),
	.CI(1'b1),
	.S(D[N-1:0]), 
	.CO(CO)
);

endmodule
module SUB_1 #(parameter N = 32)(
	input [N-1:0] A, B,
	output [N:0] D
);


wire CO;
assign D[N] = ~CO;

ADD
#(
	.N(N)
)
ADD_
(
	.A(A),
	.B(~B),
	.CI(1'b1),
	.S(D[N-1:0]), 
	.CO(CO)
);

endmodule