Ejemplo n.º 1
0
        /// <summary>
        /// Получение дочерних элементов библиотеки
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        public static IList <VHDL.VhdlElement> GetSubElements(VHDL.LibraryDeclarativeRegion lib)
        {
            List <VHDL.VhdlElement> res = new List <VHDL.VhdlElement>();

            foreach (VHDL.VhdlFile file in lib.Files)
            {
                res.AddRange(FilterDesignElements(GetSubElements(file)));
            }

            return(res);
        }
Ejemplo n.º 2
0
        public ModelingSystemCore(VHDL.libraryunit.Architecture architecture, VHDL.LibraryDeclarativeRegion library, VHDL.RootDeclarativeRegion rootDeclarationRegion)
        {
            ExpressionEvaluator.DefaultEvaluator = new ExpressionEvaluator(this);
            this.architecture          = architecture;
            this.library               = library;
            this.rootDeclarationRegion = rootDeclarationRegion;
            functionAnalyser           = new FunctionAnalyser(architecture.Scope);
            currentScope               = new List <IValueProvider>();
            signalScope = new List <Signal>();

            now = new TIME_VALUE(0);

            FormDefaultResultScope();
        }
Ejemplo n.º 3
0
        public ModelingSystemCore(VHDL.libraryunit.Architecture architecture, VHDL.LibraryDeclarativeRegion library, VHDL.RootDeclarativeRegion rootDeclarationRegion, SimulationScope scope)
        {
            ExpressionEvaluator.DefaultEvaluator = new ExpressionEvaluator(this);
            this.architecture          = architecture;
            this.library               = library;
            this.rootDeclarationRegion = rootDeclarationRegion;
            functionAnalyser           = new FunctionAnalyser(architecture.Scope);
            currentScope               = new List <IValueProvider>();
            signalScope = new List <Signal>();

            now = new TIME_VALUE(0);

            result_scope = scope;
            foreach (var s in scope.Variables)
            {
                if (s is Signal)
                {
                    signalScope.Add(s as Signal);
                    currentScope.Add(s as Signal);
                }
            }
        }