driver test kernel

This commit is contained in:
Blaise Tine
2020-03-16 17:49:24 -04:00
parent 8b4397f0ec
commit 55e2cb4a76
6 changed files with 117 additions and 5 deletions

View File

@@ -52,6 +52,18 @@ static int upload_program(vx_device_h device, const char* filename, uint32_t tra
// get buffer address
auto buf_ptr = (uint8_t*)vs_buf_ptr(buffer);
//
// copy initialization routine
//
((uint32_t*)buf_ptr)[0] = 0xf1401073;
((uint32_t*)buf_ptr)[1] = 0xf1401073;
((uint32_t*)buf_ptr)[2] = 0x30101073;
((uint32_t*)buf_ptr)[3] = 0x800000b7;
((uint32_t*)buf_ptr)[4] = 0x000080e7;
vx_copy_to_fpga(buffer, 0, 5 * 4, 0);
//
// copy hex program

View File

@@ -1,5 +1,3 @@
#include <iostream>
#include "utils.h"