/// <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));
     }
 }
Beispiel #2
0
 private static string ToVhdl(IHardwareDescription hardwareDescription)
 {
     return(((Hast.Transformer.Vhdl.Models.VhdlHardwareDescription)hardwareDescription)
            .Manifest.TopModule.ToVhdl(new VhdlGenerationOptions {
         FormatCode = true, NameShortener = VhdlGenerationOptions.SimpleNameShortener
     }));
 }
Beispiel #3
0
 public Task <IHardwareImplementation> Compose(IHardwareDescription hardwareDescription)
 {
     // Not yet implemented, just here as a placeholder.
     return(Task.FromResult((IHardwareImplementation) new HardwareImplementation()));
 }