File size: 1,107 Bytes
e8b8483
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Zero-parameter person classifier, 20 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_d20 (
    input  signed [7:0] f48, f71, f292, f111, f724, f406, f510, f665,
    input  signed [7:0] f318, f267, f637, f90, f82, f269, f565, f140,
    input  signed [7:0] f537, f49, f283, f114,
    output person_present
);
    wire signed [11:0] pos_sum =
        {{4{f48[7]}}, f48} + {{4{f71[7]}}, f71} + {{4{f292[7]}}, f292} + {{4{f111[7]}}, f111} +
        {{4{f724[7]}}, f724} + {{4{f406[7]}}, f406} + {{4{f510[7]}}, f510} + {{4{f665[7]}}, f665} +
        {{4{f318[7]}}, f318} + {{4{f267[7]}}, f267};

    wire signed [11:0] neg_sum =
        {{4{f637[7]}}, f637} + {{4{f90[7]}}, f90} + {{4{f82[7]}}, f82} + {{4{f269[7]}}, f269} +
        {{4{f565[7]}}, f565} + {{4{f140[7]}}, f140} + {{4{f537[7]}}, f537} + {{4{f49[7]}}, f49} +
        {{4{f283[7]}}, f283} + {{4{f114[7]}}, f114};

    assign person_present = pos_sum > neg_sum;
endmodule