mix ehls.sim (Elixir HLS v0.1.0)

Copy Markdown View Source

Compiles like mix ehls.compile, which checks each kernel by itself, then checks the instances: consecutive defhls stages with what is between them, from random words into the first to the words out of the last, in iverilog against the same stages run by Elixir, with random gaps between the inputs given and between the outputs taken, as in a real circuit. No board and no LiteX.

mix ehls.sim --out build file.ex...

An instance of levels (arguments with types) is called as the CPU calls it, its result checked after each call that waits for it, with calls that do not wait and stops and starts in between.

A stage starts from the initial value it was given, a level is at the value it is wired to at first (an instance of levels' initial:, an integer, a pin's 0). What is in a block (a device, ticks, hold, ...) is not simulated: an instance is checked piece by piece between its blocks, its CPU ends included only as the words of the first and last stage. Takes the options of mix ehls.compile; --vectors N is also the number of elements into each piece (default 2000).