Limbo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
VerilogDataBase Class Reference

Custom class that inheritates VerilogParser::VerilogDataBase with all the required callbacks defined. More...

Inheritance diagram for VerilogDataBase:
VerilogParser::VerilogDataBase

Public Member Functions

 VerilogDataBase ()
 constructor
 
virtual void verilog_module_declaration_cbk (std::string const &module_name, std::vector< VerilogParser::GeneralName > const &vPinName)
 read a module declaration More...
 
virtual void verilog_instance_cbk (std::string const &macro_name, std::string const &inst_name, std::vector< VerilogParser::NetPin > const &vNetPin)
 read an instance. More...
 
virtual void verilog_net_declare_cbk (std::string const &net_name, VerilogParser::Range const &range)
 read an net declaration More...
 
virtual void verilog_pin_declare_cbk (std::string const &pin_name, unsigned type, VerilogParser::Range const &range)
 read an pin declaration More...
 
virtual void verilog_assignment_cbk (std::string const &target_name, VerilogParser::Range const &target_range, std::string const &source_name, VerilogParser::Range const &source_range)
 read an assignment More...
 

Additional Inherited Members

- Protected Member Functions inherited from VerilogParser::VerilogDataBase
void verilog_user_cbk_reminder (const char *str) const
 remind users to define some optional callback functions at runtime More...
 

Detailed Description

Custom class that inheritates VerilogParser::VerilogDataBase with all the required callbacks defined.

Definition at line 20 of file test_bison.cpp.

Member Function Documentation

virtual void VerilogDataBase::verilog_assignment_cbk ( std::string const &  target_name,
VerilogParser::Range const &  target_range,
std::string const &  source_name,
VerilogParser::Range const &  source_range 
)
inlinevirtual

read an assignment

assign exu_mmu_early_va_e[0] = exu_mmu_early_va_e[0];

Parameters
target_namename of left hand side
target_rangerange of left hand side, negative infinity if either low or high value of the range is not defined
source_namename of right hand side
source_rangerange of right hand side, negative infinity if either low or high value of the range is not defined

Reimplemented from VerilogParser::VerilogDataBase.

Definition at line 105 of file test_bison.cpp.

virtual void VerilogDataBase::verilog_instance_cbk ( std::string const &  macro_name,
std::string const &  inst_name,
std::vector< VerilogParser::NetPin > const &  vNetPin 
)
inlinevirtual

read an instance.

NOR2_X1 u2 ( .a(n1), .b(n3), .o(n2) ); NOR2_X1 u2 ( .a(n1), .b({n3, n4}), .o(n2) ); NOR2_X1 u2 ( .a(n1), .b(1'b0), .o(n2) );

Parameters
macro_namestandard cell type or module name
inst_nameinstance name
vNetPinarray of pairs of net and pin

Implements VerilogParser::VerilogDataBase.

Definition at line 51 of file test_bison.cpp.

virtual void VerilogDataBase::verilog_module_declaration_cbk ( std::string const &  module_name,
std::vector< VerilogParser::GeneralName > const &  vPinName 
)
inlinevirtual

read a module declaration

required callbacks from abstract VerilogParser::VerilogDataBase /////////////////// module NOR2_X1 ( a, b, c );

Parameters
module_namename of a module
vPinNamearray of pins

Reimplemented from VerilogParser::VerilogDataBase.

Definition at line 35 of file test_bison.cpp.

virtual void VerilogDataBase::verilog_net_declare_cbk ( std::string const &  net_name,
VerilogParser::Range const &  range 
)
inlinevirtual

read an net declaration

wire aaa[1];

Parameters
net_namenet name
rangenet range, negative infinity if either low or high value of the range is not defined

Implements VerilogParser::VerilogDataBase.

Definition at line 82 of file test_bison.cpp.

virtual void VerilogDataBase::verilog_pin_declare_cbk ( std::string const &  pin_name,
unsigned  type,
VerilogParser::Range const &  range 
)
inlinevirtual

read an pin declaration

input inp2;

Parameters
pin_namepin name
typetype of pin, refer to VerilogParser::PinType
rangepin range, negative infinity if either low or high value of the range is not defined

Implements VerilogParser::VerilogDataBase.

Definition at line 93 of file test_bison.cpp.


The documentation for this class was generated from the following file: