FC2カウンター FPGAの部屋 DMA付きテンプレートを使用したMNISTのCNN2(C シミュレーション1)

FPGAやCPLDの話題やFPGA用のツールの話題などです。 マニアックです。 日記も書きます。

FPGAの部屋

FPGAの部屋の有用と思われるコンテンツのまとめサイトを作りました。Xilinx ISEの初心者の方には、FPGAリテラシーおよびチュートリアルのページをお勧めいたします。

DMA付きテンプレートを使用したMNISTのCNN2(C シミュレーション1)

DMA付きテンプレートを使用したMNISTのCNN1(C ソースコード)”の続き。

前回は、DMA 付きテンプレートを使用したMNIST のCNN のC ソースコードを貼った。今回は、その C ソースコードを利用してC シミュレーションをしてみよう。

まずは、数に示したように一番下の 7, 8, 9 をCNN に入力してみよう。
mnist_conv_nn3_ko_dma_2_180624.jpg

DMA付きテンプレートを使用したMNISTのCNN1(C ソースコード)”に書いたように、1回毎に 5 ピクセルずつ 28 x 28 ピクセルに切り取る画像の x 軸を右にずらしていく。もう一度書いておくと、around_count と center_count は、28 x 28 ピクセルのMNIST の手書き文字の周り 3 ピクセル分、(3+3)x28 + (3+3) x 26 = 300 ピクセルと真ん中の 300 ピクセルの 0x80 より大きなピクセルを数えて、その比を求めようと思う。これは、手書き文字がどこにあるのか?をサーチするのに使用したい。とりあえず、どのような結果になるかを検証してみよう。

mnist_conv_nn3_ko_dma プロジェクトのC シミュレーションを行った。
mnist_conv_nn3_ko_dma_3_180624.png

結果を示す。

INFO: [SIM 2] *************** CSIM start ***************
INFO: [SIM 4] CSIM will launch CLANG as the compiler.
   Compiling ../../../mnist_square_dma.cpp in debug mode
   Generating csim.exe

X_POS = 502, Y_POS = 185
                            
                            
          ************      
          ************      
          **       ***      
         ***        **      
        ***        ***      
        **         ***      
        **        ***       
         *        ***       
                  **        
                  **        
                  **        
                  **        
                 ***        
                 ***        
                ***         
                **          
                **          
                **          
                **          
               ***          
              ****          
              ***           
              ***           
                            
                            
                            
around_count = 12, center_count = 42, center/around = 3.500000
result_out = 3
max_id_hw = 3
max_id_sw = 3
result_ap_fixed[0] = -6.687500, result_float[0] = -6.598463
result_ap_fixed[1] = -1.187500, result_float[1] = -0.928407
result_ap_fixed[2] = -2.437500, result_float[2] = -1.751157
result_ap_fixed[3] = -0.031250, result_float[3] = 0.870602
result_ap_fixed[4] = -2.406250, result_float[4] = -2.517686
result_ap_fixed[5] = -6.562500, result_float[5] = -6.144890
result_ap_fixed[6] = -9.875000, result_float[6] = -9.862177
result_ap_fixed[7] = -2.781250, result_float[7] = -2.362119
result_ap_fixed[8] = -3.250000, result_float[8] = -3.122242
result_ap_fixed[9] = -2.343750, result_float[9] = -2.650363

X_POS = 507, Y_POS = 185
                            
                            
     ************           
     ************           
     **       ***           
    ***        **           
   ***        ***           
   **         ***           
   **        ***            
    *        ***            
             **             
             **             
             **             
             **             
            ***             
            ***             
           ***              
           **               
           **               
           **               
           **               
          ***               
         ****               
         ***                
         ***                
                            
                            
                            
around_count = 12, center_count = 40, center/around = 3.333333
result_out = 1
max_id_hw = 1
max_id_sw = 1
result_ap_fixed[0] = -4.093750, result_float[0] = -3.944167
result_ap_fixed[1] = 0.843750, result_float[1] = 1.401140
result_ap_fixed[2] = 0.562500, result_float[2] = 1.179666
result_ap_fixed[3] = 0.125000, result_float[3] = 0.740295
result_ap_fixed[4] = -7.281250, result_float[4] = -8.019794
result_ap_fixed[5] = -8.343750, result_float[5] = -8.311672
result_ap_fixed[6] = -4.906250, result_float[6] = -4.912206
result_ap_fixed[7] = -5.781250, result_float[7] = -5.561728
result_ap_fixed[8] = -0.593750, result_float[8] = -0.508428
result_ap_fixed[9] = -10.031250, result_float[9] = -10.652685

