public void GenerateReport(string source, string rootModule, string destination)
        {
            _netlistDataBuilder.Build(source);

            var result = _countLibraryGatesQuery.CountLibraryGates(source, rootModule);

            var content = _countLibraryGatesFileContentDirector.Construct(result);

            _fileWriter.Write(destination, "Count Library Gates", content);
        }
Esempio n. 2
0
        public void GenerateReport(string source, string rootModule, IList <string> moduleNames, string destination)
        {
            _netlistDataBuilder.Build(source);

            var result = _physicalPathQuery.GetPhysicalPaths(source, rootModule, moduleNames);

            var content = _listPhysicalPathsFileContentDirector.Construct(moduleNames, result);

            _fileWriter.Write(destination, "List Phyisical Paths", content);
        }
        public void Replace(LibraryGateReplaceRequest replaceRequest)
        {
            _netlistDataBuilder.Build(replaceRequest.SourceNetlist);
            _netlistCloner.Clone(replaceRequest.SourceNetlist, replaceRequest.TargetNetlist);

            _libraryGateReplacer.Replace(replaceRequest.TargetNetlist, replaceRequest.GateToReplace, replaceRequest.NewGate, replaceRequest.PortsMapping);

            var content = _netlistFileContentDirector.Construct(replaceRequest.TargetNetlist);

            _fileWriter.Write(replaceRequest.TargetNetlist, "Replace Library Gate", content);
        }
Esempio n. 4
0
        public void PortsToUpper(UpperCasePortsRequest request)
        {
            _netlistDataBuilder.Build(request.SourceNetlist);
            _netlistCloner.Clone(request.SourceNetlist, request.TargetNetlist);

            _libraryGatesPortsReplacer.PortsToUpper(request.TargetNetlist);

            var content = _netlistFileContentDirector.Construct(request.TargetNetlist);

            _fileWriter.Write(request.TargetNetlist, "Uppercase Library Gates Ports", content);
        }
        public void Remove(RemoveBufferRequest removeBufferRequest)
        {
            _netlistDataBuilder.Build(removeBufferRequest.SourceNetlist);
            _netlistCloner.Clone(removeBufferRequest.SourceNetlist, removeBufferRequest.TargetNetlist);

            _bufferRemover.Remove(removeBufferRequest.TargetNetlist, removeBufferRequest.BufferName, removeBufferRequest.InputPort, removeBufferRequest.OutputPort);

            var content = _netlistFileContentDirector.Construct(removeBufferRequest.TargetNetlist);

            _fileWriter.Write(removeBufferRequest.TargetNetlist, "Remove Buffers", content);
        }