mirror of https://github.com/YosysHQ/yosys.git
Fix tabs/spaces
This commit is contained in:
parent
be7be63fec
commit
226dc659f0
|
@ -27,51 +27,51 @@ YOSYS_NAMESPACE_BEGIN
|
||||||
|
|
||||||
struct FstVar
|
struct FstVar
|
||||||
{
|
{
|
||||||
fstHandle id;
|
fstHandle id;
|
||||||
std::string name;
|
std::string name;
|
||||||
bool is_alias;
|
bool is_alias;
|
||||||
std::string scope;
|
std::string scope;
|
||||||
int width;
|
int width;
|
||||||
};
|
};
|
||||||
|
|
||||||
class FstData
|
class FstData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
FstData(std::string filename);
|
FstData(std::string filename);
|
||||||
~FstData();
|
~FstData();
|
||||||
|
|
||||||
uint64_t getStartTime();
|
uint64_t getStartTime();
|
||||||
uint64_t getEndTime();
|
uint64_t getEndTime();
|
||||||
|
|
||||||
std::vector<FstVar>& getVars() { return vars; };
|
std::vector<FstVar>& getVars() { return vars; };
|
||||||
|
|
||||||
void reconstruct_callback(uint64_t pnt_time, fstHandle pnt_facidx, const unsigned char *pnt_value, uint32_t plen);
|
void reconstruct_callback(uint64_t pnt_time, fstHandle pnt_facidx, const unsigned char *pnt_value, uint32_t plen);
|
||||||
void reconstruct(std::vector<fstHandle> &signal);
|
void reconstruct(std::vector<fstHandle> &signal);
|
||||||
void reconstuctAll();
|
void reconstuctAll();
|
||||||
|
|
||||||
void reconstruct_callback_attimes(uint64_t pnt_time, fstHandle pnt_facidx, const unsigned char *pnt_value, uint32_t plen);
|
void reconstruct_callback_attimes(uint64_t pnt_time, fstHandle pnt_facidx, const unsigned char *pnt_value, uint32_t plen);
|
||||||
void reconstructAtTimes(std::vector<fstHandle> &signal,std::vector<uint64_t> time);
|
void reconstructAtTimes(std::vector<fstHandle> &signal,std::vector<uint64_t> time);
|
||||||
void reconstructAllAtTimes(std::vector<uint64_t> time);
|
void reconstructAllAtTimes(std::vector<uint64_t> time);
|
||||||
|
|
||||||
std::string valueAt(fstHandle signal, uint64_t time);
|
std::string valueAt(fstHandle signal, uint64_t time);
|
||||||
std::vector<uint64_t> edges(fstHandle signal, bool positive, bool negative);
|
std::vector<uint64_t> edges(fstHandle signal, bool positive, bool negative);
|
||||||
void recalc_time_offsets(fstHandle signal, std::vector<uint64_t> time);
|
void recalc_time_offsets(fstHandle signal, std::vector<uint64_t> time);
|
||||||
|
|
||||||
fstHandle getHandle(std::string name);
|
fstHandle getHandle(std::string name);
|
||||||
private:
|
private:
|
||||||
void extractVarNames();
|
void extractVarNames();
|
||||||
|
|
||||||
struct fstReaderContext *ctx;
|
struct fstReaderContext *ctx;
|
||||||
std::vector<std::string> scopes;
|
std::vector<std::string> scopes;
|
||||||
std::vector<FstVar> vars;
|
std::vector<FstVar> vars;
|
||||||
std::map<fstHandle, FstVar> handle_to_var;
|
std::map<fstHandle, FstVar> handle_to_var;
|
||||||
std::map<std::string, fstHandle> name_to_handle;
|
std::map<std::string, fstHandle> name_to_handle;
|
||||||
std::map<fstHandle, std::vector<std::pair<uint64_t, std::string>>> handle_to_data;
|
std::map<fstHandle, std::vector<std::pair<uint64_t, std::string>>> handle_to_data;
|
||||||
std::map<fstHandle, std::map<uint64_t, size_t>> time_to_index;
|
std::map<fstHandle, std::map<uint64_t, size_t>> time_to_index;
|
||||||
std::map<fstHandle, std::map<size_t, uint64_t>> index_to_time;
|
std::map<fstHandle, std::map<size_t, uint64_t>> index_to_time;
|
||||||
std::vector<uint64_t> sample_times;
|
std::vector<uint64_t> sample_times;
|
||||||
size_t sample_times_ndx;
|
size_t sample_times_ndx;
|
||||||
std::map<fstHandle, std::string> current;
|
std::map<fstHandle, std::string> current;
|
||||||
};
|
};
|
||||||
|
|
||||||
YOSYS_NAMESPACE_END
|
YOSYS_NAMESPACE_END
|
||||||
|
|
Loading…
Reference in New Issue