/usr/include/freehdl/fire-types.h is in libfreehdl0-dev 0.0.8-2.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | // -*- C++ -*-
#ifndef FREEHDL_FIRE_TYPES_H
#define FREEHDL_FIRE_TYPES_H
#include <iostream>
#include <freehdl/tree-supp.h>
typedef unsigned char IR_Character;
typedef tree_kind IR_Kind;
const IR_Kind IR_INVALID = NULL;
enum IR_SignalKind {
IR_NO_SIGNAL_KIND,
IR_REGISTER_KIND,
IR_BUS_KIND
};
enum IR_Mode {
IR_UNKNOWN_MODE,
IR_IN_MODE,
IR_OUT_MODE,
IR_INOUT_MODE,
IR_BUFFER_MODE,
IR_LINKAGE_MODE
};
enum IR_Pure {
IR_UNKNOWN_PURE,
IR_PURE_FUNCTION,
IR_IMPURE_FUNCTION,
IR_PURE_PROCEDURAL,
IR_IMPURE_PROCEDURAL
};
enum IR_Direction {
IR_UNKNOWN_DIRECTION,
IR_DIRECTION_UP,
IR_DIRECTION_DOWN
};
enum IR_DelayMechanism {
IR_UNKNOWN_DELAY,
IR_INERTIAL_DELAY,
IR_TRANSPORT_DELAY
};
enum IR_StaticLevel {
IR_NOT_STATIC,
IR_GLOBALLY_STATIC,
IR_LOCALLY_STATIC
};
struct IIR_Root;
typedef IIR_Root IIR;
typedef IIR *pIIR;
// XXX - better use some ready made string class from STL here. Eric?
struct IR_String {
IR_String (const IR_Character *chars, int len);
IR_String (const char *chars);
IR_String (const IR_String &str);
~IR_String ();
IR_String &operator= (const IR_String &str);
int len ()
{
return rep->len;
}
IR_Character operator[] (int i)
{
return rep->chars[i];
}
char *to_chars ();
char *to_chars_no_check ()
{
return (char *)rep->chars;
}
private:
struct strrep {
int len;
unsigned int ref_count;
IR_Character chars[1];
};
strrep *rep;
};
std::ostream& operator<< (std::ostream &o, IR_String &str);
// printers for tree_print
void fire_print_int (void *mem);
void fire_print_bool (void *mem);
void fire_print_string (void *mem);
void fire_print_IR_String (void *mem);
#endif
|