CGRA-ME
Classes | Enumerations | Functions
BitSetting.h File Reference
#include <iosfwd>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  BitSettingForVerilog
 
class  BitConfig
 

Enumerations

enum  BitSetting {
  BitSetting::LOW, BitSetting::HIGH, BitSetting::DONT_CARE_PREFER_LOW, BitSetting::DONT_CARE_PREFER_HIGH,
  BitSetting::HIGH_IMPEDANCE
}
 

Functions

template<typename T >
from_bool (bool b)
 
template<>
BitSetting from_bool< BitSetting > (bool b)
 
BitSetting force_to_rail (const BitSetting &bs)
 
std::ostream & operator<< (std::ostream &os, const BitSetting &bs)
 
std::ostream & operator<< (std::ostream &os, const std::vector< BitSetting > &bits)
 
BitSettingForVerilog for_verilog (const BitSetting &bs)
 
std::ostream & operator<< (std::ostream &os, const BitSettingForVerilog &bs)
 
template<typename INTEGRAL >
std::vector< BitSetting > & push_back_int (std::vector< BitSetting > &v, const INTEGRAL &value, int num_bits)
 
template<typename INTEGRAL >
std::vector< BitSettingbitsettings_from_int (const INTEGRAL &value, int num_bits)
 

Enumeration Type Documentation

◆ BitSetting

enum BitSetting
strong
Enumerator
LOW 
HIGH 
DONT_CARE_PREFER_LOW 
DONT_CARE_PREFER_HIGH 
HIGH_IMPEDANCE 

Definition at line 18 of file BitSetting.h.

Function Documentation

◆ bitsettings_from_int()

template<typename INTEGRAL >
std::vector<BitSetting> bitsettings_from_int ( const INTEGRAL &  value,
int  num_bits 
)

Definition at line 52 of file BitSetting.h.

◆ for_verilog()

BitSettingForVerilog for_verilog ( const BitSetting bs)
inline

Definition at line 40 of file BitSetting.h.

◆ force_to_rail()

BitSetting force_to_rail ( const BitSetting bs)

Definition at line 25 of file BitSetting.cpp.

◆ from_bool()

template<typename T >
T from_bool ( bool  b)

◆ from_bool< BitSetting >()

template<>
BitSetting from_bool< BitSetting > ( bool  b)

Definition at line 17 of file BitSetting.cpp.

◆ operator<<() [1/3]

std::ostream& operator<< ( std::ostream &  os,
const BitSetting bs 
)

Definition at line 38 of file BitSetting.cpp.

◆ operator<<() [2/3]

std::ostream& operator<< ( std::ostream &  os,
const BitSettingForVerilog bs 
)

Definition at line 63 of file BitSetting.cpp.

◆ operator<<() [3/3]

std::ostream& operator<< ( std::ostream &  os,
const std::vector< BitSetting > &  bits 
)

Definition at line 54 of file BitSetting.cpp.

◆ push_back_int()

template<typename INTEGRAL >
std::vector<BitSetting>& push_back_int ( std::vector< BitSetting > &  v,
const INTEGRAL &  value,
int  num_bits 
)

Definition at line 44 of file BitSetting.h.