Specify Parameterized Accelerators Through Inordinately Abstract Language
Specify Parameterized Accelerators Through Inordinately Abstract Language, aka Specify Parameterized Accelerators Through Inordinately Abstract Language, is an actively used programming language created in 2018. Spatial: A High Level Programming Language for FPGAs
2Years Old | 100Users | ?Jobs |
- the Specify Parameterized Accelerators Through Inordinately Abstract Language website
- Specify Parameterized Accelerators Through Inordinately Abstract Language on github
- Specify Parameterized Accelerators Through Inordinately Abstract Language first appeared in 2018
- Have a question about Specify Parameterized Accelerators Through Inordinately Abstract Language not answered here? Email me and let me know how I can help.
Example code from the web:
import spatial.dsl._ @spatial object HelloSpatial extends SpatialApp { def main(args: Array[String]): Void = { // Create ArgIn val x = ArgIn[Int] // Set `x` to the value of the first command line argument setArg(x, args(0).to[Int]) Accel { // Create 16x32 SRAM and a Register val s = SRAM[Int](16,32) val r = Reg[Int] // Loop over each element in SRAM Foreach(16 by 1, 32 by 1){(i,j) => s(i,j) = i + j } // Store element into the register, based on the input arg r := s(x,x) // Print value of register (only shows in Scala simulation) println(r"Value of SRAM at (${x.value},${x.value}) is ${r.value}") } } }
Last updated August 9th, 2020
Edit Specify Parameterized Accelerators Through Inordinately Abstract Language on GitHub