Skip to content

Commit

Permalink
Rolled back the read data mask macros
Browse files Browse the repository at this point in the history
  • Loading branch information
yunekorea committed Jul 27, 2023
1 parent e68e29d commit 77d8c84
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions include/chip2chip_core.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef CHIP2CHIPBASE_H
#define CHIP2CHIPBASE_H
#ifndef CHIP2CHIPCORE_H
#define CHIP2CHIPCORE_H

#include <stdio.h>
//#include "xil_printf.h"
Expand Down Expand Up @@ -103,6 +103,7 @@
/* read */
#define READQ_READY_MASK 0x8080808080808080
#define READQ_TAG_MASK 0x7f7f7f7f7f7f7f7f
/*
#define READ_DATA0_READY_VALUE (0x80 << (8*0))
#define READ_DATA1_READY_VALUE (0x80 << (8*1))
#define READ_DATA2_READY_VALUE (0x80 << (8*2))
Expand All @@ -119,6 +120,25 @@
#define READ_DATA5_TAG_MASK (0x7f << (8*5))
#define READ_DATA6_TAG_MASK (0x7f << (8*6))
#define READ_DATA7_TAG_MASK (0x7f << (8*7))
*/
#define READ_DATA0_READY_VALUE 0x0000000000000080
#define READ_DATA1_READY_VALUE 0x0000000000008000
#define READ_DATA2_READY_VALUE 0x0000000000800000
#define READ_DATA3_READY_VALUE 0x0000000080000000
#define READ_DATA4_READY_VALUE 0x0000008000000000
#define READ_DATA5_READY_VALUE 0x0000800000000000
#define READ_DATA6_READY_VALUE 0x0080000000000000
#define READ_DATA7_READY_VALUE 0x8000000000000000

#define READ_DATA0_TAG_MASK 0x000000000000007f
#define READ_DATA1_TAG_MASK 0x0000000000007f00
#define READ_DATA2_TAG_MASK 0x00000000007f0000
#define READ_DATA3_TAG_MASK 0x000000007f000000
#define READ_DATA4_TAG_MASK 0x0000007f00000000
#define READ_DATA5_TAG_MASK 0x00007f0000000000
#define READ_DATA7_TAG_MASK 0x007f000000000000
#define READ_DATA6_TAG_MASK 0x7f00000000000000

#define READ_DATA0_TAG_BIT 0
#define READ_DATA1_TAG_BIT 8
#define READ_DATA2_TAG_BIT 16
Expand Down

0 comments on commit 77d8c84

Please sign in to comment.