Kestrel Interface
Loading...
Searching...
No Matches
kest_block.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  kest_block_operand
struct  kest_block_reg_val
struct  kest_block

Macros

#define BLOCK_INSTR_NOP   0
#define BLOCK_INSTR_MADD   1
#define BLOCK_INSTR_ARSH   2
#define BLOCK_INSTR_LSH   3
#define BLOCK_INSTR_RSH   4
#define BLOCK_INSTR_ABS   5
#define BLOCK_INSTR_MIN   6
#define BLOCK_INSTR_MAX   7
#define BLOCK_INSTR_CLAMP   8
#define BLOCK_INSTR_MOV_ACC   9
#define BLOCK_INSTR_MOV_LACC   10
#define BLOCK_INSTR_MOV_UACC   11
#define BLOCK_INSTR_MACZ   12
#define BLOCK_INSTR_UMACZ   13
#define BLOCK_INSTR_MAC   14
#define BLOCK_INSTR_UMAC   15
#define BLOCK_INSTR_LUT_READ   16
#define BLOCK_INSTR_DELAY_READ   17
#define BLOCK_INSTR_DELAY_WRITE   18
#define BLOCK_INSTR_MEM_READ   19
#define BLOCK_INSTR_MEM_WRITE   20
#define BLOCK_INSTR_FILTER   21
#define BLOCK_OPERAND_TYPE_C   0
#define BLOCK_OPERAND_TYPE_R   1
#define ZERO_REGISTER_ADDR   2
#define POS_ONE_REGISTER_ADDR   3
#define NEG_ONE_REGISTER_ADDR   4

Functions

kest_block_operand operand_const_zero ()
kest_block_operand operand_const_one ()
kest_block_operand operand_const_minus_one ()
int kest_init_block (kest_block *block)
 DECLARE_LINKED_PTR_LIST (kest_block)

Macro Definition Documentation

◆ BLOCK_INSTR_ABS

#define BLOCK_INSTR_ABS   5

◆ BLOCK_INSTR_ARSH

#define BLOCK_INSTR_ARSH   2

◆ BLOCK_INSTR_CLAMP

#define BLOCK_INSTR_CLAMP   8

◆ BLOCK_INSTR_DELAY_READ

#define BLOCK_INSTR_DELAY_READ   17

◆ BLOCK_INSTR_DELAY_WRITE

#define BLOCK_INSTR_DELAY_WRITE   18

◆ BLOCK_INSTR_FILTER

#define BLOCK_INSTR_FILTER   21

◆ BLOCK_INSTR_LSH

#define BLOCK_INSTR_LSH   3

◆ BLOCK_INSTR_LUT_READ

#define BLOCK_INSTR_LUT_READ   16

◆ BLOCK_INSTR_MAC

#define BLOCK_INSTR_MAC   14

◆ BLOCK_INSTR_MACZ

#define BLOCK_INSTR_MACZ   12

◆ BLOCK_INSTR_MADD

#define BLOCK_INSTR_MADD   1

◆ BLOCK_INSTR_MAX

#define BLOCK_INSTR_MAX   7

◆ BLOCK_INSTR_MEM_READ

#define BLOCK_INSTR_MEM_READ   19

◆ BLOCK_INSTR_MEM_WRITE

#define BLOCK_INSTR_MEM_WRITE   20

◆ BLOCK_INSTR_MIN

#define BLOCK_INSTR_MIN   6

◆ BLOCK_INSTR_MOV_ACC

#define BLOCK_INSTR_MOV_ACC   9

◆ BLOCK_INSTR_MOV_LACC

#define BLOCK_INSTR_MOV_LACC   10

Definition at line 14 of file kest_block.h.

Referenced by kest_block_opcode_to_string(), and kest_parse_asm_line().

◆ BLOCK_INSTR_MOV_UACC

#define BLOCK_INSTR_MOV_UACC   11

Definition at line 15 of file kest_block.h.

Referenced by kest_block_opcode_to_string(), and kest_parse_asm_line().

◆ BLOCK_INSTR_NOP

#define BLOCK_INSTR_NOP   0

◆ BLOCK_INSTR_RSH

#define BLOCK_INSTR_RSH   4

◆ BLOCK_INSTR_UMAC

#define BLOCK_INSTR_UMAC   15

Definition at line 19 of file kest_block.h.

Referenced by kest_instr_opcode(), and kest_parse_asm_line().

◆ BLOCK_INSTR_UMACZ

#define BLOCK_INSTR_UMACZ   13

Definition at line 17 of file kest_block.h.

Referenced by kest_instr_opcode(), and kest_parse_asm_line().

◆ BLOCK_OPERAND_TYPE_C

#define BLOCK_OPERAND_TYPE_C   0

Definition at line 29 of file kest_block.h.

Referenced by kest_init_block(), kest_parse_asm_line(), and kest_process_asm_line().

◆ BLOCK_OPERAND_TYPE_R

#define BLOCK_OPERAND_TYPE_R   1

◆ NEG_ONE_REGISTER_ADDR

#define NEG_ONE_REGISTER_ADDR   4

Definition at line 39 of file kest_block.h.

Referenced by operand_const_minus_one().

◆ POS_ONE_REGISTER_ADDR

#define POS_ONE_REGISTER_ADDR   3

Definition at line 38 of file kest_block.h.

Referenced by operand_const_one().

◆ ZERO_REGISTER_ADDR

#define ZERO_REGISTER_ADDR   2

Definition at line 37 of file kest_block.h.

Referenced by kest_parse_asm_line(), and operand_const_zero().

Function Documentation

◆ DECLARE_LINKED_PTR_LIST()

DECLARE_LINKED_PTR_LIST ( kest_block )

◆ kest_init_block()

int kest_init_block ( kest_block * block)

Definition at line 37 of file kest_block.c.

◆ operand_const_minus_one()

kest_block_operand operand_const_minus_one ( )

Definition at line 29 of file kest_block.c.

Referenced by kest_parse_asm_line(), and kest_process_asm_line().

Here is the caller graph for this function:

◆ operand_const_one()

kest_block_operand operand_const_one ( )

Definition at line 21 of file kest_block.c.

Referenced by kest_parse_asm_line(), and kest_process_asm_line().

Here is the caller graph for this function:

◆ operand_const_zero()

kest_block_operand operand_const_zero ( )

Definition at line 13 of file kest_block.c.

Referenced by kest_parse_asm_line(), and kest_process_asm_line().

Here is the caller graph for this function: