Skip to content

Commit c7af3b5

Browse files
shuoniu-intelpcolberg
authored andcommitted
Rename CSR bit macros to match the terminology in the compiler KernelCRA
1 parent 55140e6 commit c7af3b5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/acl_kernel_if.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ acl_process_autorun_profiler_scan_chain(unsigned int physical_device_id,
9292
#define KERNEL_CSR_LMEM_INVALID_BANK 11
9393
#define KERNEL_CSR_LSU_ACTIVE 12
9494
#define KERNEL_CSR_WR_ACTIVE 13
95-
#define KERNEL_CSR_VALID_IN 14
96-
#define KERNEL_CSR_STARTED 15
95+
#define KERNEL_CSR_BUSY 14
96+
#define KERNEL_CSR_RUNNING 15
9797
#define KERNEL_CSR_FIRST_VERSION_BIT 16
9898
#define KERNEL_CSR_LAST_VERSION_BIT 31
9999

@@ -1573,7 +1573,7 @@ void acl_kernel_if_dump_status(acl_kernel_if *kern) {
15731573
acl_kernel_cra_read(kern, k, KERNEL_OFFSET_CSR, &csr);
15741574

15751575
kern->io.printf(" Kernel %2u Status: 0x%08x", k, csr);
1576-
if (ACL_KERNEL_READ_BIT(csr, KERNEL_CSR_STARTED) &&
1576+
if (ACL_KERNEL_READ_BIT(csr, KERNEL_CSR_RUNNING) &&
15771577
!ACL_KERNEL_READ_BIT(csr, KERNEL_CSR_STALLED))
15781578
kern->io.printf(" running");
15791579
else if (ACL_KERNEL_READ_BIT(csr, KERNEL_CSR_STALLED))
@@ -1582,8 +1582,8 @@ void acl_kernel_if_dump_status(acl_kernel_if *kern) {
15821582
kern->io.printf(" idle");
15831583
if (ACL_KERNEL_READ_BIT(csr, KERNEL_CSR_DONE))
15841584
kern->io.printf(" finish-pending");
1585-
if (ACL_KERNEL_READ_BIT(csr, KERNEL_CSR_VALID_IN))
1586-
kern->io.printf(" valid_in");
1585+
if (ACL_KERNEL_READ_BIT(csr, KERNEL_CSR_BUSY))
1586+
kern->io.printf(" busy");
15871587
if (ACL_KERNEL_READ_BIT(csr, KERNEL_CSR_LSU_ACTIVE))
15881588
kern->io.printf(" lsu_active");
15891589
if (ACL_KERNEL_READ_BIT(csr, KERNEL_CSR_WR_ACTIVE))

0 commit comments

Comments
 (0)