X_POS = 512, Y_POS = 185
                            
                            
************                
************                
**       ***                
**        **                
*        ***                
         ***                
        ***                 
        ***                 
        **                  
        **                  
        **                  
        **                  
       ***                  
       ***                  
      ***                   
      **                    
      **                    
      **                    
      **                    
     ***                    
    ****                    
    ***                     
    ***                     
                            
                            
                            
around_count = 20, center_count = 37, center/around = 1.850000
result_out = 6
max_id_hw = 6
max_id_sw = 6
result_ap_fixed[0] = 1.375000, result_float[0] = 1.538496
result_ap_fixed[1] = -3.125000, result_float[1] = -3.003051
result_ap_fixed[2] = -3.593750, result_float[2] = -3.063903
result_ap_fixed[3] = -7.656250, result_float[3] = -7.790153
result_ap_fixed[4] = -3.968750, result_float[4] = -3.929864
result_ap_fixed[5] = -4.937500, result_float[5] = -5.745523
result_ap_fixed[6] = 1.812500, result_float[6] = 2.254609
result_ap_fixed[7] = -3.093750, result_float[7] = -2.851094
result_ap_fixed[8] = -0.343750, result_float[8] = -0.149853
result_ap_fixed[9] = -2.781250, result_float[9] = -3.073567

X_POS = 517, Y_POS = 185
                            
                            
*******                     
*******                     
    ***                     
     **                     
    ***                     
    ***                     
   ***                      
   ***                      
   **                       
   **                       
   **                       
   **                       
  ***                       
  ***                       
 ***                        
 **                         
 **                         
 **                         
 **                         
***                         
***                         
**                          
**                          
                            
                            
                            
around_count = 32, center_count = 13, center/around = 0.406250
result_out = 6
max_id_hw = 6
max_id_sw = 6
result_ap_fixed[0] = -0.593750, result_float[0] = -0.710496
result_ap_fixed[1] = -1.406250, result_float[1] = -1.237631
result_ap_fixed[2] = -2.312500, result_float[2] = -2.128094
result_ap_fixed[3] = -1.312500, result_float[3] = -0.931199
result_ap_fixed[4] = -0.812500, result_float[4] = -0.698710
result_ap_fixed[5] = -1.937500, result_float[5] = -2.167314
result_ap_fixed[6] = 0.062500, result_float[6] = 0.688496
result_ap_fixed[7] = -1.968750, result_float[7] = -1.845435
result_ap_fixed[8] = -0.750000, result_float[8] = -0.674898
result_ap_fixed[9] = -0.843750, result_float[9] = -1.345316

X_POS = 522, Y_POS = 185
                            
                            
**                          
**                          
**                          
**                          
**                          
**                          
*                           
*                           
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
around_count = 14, center_count = 0, center/around = 0.000000
result_out = 3
max_id_hw = 3
max_id_sw = 3
result_ap_fixed[0] = -1.125000, result_float[0] = -1.619331
result_ap_fixed[1] = -1.875000, result_float[1] = -2.359333
result_ap_fixed[2] = -0.406250, result_float[2] = 0.069491
result_ap_fixed[3] = 0.375000, result_float[3] = 1.420542
result_ap_fixed[4] = -1.687500, result_float[4] = -2.624235
result_ap_fixed[5] = -0.718750, result_float[5] = -0.753983
result_ap_fixed[6] = -2.250000, result_float[6] = -3.265238
result_ap_fixed[7] = -1.687500, result_float[7] = -1.984813
result_ap_fixed[8] = 0.343750, result_float[8] = 0.805721
result_ap_fixed[9] = -0.250000, result_float[9] = -0.241826

X_POS = 527, Y_POS = 185
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
around_count = 0, center_count = 0, 
result_out = 8
max_id_hw = 8
max_id_sw = 3
result_ap_fixed[0] = -0.906250, result_float[0] = -1.296470
result_ap_fixed[1] = -1.468750, result_float[1] = -1.965718
result_ap_fixed[2] = -0.156250, result_float[2] = 0.285129
result_ap_fixed[3] = 0.437500, result_float[3] = 1.279455
result_ap_fixed[4] = -1.687500, result_float[4] = -2.641459
result_ap_fixed[5] = -0.281250, result_float[5] = -0.265089
result_ap_fixed[6] = -1.812500, result_float[6] = -2.805036
result_ap_fixed[7] = -1.812500, result_float[7] = -2.567419
result_ap_fixed[8] = 0.593750, result_float[8] = 0.916473
result_ap_fixed[9] = -0.468750, result_float[9] = -0.466774

