blob: 5fe8f14bf0e84e1f816d6aff388b9ef365df3918 [file] [log] [blame]
#ifndef YOSYS_SYSTEMVERILOG_PLUGIN_UHDM_AST_UPSTREAM_H_
#define YOSYS_SYSTEMVERILOG_PLUGIN_UHDM_AST_UPSTREAM_H_
#include <algorithm>
#include <string>
#include <vector>
#include "frontends/ast/ast.h"
YOSYS_NAMESPACE_BEGIN
namespace AST
{
enum AstNodeTypeExtended {
AST_DOT = AST::AST_BIND + 1, // here we always want to point to the last element of yosys' AstNodeType
AST_BREAK,
AST_CONTINUE
};
}
AST::AstNode *mkconst_real(double d);
namespace VERILOG_FRONTEND
{
// convert the Verilog code for a constant to an AST node
AST::AstNode *const2ast(std::string code, char case_type, bool warn_z);
} // namespace VERILOG_FRONTEND
YOSYS_NAMESPACE_END
#endif // YOSYS_SYSTEMVERILOG_PLUGIN_UHDM_AST_UPSTREAM_H_