File size: 951 Bytes
e8b8483 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | // Zero-parameter person classifier, 16 dims.
// Generated by rtl_gen.py; do not edit by hand.
//
// sum(pos) > sum(neg), on signed INT8 channels taken from the pooled feature
// vector. No threshold, so no constant appears anywhere in this module.
module person_d16 (
input signed [7:0] f48, f71, f292, f111, f724, f406, f510, f665,
input signed [7:0] f637, f90, f82, f269, f565, f140, f537, f49,
output person_present
);
wire signed [10:0] pos_sum =
{{3{f48[7]}}, f48} + {{3{f71[7]}}, f71} + {{3{f292[7]}}, f292} + {{3{f111[7]}}, f111} +
{{3{f724[7]}}, f724} + {{3{f406[7]}}, f406} + {{3{f510[7]}}, f510} + {{3{f665[7]}}, f665};
wire signed [10:0] neg_sum =
{{3{f637[7]}}, f637} + {{3{f90[7]}}, f90} + {{3{f82[7]}}, f82} + {{3{f269[7]}}, f269} +
{{3{f565[7]}}, f565} + {{3{f140[7]}}, f140} + {{3{f537[7]}}, f537} + {{3{f49[7]}}, f49};
assign person_present = pos_sum > neg_sum;
endmodule
|