X_POS = 532, Y_POS = 185
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
around_count = 0, center_count = 0, 
result_out = 8
max_id_hw = 8
max_id_sw = 3
result_ap_fixed[0] = -0.937500, result_float[0] = -1.329478
result_ap_fixed[1] = -1.437500, result_float[1] = -1.938128
result_ap_fixed[2] = -0.156250, result_float[2] = 0.330411
result_ap_fixed[3] = 0.375000, result_float[3] = 1.262094
result_ap_fixed[4] = -1.593750, result_float[4] = -2.625525
result_ap_fixed[5] = -0.218750, result_float[5] = -0.105831
result_ap_fixed[6] = -1.781250, result_float[6] = -2.788874
result_ap_fixed[7] = -1.625000, result_float[7] = -2.566367
result_ap_fixed[8] = 0.531250, result_float[8] = 0.966137
result_ap_fixed[9] = -0.437500, result_float[9] = -0.442092

X_POS = 537, Y_POS = 185
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
around_count = 0, center_count = 0, 
result_out = 8
max_id_hw = 8
max_id_sw = 3
result_ap_fixed[0] = -0.906250, result_float[0] = -1.390456
result_ap_fixed[1] = -1.281250, result_float[1] = -1.837113
result_ap_fixed[2] = -0.218750, result_float[2] = 0.437072
result_ap_fixed[3] = 0.312500, result_float[3] = 1.242732
result_ap_fixed[4] = -1.500000, result_float[4] = -2.527295
result_ap_fixed[5] = -0.312500, result_float[5] = -0.236968
result_ap_fixed[6] = -1.687500, result_float[6] = -2.775196
result_ap_fixed[7] = -1.593750, result_float[7] = -2.510123
result_ap_fixed[8] = 0.500000, result_float[8] = 0.975650
result_ap_fixed[9] = -0.406250, result_float[9] = -0.408239

X_POS = 542, Y_POS = 185
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                          **
                          **
                        ****
                        *** 
                        **  
                        **  
                        **  
                        *** 
                          **
                          **
                           *
                            
                            
                            
                            
                            
around_count = 19, center_count = 0, center/around = 0.000000
result_out = 2
max_id_hw = 2
max_id_sw = 2
result_ap_fixed[0] = -0.531250, result_float[0] = -0.738625
result_ap_fixed[1] = -0.781250, result_float[1] = -0.758915
result_ap_fixed[2] = 0.437500, result_float[2] = 2.021734
result_ap_fixed[3] = -0.312500, result_float[3] = 0.229120
result_ap_fixed[4] = -2.500000, result_float[4] = -3.328397
result_ap_fixed[5] = -0.468750, result_float[5] = -1.405289
result_ap_fixed[6] = -1.062500, result_float[6] = -1.902044
result_ap_fixed[7] = -2.093750, result_float[7] = -2.454546
result_ap_fixed[8] = -0.781250, result_float[8] = -1.369310
result_ap_fixed[9] = -2.125000, result_float[9] = -3.382636

X_POS = 547, Y_POS = 185
                            
                          **
                        ****
                       **** 
                       **   
                       **   
                       **   
                       **   
                        ****
                         ***
                        ****
                       *****
                     ****   
                     ****   
                   ****     
                   ***      
                   **       
                   **       
                   **       
                   ***      
                     **     
                     ***    
                      ******
                       *****
                            
                            
                            
                            
around_count = 26, center_count = 29, center/around = 1.115385
result_out = 4
max_id_hw = 4
max_id_sw = 4
result_ap_fixed[0] = -1.593750, result_float[0] = -2.247005
result_ap_fixed[1] = -3.812500, result_float[1] = -3.951203
result_ap_fixed[2] = -2.000000, result_float[2] = -1.570028
result_ap_fixed[3] = -5.031250, result_float[3] = -4.849737
result_ap_fixed[4] = 3.718750, result_float[4] = 4.487070
result_ap_fixed[5] = -0.406250, result_float[5] = 0.060456
result_ap_fixed[6] = -1.718750, result_float[6] = -1.914177
result_ap_fixed[7] = -3.406250, result_float[7] = -3.879769
result_ap_fixed[8] = -0.750000, result_float[8] = -0.644624
result_ap_fixed[9] = -0.625000, result_float[9] = -0.510215

X_POS = 552, Y_POS = 185
                            
                     ****** 
                   *********
                  ****    **
                  **      **
                  **      **
                  **    ****
                  **   **** 
                   ******   
                    ****    
                   *****    
                  ******    
                ****   ***  
                ****    **  
              ****      *** 
              ***        ***
              **          **
              **          **
              **           *
              ***         **
                **        **
                ***       **
                 ***********
                  ********  
                            
                            
                            
                            
