mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-26 10:35:38 +00:00
Moved some stuff to kernel/yosys.{h,cc}, using Yosys:: namespace
This commit is contained in:
parent
1202f7aa4b
commit
1cb25c05b3
41 changed files with 790 additions and 665 deletions
|
@ -39,9 +39,11 @@
|
|||
#include "verilog_frontend.h"
|
||||
#include "kernel/log.h"
|
||||
|
||||
USING_YOSYS_NAMESPACE
|
||||
using namespace AST;
|
||||
using namespace VERILOG_FRONTEND;
|
||||
|
||||
YOSYS_NAMESPACE_BEGIN
|
||||
namespace VERILOG_FRONTEND {
|
||||
int port_counter;
|
||||
std::map<std::string, int> port_stubs;
|
||||
|
@ -56,6 +58,7 @@ namespace VERILOG_FRONTEND {
|
|||
bool default_nettype_wire;
|
||||
bool sv_mode;
|
||||
}
|
||||
YOSYS_NAMESPACE_END
|
||||
|
||||
static void append_attr(AstNode *ast, std::map<std::string, AstNode*> *al)
|
||||
{
|
||||
|
@ -89,8 +92,8 @@ static void free_attr(std::map<std::string, AstNode*> *al)
|
|||
|
||||
%union {
|
||||
std::string *string;
|
||||
struct AstNode *ast;
|
||||
std::map<std::string, AstNode*> *al;
|
||||
struct YOSYS_NAMESPACE_PREFIX AST::AstNode *ast;
|
||||
std::map<std::string, YOSYS_NAMESPACE_PREFIX AST::AstNode*> *al;
|
||||
bool boolean;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue