forked from M-Labs/artiq-zynq
cxp upconn fw: test out crc32inserter pipeline
This commit is contained in:
parent
4458c28736
commit
fffceefe7c
|
@ -5,15 +5,17 @@ use crate::pl::csr;
|
|||
|
||||
pub fn pipeline_test(timer: &mut GlobalTimer) {
|
||||
let arr = [
|
||||
0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08
|
||||
// 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, // CXP CRC-32
|
||||
// 0x56, 0x86, 0x5D, 0x6f,
|
||||
// 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08
|
||||
0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, // CXP CRC-32
|
||||
// 0x56, 0x86, 0x5D, 0x6f,
|
||||
];
|
||||
|
||||
const LEN: usize = 12;
|
||||
const LEN: usize = 20;
|
||||
let mut pak_arr: [u8; LEN] = [0; LEN];
|
||||
|
||||
unsafe {
|
||||
csr::cxp::txcore_din_len_write(arr.len() as u8);
|
||||
|
||||
for a in arr.iter() {
|
||||
while csr::cxp::txcore_din_ready_read() == 0 {}
|
||||
// println!("{:#04X}", *a);
|
||||
|
|
Loading…
Reference in New Issue