diff --git a/src/libboard_artiq/src/cxp_upconn.rs b/src/libboard_artiq/src/cxp_upconn.rs index decac45..4c5c7f9 100644 --- a/src/libboard_artiq/src/cxp_upconn.rs +++ b/src/libboard_artiq/src/cxp_upconn.rs @@ -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);