OpenCores
URL https://opencores.org/ocsvn/systemc_cordic/systemc_cordic/trunk

Subversion Repositories systemc_cordic

[/] [systemc_cordic/] [trunk/] [cordic_ip/] [opcode.h] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 wwcheng
#ifndef _OPCODE_H_
2
#define _OPCODE_H_
3
// opcode.h: header file
4
/********************************************************************
5
//
6
// Module:
7
//   A collection of opcode related decodings and settings
8
//
9
// Authors:     Winnie Cheng<wwcheng@stanford.edu>,
10
//              Peter Wu<peter5@stanford.edu>
11
 *********************************************************************/
12
 
13
// specification in user program file
14
#define ROT_OPNAME      "rot"
15
#define MAG_OPNAME      "mgp"
16
#define SIN_OPNAME      "sin"
17
#define COS_OPNAME      "cos"
18
#define SINH_OPNAME     "sinh"
19
#define COSH_OPNAME     "cosh"
20
#define NOP_OPNAME      "nop"
21
 
22
// decode which function unit
23
#define UNIT_SEL_WIDTH  4       
24
#define I_NOP           (short)0
25
#define I_ROTATE        (short)1
26
#define I_MAGPHASE      (short)2
27
#define I_SINCOS        (short)8        // selects the SIN-COS unit     
28
#define I_SIN           (short)8        
29
#define I_COS           (short)9        
30
#define I_SINHCOSH      (short)10       // selects the SINH-COSH unit   
31
#define I_SINH          (short)10       
32
#define I_COSH          (short)11       
33
 
34
// differentiate operations within a pipeline stage
35
#define TYPE_NOP        0
36
#define TYPE_NONHYPER   1
37
#define TYPE_HYPER      2
38
 
39
#endif // _OPCODE_H_ 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.