public static void RegisterType(VHDL.type.Type vhdlType, System.Type runtimeType)
        {
            if (typeDictionary == null)
            {
                typeDictionary = new Dictionary <VHDL.type.Type, System.Type>();
            }

            if (typeDictionary.ContainsKey(vhdlType) == false)
            {
                typeDictionary.Add(vhdlType, runtimeType);
            }
            else
            {
                typeDictionary[vhdlType] = runtimeType;
            }
        }
 public static bool ContainsBuiltInType(VHDL.type.Type type)
 {
     return(typeDictionary.ContainsKey(type));
 }
 public static System.Type GetBuiltInType(VHDL.type.Type type)
 {
     return(typeDictionary[type]);
 }
Ejemplo n.º 4
0
 public static Signal CreateSignal(VHDL.type.Type type, string identifier, List <AbstractSignalDump> dumps)
 {
     return(new Signal(ModellingType.CreateModellingType(type), new VHDL.Object.Signal(identifier, type), dumps));
 }
Ejemplo n.º 5
0
 public static Signal CreateSignal(VHDL.type.Type type, string identifier)
 {
     return(new Signal(ModellingType.CreateModellingType(type), new VHDL.Object.Signal(identifier, type)));
 }
Ejemplo n.º 6
0
 public TypeObserver(VHDL.type.Type type, Logger logger)
 {
     this.logger = logger;
     this.type   = type;
 }
Ejemplo n.º 7
0
        private void ObserveTypeDeclaration(VHDLCompilerInterface compiler, VHDL.type.Type item)
        {
            TypeObserver typeObserver = new TypeObserver(item, logger);

            typeObserver.Observe(compiler);
        }
Ejemplo n.º 8
0
 /// <summary>
 /// Конструктор
 /// </summary>
 /// <param name="type"></param>
 public ScalarValue(VHDL.type.Type type)
     : base(ModellingType.CreateModellingType(type))
 {
 }