around_count = 48, center_count = 53, center/around = 1.104167
result_out = 2
max_id_hw = 2
max_id_sw = 2
result_ap_fixed[0] = -16.593750, result_float[0] = -17.208761
result_ap_fixed[1] = 1.531250, result_float[1] = 2.165034
result_ap_fixed[2] = 5.437500, result_float[2] = 6.572360
result_ap_fixed[3] = 0.031250, result_float[3] = 0.297143
result_ap_fixed[4] = -1.937500, result_float[4] = -1.676362
result_ap_fixed[5] = -12.156250, result_float[5] = -12.265809
result_ap_fixed[6] = -5.937500, result_float[6] = -5.896308
result_ap_fixed[7] = -10.000000, result_float[7] = -9.892697
result_ap_fixed[8] = 2.125000, result_float[8] = 2.661707
result_ap_fixed[9] = -5.031250, result_float[9] = -5.242616

X_POS = 557, Y_POS = 185
                            
                ******      
              *********     
             ****    ***    
             **      **     
             **      **     
             **    ****     
             **   ****      
              ******        
               ****         
              *****         
             ******         
           ****   ***       
           ****    **       
         ****      ***      
         ***        ***     
         **          **     
         **          **     
         **           **    
         ***         ***    
           **        **     
           ***       **     
            ***********     
             ********       
                            
                            
                            
                            
around_count = 15, center_count = 80, center/around = 5.333333
result_out = 8
max_id_hw = 8
max_id_sw = 8
result_ap_fixed[0] = -1.687500, result_float[0] = -1.081046
result_ap_fixed[1] = -4.875000, result_float[1] = -4.630392
result_ap_fixed[2] = -3.250000, result_float[2] = -2.767578
result_ap_fixed[3] = -4.218750, result_float[3] = -3.703644
result_ap_fixed[4] = -5.031250, result_float[4] = -4.921146
result_ap_fixed[5] = -1.687500, result_float[5] = -1.303151
result_ap_fixed[6] = 0.937500, result_float[6] = 1.242822
result_ap_fixed[7] = -9.625000, result_float[7] = -9.519215
result_ap_fixed[8] = 4.593750, result_float[8] = 5.101025
result_ap_fixed[9] = -10.000000, result_float[9] = -9.979488

X_POS = 562, Y_POS = 185
                            
           ******           
         *********          
        ****    ***         
        **      **          
        **      **          
        **    ****          
        **   ****           
         ******             
          ****              
         *****              
        ******              
      ****   ***            
      ****    **            
    ****      ***           
    ***        ***          
    **          **          
    **          **          
    **           **         
    ***         ***         
      **        **          
      ***       **          
       ***********          
        ********            
                            
                            
                            
                            
around_count = 15, center_count = 80, center/around = 5.333333
result_out = 5
max_id_hw = 5
max_id_sw = 5
result_ap_fixed[0] = -5.781250, result_float[0] = -5.452863
result_ap_fixed[1] = -5.843750, result_float[1] = -5.953544
result_ap_fixed[2] = -8.468750, result_float[2] = -8.320899
result_ap_fixed[3] = 1.250000, result_float[3] = 1.922730
result_ap_fixed[4] = -9.593750, result_float[4] = -9.907320
result_ap_fixed[5] = 2.531250, result_float[5] = 3.078276
result_ap_fixed[6] = -5.437500, result_float[6] = -5.247157
result_ap_fixed[7] = -14.062500, result_float[7] = -14.017766
result_ap_fixed[8] = -0.843750, result_float[8] = -0.499992
result_ap_fixed[9] = -8.000000, result_float[9] = -7.772581

X_POS = 567, Y_POS = 185
                            
      ******                
    *********               
   ****    ***              
   **      **               
   **      **               
   **    ****               
   **   ****                
    ******                  
     ****                   
    *****                   
   ******                   
 ****   ***                 
 ****    **                 
***      ***                
**        ***               
*          **               
*          **               
*           **              
**         ***              
 **        **               
 ***       **               
  ***********               
   ********                 
                            
                            
                            
                            
around_count = 34, center_count = 51, center/around = 1.500000
result_out = 3
max_id_hw = 3
max_id_sw = 3
result_ap_fixed[0] = -5.812500, result_float[0] = -5.792901
result_ap_fixed[1] = -4.656250, result_float[1] = -4.453804
result_ap_fixed[2] = -7.750000, result_float[2] = -7.388370
result_ap_fixed[3] = -0.406250, result_float[3] = 0.467601
result_ap_fixed[4] = -7.093750, result_float[4] = -7.120575
result_ap_fixed[5] = -1.031250, result_float[5] = -0.734315
result_ap_fixed[6] = -5.156250, result_float[6] = -5.283511
result_ap_fixed[7] = -8.562500, result_float[7] = -8.129398
result_ap_fixed[8] = -3.375000, result_float[8] = -2.987090
result_ap_fixed[9] = -1.250000, result_float[9] = -0.776801

X_POS = 572, Y_POS = 185
                            
 ******                     
********                    
**    ***                   
      **                    
      **                    
    ****                    
   ****                     
*****                       
****                        
****                        
****                        
   ***                      
    **                      
    ***                     
     ***                    
      **                    
      **                    
       **                   
      ***                   
      **                    
      **                    
********                    
******                      
                            
                            
                            
                            
around_count = 34, center_count = 27, center/around = 0.794118
result_out = 2
max_id_hw = 2
max_id_sw = 2
result_ap_fixed[0] = -2.468750, result_float[0] = -2.650382
result_ap_fixed[1] = 0.250000, result_float[1] = 0.538665
result_ap_fixed[2] = 0.375000, result_float[2] = 1.258284
result_ap_fixed[3] = -0.375000, result_float[3] = 0.272008
result_ap_fixed[4] = -2.406250, result_float[4] = -2.322924
result_ap_fixed[5] = -5.187500, result_float[5] = -5.700843
result_ap_fixed[6] = -3.531250, result_float[6] = -3.706063
result_ap_fixed[7] = -0.500000, result_float[7] = 0.025969
result_ap_fixed[8] = -2.031250, result_float[8] = -1.912965
result_ap_fixed[9] = -3.031250, result_float[9] = -3.784628

X_POS = 577, Y_POS = 185
                            
**                          
***                         
 ***                        
 **                         
 **                         
***                         
**                          
                            
                            
                            
                            
*                           
*                           
**                          
***                         
 **                         
 **                         
  **                        
 ***                        
 **                         
 **                         
***                         
*                           
                            
                            
                            
                            
around_count = 38, center_count = 0, center/around = 0.000000
result_out = 2
max_id_hw = 2
max_id_sw = 3
result_ap_fixed[0] = -1.718750, result_float[0] = -2.488659
result_ap_fixed[1] = -1.875000, result_float[1] = -2.093781
result_ap_fixed[2] = 0.812500, result_float[2] = 1.519924
result_ap_fixed[3] = 0.562500, result_float[3] = 1.925102
result_ap_fixed[4] = -2.687500, result_float[4] = -3.053965
result_ap_fixed[5] = -1.375000, result_float[5] = -1.572820
result_ap_fixed[6] = -3.250000, result_float[6] = -3.985408
result_ap_fixed[7] = -1.687500, result_float[7] = -1.889108
result_ap_fixed[8] = 0.312500, result_float[8] = 0.334581
result_ap_fixed[9] = -0.875000, result_float[9] = -1.184953

X_POS = 582, Y_POS = 185
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
around_count = 0, center_count = 0, 
result_out = 8
max_id_hw = 8
max_id_sw = 3
result_ap_fixed[0] = -0.781250, result_float[0] = -1.287772
result_ap_fixed[1] = -1.281250, result_float[1] = -1.798043
result_ap_fixed[2] = -0.156250, result_float[2] = 0.356295
result_ap_fixed[3] = 0.312500, result_float[3] = 1.086336
result_ap_fixed[4] = -1.343750, result_float[4] = -2.392095
result_ap_fixed[5] = -0.281250, result_float[5] = -0.224637
result_ap_fixed[6] = -1.500000, result_float[6] = -2.600045
result_ap_fixed[7] = -1.468750, result_float[7] = -2.357529
result_ap_fixed[8] = 0.468750, result_float[8] = 0.972850
result_ap_fixed[9] = -0.468750, result_float[9] = -0.335838

X_POS = 587, Y_POS = 185
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
around_count = 0, center_count = 0, 
result_out = 8
max_id_hw = 8
max_id_sw = 3
result_ap_fixed[0] = -0.781250, result_float[0] = -1.220394
result_ap_fixed[1] = -1.281250, result_float[1] = -1.839818
result_ap_fixed[2] = -0.187500, result_float[2] = 0.401741
result_ap_fixed[3] = 0.250000, result_float[3] = 1.110537
result_ap_fixed[4] = -1.375000, result_float[4] = -2.384243
result_ap_fixed[5] = -0.281250, result_float[5] = -0.168204
result_ap_fixed[6] = -1.531250, result_float[6] = -2.608488
result_ap_fixed[7] = -1.500000, result_float[7] = -2.379575
result_ap_fixed[8] = 0.468750, result_float[8] = 0.984628
result_ap_fixed[9] = -0.375000, result_float[9] = -0.316269

X_POS = 592, Y_POS = 185
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
around_count = 0, center_count = 0, 
result_out = 8
max_id_hw = 8
max_id_sw = 3
result_ap_fixed[0] = -0.812500, result_float[0] = -1.300202
result_ap_fixed[1] = -1.312500, result_float[1] = -1.806584
result_ap_fixed[2] = -0.218750, result_float[2] = 0.371900
result_ap_fixed[3] = 0.312500, result_float[3] = 1.214317
result_ap_fixed[4] = -1.375000, result_float[4] = -2.446056
result_ap_fixed[5] = -0.218750, result_float[5] = -0.112995
result_ap_fixed[6] = -1.625000, result_float[6] = -2.746831
result_ap_fixed[7] = -1.562500, result_float[7] = -2.425787
result_ap_fixed[8] = 0.468750, result_float[8] = 1.018132
result_ap_fixed[9] = -0.437500, result_float[9] = -0.380261

X_POS = 597, Y_POS = 185
                            
                            
                            
                            
                            
                            
                            
                           *
                           *
                           *
                           *
                           *
                           *
                           *
                           *
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
around_count = 8, center_count = 0, center/around = 0.000000
result_out = 8
max_id_hw = 8
max_id_sw = 8
result_ap_fixed[0] = -0.875000, result_float[0] = -1.595969
result_ap_fixed[1] = -1.031250, result_float[1] = -1.375270
result_ap_fixed[2] = 0.031250, result_float[2] = 0.657372
result_ap_fixed[3] = 0.156250, result_float[3] = 0.948161
result_ap_fixed[4] = -1.750000, result_float[4] = -2.468961
result_ap_fixed[5] = -0.031250, result_float[5] = 0.506728
result_ap_fixed[6] = -1.812500, result_float[6] = -3.221714
result_ap_fixed[7] = -1.687500, result_float[7] = -2.368360
result_ap_fixed[8] = 0.437500, result_float[8] = 1.243422
result_ap_fixed[9] = -0.531250, result_float[9] = -0.634587

X_POS = 602, Y_POS = 185
                            
                            
                            
                            
                        ****
                        ****
                       ***  
                      ***   
                      **    
                      **    
                      **    
                      **    
                      **    
                      **    
                      ******
                       *****
                            
                            
                            
                            
                            
                            
                           *
                          **
                          **
                          **
                          **
                          **
around_count = 24, center_count = 17, center/around = 0.708333
result_out = 4
max_id_hw = 4
max_id_sw = 4
result_ap_fixed[0] = -0.937500, result_float[0] = -1.223027
result_ap_fixed[1] = -2.156250, result_float[1] = -2.179262
result_ap_fixed[2] = -2.187500, result_float[2] = -2.192808
result_ap_fixed[3] = -2.125000, result_float[3] = -2.247617
result_ap_fixed[4] = -0.093750, result_float[4] = -0.292071
result_ap_fixed[5] = -2.125000, result_float[5] = -2.427494
result_ap_fixed[6] = -1.375000, result_float[6] = -2.113518
result_ap_fixed[7] = -1.375000, result_float[7] = -1.207759
result_ap_fixed[8] = -1.500000, result_float[8] = -1.335060
result_ap_fixed[9] = -4.406250, result_float[9] = -5.568094

X_POS = 607, Y_POS = 185
                            
                            
                            
                            
                   *******  
                   ******** 
                  ***     **
                 ***      **
                 **       **
                 **      ***
                 **      ** 
                 **      ** 
                 **    **** 
                 **    **** 
                 ********** 
                  ********* 
                        **  
                        *   
                       **   
                       **   
                       **   
                       **   
                      ***   
                     ***    
                     **     
                     **     
                     **     
                     **     
around_count = 31, center_count = 34, center/around = 1.096774
result_out = 4
max_id_hw = 4
max_id_sw = 4
result_ap_fixed[0] = -4.031250, result_float[0] = -4.133974
result_ap_fixed[1] = -2.625000, result_float[1] = -2.239853
result_ap_fixed[2] = -4.968750, result_float[2] = -4.674777
result_ap_fixed[3] = -1.968750, result_float[3] = -1.642591
result_ap_fixed[4] = 4.281250, result_float[4] = 5.110765
result_ap_fixed[5] = -2.531250, result_float[5] = -2.270406
result_ap_fixed[6] = -3.500000, result_float[6] = -3.630763
result_ap_fixed[7] = -3.843750, result_float[7] = -3.728224
result_ap_fixed[8] = -0.656250, result_float[8] = -0.452520
result_ap_fixed[9] = -2.781250, result_float[9] = -2.926447

X_POS = 612, Y_POS = 185
                            
                            
                            
                            
              *******       
              ********      
             ***     **     
            ***      ***    
            **       ***    
            **      ***     
            **      **      
            **      **      
            **    ****      
            **    ****      
            **********      
             *********      
                   **       
                   *        
                  **        
                  **        
                  **        
                  **        
                 ***        
                ***         
                **          
                **          
                **          
                **          
