File size: 678 Bytes
e8b8483
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Zero-parameter person classifier, 8 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_d8 (
    input  signed [7:0] f48, f71, f292, f111, f637, f90, f82, f269,
    output person_present
);
    wire signed [9:0] pos_sum =
        {{2{f48[7]}}, f48} + {{2{f71[7]}}, f71} + {{2{f292[7]}}, f292} + {{2{f111[7]}}, f111};

    wire signed [9:0] neg_sum =
        {{2{f637[7]}}, f637} + {{2{f90[7]}}, f90} + {{2{f82[7]}}, f82} + {{2{f269[7]}}, f269};

    assign person_present = pos_sum > neg_sum;
endmodule