Skip to content
Snippets Groups Projects
Commit 49e4f131 authored by Xavier Routh's avatar Xavier Routh
Browse files

initial commit for GRAPE

parent 1e9f5808
No related branches found
No related tags found
No related merge requests found
Pipeline #202234 passed
// Will come back to this after finishing 511 tn.
// We can template these structs w/ size (8x8) if we want.
#[derive(Clone, Debug)]
pub struct Switchbox {
pub output_wires: (usize, usize),
}
pub struct FunctionalUnit {
pub op_type: FuOp,
}
pub struct SliceDesc {
pub functional_units: Vec<Vec<FunctionalUnit>>, // is 8 x 8
pub switchboxes: Vec<Vec<Switchbox>>, // 1st row of functional units doesn't have switchboxes, so this is 7 x 8
}
pub struct ChipDesc {
pub slices: Vec<SliceDesc>
}
/* Map BinopType to FuOp */
pub enum FuOp {
Add,
Mult,
PassA,
...
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment