extend spn_checker to comapre the results from 2nd XSPN accelerator
This commit is contained in:
		@@ -44,6 +44,7 @@
 | 
			
		||||
#define SPN_CNTL_REG_INPUT_ADDR           0x40
 | 
			
		||||
#define SPN_CNTL_REG_NUM_INPUT_SAMPLES    0x50
 | 
			
		||||
#define SPN_CNTL_REG_START_DATA_TRANS     0x60
 | 
			
		||||
#define SPN_CNTL_REG_OUTPUT_ADDR2         0x70
 | 
			
		||||
 | 
			
		||||
template<uint32_t BASE_ADDR>
 | 
			
		||||
class spn_checker_regs {
 | 
			
		||||
@@ -60,6 +61,8 @@ public:
 | 
			
		||||
 | 
			
		||||
    uint32_t r_output_addr;
 | 
			
		||||
 | 
			
		||||
    uint32_t r_output_addr2;
 | 
			
		||||
 | 
			
		||||
    uint32_t r_input_addr;
 | 
			
		||||
 | 
			
		||||
    uint32_t r_num_input_samples;
 | 
			
		||||
@@ -82,6 +85,10 @@ public:
 | 
			
		||||
        return *reinterpret_cast<uint32_t*>(BASE_ADDR+SPN_CNTL_REG_OUTPUT_ADDR);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    static inline uint32_t & output_addr2_reg(){
 | 
			
		||||
        return *reinterpret_cast<uint32_t*>(BASE_ADDR+SPN_CNTL_REG_OUTPUT_ADDR2);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    static inline uint32_t & input_addr_reg(){
 | 
			
		||||
        return *reinterpret_cast<uint32_t*>(BASE_ADDR+SPN_CNTL_REG_INPUT_ADDR);
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user