around_count = 6, center_count = 66, center/around = 11.000000
result_out = 8
max_id_hw = 8
max_id_sw = 8
result_ap_fixed[0] = -12.968750, result_float[0] = -13.174346
result_ap_fixed[1] = -6.468750, result_float[1] = -6.281274
result_ap_fixed[2] = -6.843750, result_float[2] = -6.845981
result_ap_fixed[3] = 2.218750, result_float[3] = 2.776402
result_ap_fixed[4] = -2.718750, result_float[4] = -2.315293
result_ap_fixed[5] = -6.250000, result_float[5] = -6.071845
result_ap_fixed[6] = -10.843750, result_float[6] = -11.015667
result_ap_fixed[7] = -7.000000, result_float[7] = -6.841413
result_ap_fixed[8] = 3.750000, result_float[8] = 4.229207
result_ap_fixed[9] = -0.437500, result_float[9] = -0.011891

X_POS = 617, Y_POS = 185
                            
                            
                            
                            
         *******            
         ********           
        ***     **          
       ***      ***         
       **       ***         
       **      ***          
       **      **           
       **      **           
       **    ****           
       **    ****           
       **********           
        *********           
              **            
              *             
             **             
             **             
             **             
             **             
            ***             
           ***              
           **               
           **               
           **               
           **               
around_count = 6, center_count = 66, center/around = 11.000000
result_out = 8
max_id_hw = 8
max_id_sw = 8
result_ap_fixed[0] = -9.687500, result_float[0] = -9.947154
result_ap_fixed[1] = -9.187500, result_float[1] = -9.279012
result_ap_fixed[2] = -7.531250, result_float[2] = -7.597316
result_ap_fixed[3] = 1.875000, result_float[3] = 2.737737
result_ap_fixed[4] = -4.656250, result_float[4] = -4.532206
result_ap_fixed[5] = -3.656250, result_float[5] = -3.266784
result_ap_fixed[6] = -12.343750, result_float[6] = -12.734062
result_ap_fixed[7] = -3.125000, result_float[7] = -2.826399
result_ap_fixed[8] = 4.875000, result_float[8] = 5.315073
result_ap_fixed[9] = 2.281250, result_float[9] = 2.924442

X_POS = 622, Y_POS = 185
                            
                            
                            
                            
    *******                 
    ********                
   ***     **               
  ***      ***              
  **       ***              
  **      ***               
  **      **                
  **      **                
  **    ****                
  **    ****                
  **********                
   *********                
         **                 
         *                  
        **                  
        **                  
        **                  
        **                  
       ***                  
      ***                   
      **                    
      **                    
      **                    
      **                    
around_count = 14, center_count = 49, center/around = 3.500000
result_out = 7
max_id_hw = 7
max_id_sw = 7
result_ap_fixed[0] = -2.625000, result_float[0] = -2.513616
result_ap_fixed[1] = -1.531250, result_float[1] = -1.173316
result_ap_fixed[2] = -0.718750, result_float[2] = 0.351554
result_ap_fixed[3] = -1.343750, result_float[3] = -1.153538
result_ap_fixed[4] = 0.281250, result_float[4] = 0.777785
result_ap_fixed[5] = -10.000000, result_float[5] = -10.576931
result_ap_fixed[6] = -6.250000, result_float[6] = -6.237439
result_ap_fixed[7] = 0.687500, result_float[7] = 1.322895
result_ap_fixed[8] = -5.281250, result_float[8] = -4.995121
result_ap_fixed[9] = -5.562500, result_float[9] = -5.764553

X_POS = 627, Y_POS = 185
                            
                            
                            
                            
******                      
*******                     
*     **                    
      ***                   
      ***                   
     ***                    
     **                     
     **                     
   ****                     
   ****                     
*******                     
*******                     
    **                      
    *                       
   **                       
   **                       
   **                       
   **                       
  ***                       
 ***                        
 **                         
 **                         
 **                         
 **                         
around_count = 24, center_count = 32, center/around = 1.333333
result_out = 0
max_id_hw = 0
max_id_sw = 0
result_ap_fixed[0] = 0.687500, result_float[0] = 0.791694
result_ap_fixed[1] = -2.156250, result_float[1] = -2.344940
result_ap_fixed[2] = -4.187500, result_float[2] = -4.291689
result_ap_fixed[3] = -4.375000, result_float[3] = -4.177928
result_ap_fixed[4] = -0.062500, result_float[4] = -0.151814
result_ap_fixed[5] = -2.593750, result_float[5] = -3.096778
result_ap_fixed[6] = 0.031250, result_float[6] = 0.079751
result_ap_fixed[7] = -2.468750, result_float[7] = -2.334525
result_ap_fixed[8] = -1.500000, result_float[8] = -1.337001
result_ap_fixed[9] = -0.312500, result_float[9] = -0.457717

