Livt packages

Livt.Math

Version 1.7.2

Reusable integer and fixed-point arithmetic, complex numbers, trigonometry, and statistics for FPGA applications written in Livt.

Published files (90)

src/arithmetic/WideArithmeticPrimitive.lvt

namespace Livt.Math.Arithmetic

/**
 * Portable 64-bit arithmetic engine. Operations are scheduled, never concurrent.
 */
@Opaque
component WideArithmeticPrimitive
{
	// Input command and operands; hold stable until matching acknowledgment.
	public request: in logic
	public operation: in int
	public a: in logic[64]
	public b: in logic[64]
	public outputBits: in int

	// Compile-time capability mask supplied by the owning generic wrapper.
	public operations: in int

	// Constant synthesis options supplied by the owning generic wrapper.
	public roundingStages: in int
	public powerOfTwoFastPath: in bool

	// Completion toggle, result bits, and error status from the native worker.
	public acknowledge: out logic
	public result: out logic[64]
	public failed: out bool
}