NEORV32 API Reference
The NEORV32 RISC-V Processor
Loading...
Searching...
No Matches
neorv32_cfu.h File Reference

CPU Core custom functions unit HW driver header file. More...

#include <stdint.h>

Go to the source code of this file.

Macros

Low-level CFU custom instruction prototypes ("intrinsics").

Note that each instruction provides a uint32_t return value.

#define neorv32_cfu_r_instr(funct7, funct3, rs1, rs2)
 
#define neorv32_cfu_i_instr(funct3, imm12, rs1)
 

Functions

int neorv32_cfu_available (void)
 

Detailed Description

CPU Core custom functions unit HW driver header file.

Macro Definition Documentation

◆ neorv32_cfu_i_instr

#define neorv32_cfu_i_instr ( funct3,
imm12,
rs1 )
Value:
CUSTOM_INSTR_I_TYPE(imm12, rs1, funct3, 0b0101011)

I-type CFU custom instruction (CUSTOM-1 opcode)

◆ neorv32_cfu_r_instr

#define neorv32_cfu_r_instr ( funct7,
funct3,
rs1,
rs2 )
Value:
CUSTOM_INSTR_R_TYPE(funct7, rs2, rs1, funct3, 0b0001011)

R-type CFU custom instruction (CUSTOM-0 opcode)

Function Documentation

◆ neorv32_cfu_available()

int neorv32_cfu_available ( void )

Prototypes

Check if custom functions unit was synthesized.

Returns
0 if CFU was not synthesized, non-zero if CFU is available.