コード例 #1
0
ファイル: AXIMaster.cs プロジェクト: cephdon/systemsharp
        protected override void PreInitialize()
        {
            base.PreInitialize();

            var lib = Descriptor.Library;

            if (lib == null)
            {
                lib = "work";
            }
            LibraryName   = lib;
            ImpEntityName = "implementation";
            ImpFileName   = lib + "_" + ImpEntityName + ".vhd";
            CreationDate  = DateTime.Now.ToString();
            Version       = "1.00.a";
            int index = LibraryName.IndexOf('_');

            if (index > 0)
            {
                TopEntityName = LibraryName.Remove(index);
            }
            else
            {
                TopEntityName = LibraryName;
            }
            TopFileName = lib + "_" + TopEntityName + ".vhd";
        }
コード例 #2
0
        protected override void PreInitialize()
        {
            base.PreInitialize();

            var lib = Descriptor.Library;

            if (lib == null)
            {
                lib = "work";
            }
            LibraryName   = lib;
            ImpEntityName = "implementation";
            ImpFileName   = lib + "_" + ImpEntityName + ".vhd";
            CreationDate  = DateTime.Now.ToString();
            Version       = "1.00.a";
            AXIDataWidth  = SLVDWidth;
            AXIAddrWidth  = 32;
            AXIMinSize    = "000001FF";
            UseWRSTRB     = 0;
            DPhaseTimeout = 8;
            BaseAddr      = "FFFFFFFF";
            HighAddr      = "00000000";
            NumMem        = 1;
            SLVAWidth     = 32;
            UserSLVNumReg = NumRegs;
            int index = LibraryName.IndexOf('_');

            if (index > 0)
            {
                TopEntityName = LibraryName.Remove(index);
            }
            else
            {
                TopEntityName = LibraryName;
            }
            TopFileName = lib + "_" + TopEntityName + ".vhd";
        }