Skip to main content

Module generator

Module generator 

Source
Expand description

Pseudorandom generator for hash programs and parts thereof

Re-exportsยง

use crate::Error; ๐Ÿ”’
use crate::constraints; ๐Ÿ”’
use crate::constraints::Pass; ๐Ÿ”’
use crate::constraints::RegisterWriter; ๐Ÿ”’
use crate::constraints::Validator; ๐Ÿ”’
use crate::program::Instruction; ๐Ÿ”’
use crate::program::InstructionVec; ๐Ÿ”’
use crate::program::Opcode; ๐Ÿ”’
use crate::rand::RngBuffer; ๐Ÿ”’
use crate::register::RegisterId; ๐Ÿ”’
use crate::register::RegisterSet; ๐Ÿ”’
use crate::scheduler::InstructionPlan; ๐Ÿ”’
use crate::scheduler::Scheduler; ๐Ÿ”’
use rand_core::Rng; ๐Ÿ”’

Modulesยง

model ๐Ÿ”’
The model attempts to document HashX program generation choices, separate from the main body of the program generator.

Structsยง

Generator ๐Ÿ”’
Program generator

Enumsยง

OpcodeSelector ๐Ÿ”’
HashX uses a limited number of different instruction selection strategies, chosen based on the sub-cycle timing of our position in the instruction stream.