X_POS = 632, Y_POS = 185
                            
                            
                            
                            
*                           
**                          
 **                         
 ***                        
 ***                        
***                         
**                          
**                          
**                          
**                          
**                          
**                          
*                           
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
around_count = 25, center_count = 0, center/around = 0.000000
result_out = 3
max_id_hw = 3
max_id_sw = 3
result_ap_fixed[0] = -0.562500, result_float[0] = -1.318965
result_ap_fixed[1] = -2.125000, result_float[1] = -2.567228
result_ap_fixed[2] = -0.843750, result_float[2] = -0.476693
result_ap_fixed[3] = 0.156250, result_float[3] = 1.306376
result_ap_fixed[4] = -1.281250, result_float[4] = -1.726599
result_ap_fixed[5] = -0.906250, result_float[5] = -1.148492
result_ap_fixed[6] = -2.125000, result_float[6] = -2.973163
result_ap_fixed[7] = -0.718750, result_float[7] = -0.478881
result_ap_fixed[8] = -0.093750, result_float[8] = 0.278913
result_ap_fixed[9] = -0.187500, result_float[9] = -0.585260

X_POS = 637, Y_POS = 185
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
around_count = 0, center_count = 0, 
result_out = 8
max_id_hw = 8
max_id_sw = 3
result_ap_fixed[0] = -0.750000, result_float[0] = -1.350178
result_ap_fixed[1] = -1.125000, result_float[1] = -1.817338
result_ap_fixed[2] = -0.125000, result_float[2] = 0.408225
result_ap_fixed[3] = 0.312500, result_float[3] = 1.204863
result_ap_fixed[4] = -1.312500, result_float[4] = -2.470115
result_ap_fixed[5] = -0.093750, result_float[5] = -0.141706
result_ap_fixed[6] = -1.343750, result_float[6] = -2.660645
result_ap_fixed[7] = -1.250000, result_float[7] = -2.317636
result_ap_fixed[8] = 0.468750, result_float[8] = 0.968406
result_ap_fixed[9] = -0.437500, result_float[9] = -0.434542

X_POS = 642, Y_POS = 185
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
around_count = 0, center_count = 0, 
result_out = 8
max_id_hw = 8
max_id_sw = 3
result_ap_fixed[0] = -0.687500, result_float[0] = -1.279108
result_ap_fixed[1] = -1.093750, result_float[1] = -1.801685
result_ap_fixed[2] = -0.156250, result_float[2] = 0.382397
result_ap_fixed[3] = 0.312500, result_float[3] = 1.128036
result_ap_fixed[4] = -1.250000, result_float[4] = -2.419693
result_ap_fixed[5] = -0.062500, result_float[5] = -0.134422
result_ap_fixed[6] = -1.312500, result_float[6] = -2.609115
result_ap_fixed[7] = -1.343750, result_float[7] = -2.328017
result_ap_fixed[8] = 0.437500, result_float[8] = 0.966102
result_ap_fixed[9] = -0.406250, result_float[9] = -0.377428

X_POS = 647, Y_POS = 185
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
around_count = 0, center_count = 0, 
result_out = 8
max_id_hw = 8
max_id_sw = 3
result_ap_fixed[0] = -0.718750, result_float[0] = -1.336163
result_ap_fixed[1] = -1.093750, result_float[1] = -1.808135
result_ap_fixed[2] = -0.250000, result_float[2] = 0.418296
result_ap_fixed[3] = 0.343750, result_float[3] = 1.161598
result_ap_fixed[4] = -1.343750, result_float[4] = -2.456500
result_ap_fixed[5] = -0.125000, result_float[5] = -0.176320
result_ap_fixed[6] = -1.312500, result_float[6] = -2.647960
result_ap_fixed[7] = -1.281250, result_float[7] = -2.320159
result_ap_fixed[8] = 0.437500, result_float[8] = 0.986491
result_ap_fixed[9] = -0.437500, result_float[9] = -0.386770
INFO: [SIM 1] CSim done with 0 errors.
INFO: [SIM 3] *************** CSIM finish ***************


center/around の値で手書き数字のセンタリングをしても良いのかな?とおもう。もう少しデータを収集したい。
なお、7 は認識できなかった。8, 9 は認識できた。
  1. 2018年06月24日 07:59 |
  2. DNN
  3. | トラックバック:0
  4. | コメント:0

コメント

コメントの投稿


管理者にだけ表示を許可する

トラックバック URL
http://marsee101.blog19.fc2.com/tb.php/4207-f8d83f56
この記事にトラックバックする(FC2ブログユーザー)