Example #1
0
        public void Initialize(IProject project, DesignContext context)
        {
            SubprogramsDontDriveSignals sdds = new SubprogramsDontDriveSignals();
            sdds.ApplyTo(context);

            foreach (VHDLib lib in _stdLibraries)
            {
                foreach (VHDPkg pkg in lib.Packages)
                {
                    if (pkg.FileContent == null)
                        continue;
                    string fname = MakeVHDSourceFileName(pkg.Name);
                    string path = project.AddFile(fname);
                    FileStream fs = new FileStream(path, FileMode.Create);
                    fs.Write(pkg.FileContent, 0, pkg.FileContent.Length);
                    fs.Close();
                }
            }
        }
Example #2
0
 public void Initialize(IProject project, DesignContext context)
 {
     SubprogramsDontDriveSignals sdds = new SubprogramsDontDriveSignals();
     sdds.ApplyTo(context);
     SimTime = context.CurTime;
 }