/// <summary> /// Writes out the hardware description's source code to a file under the given path. /// </summary> /// <param name="filePath">The full path where the file should be written to.</param> public static Task WriteSource(this IHardwareDescription hardwareDescription, string filePath) { using (var fileStream = File.Create(filePath)) { return(hardwareDescription.WriteSource(fileStream)); } }
private static string ToVhdl(IHardwareDescription hardwareDescription) { return(((Hast.Transformer.Vhdl.Models.VhdlHardwareDescription)hardwareDescription) .Manifest.TopModule.ToVhdl(new VhdlGenerationOptions { FormatCode = true, NameShortener = VhdlGenerationOptions.SimpleNameShortener })); }
public Task <IHardwareImplementation> Compose(IHardwareDescription hardwareDescription) { // Not yet implemented, just here as a placeholder. return(Task.FromResult((IHardwareImplementation) new HardwareImplementation())); }