Skip to main content

parse_pigeonhole_spec

Function parse_pigeonhole_spec 

Source
pub fn parse_pigeonhole_spec(spec: &str) -> Option<PigeonSpec>
Expand description

Parse a spec of the form (a single pigeons: N line; comments and blanks ignored):

## Pigeonhole
pigeons: 6

Returns None unless there is exactly a well-formed pigeons: count within 2..=20, so other Hardware-mode inputs (SVA English, Verilog, register specs) are never hijacked.