Loading files
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Hast.Layer;
using Hast.Samples.SampleAssembly;
namespace Hast.Samples.Consumer.SampleRunners
{
internal class Posit32CalculatorSampleRunner
{
public static void Configure(HardwareGenerationConfiguration configuration)
{
configuration.AddHardwareEntryPointType<Posit32Calculator>();
}
public static async Task Run(IHastlayer hastlayer, IHardwareRepresentation hardwareRepresentation)
{
var positCalculator = await hastlayer.GenerateProxy(hardwareRepresentation, new Posit32Calculator());
var result = positCalculator.CountUpToNumber(100000);
}
}
}
693af0feaThis file is pinned to the selected release. Download the original to open it in your design tool.