Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hercules
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
llvm
Hercules
Commits
49e4f131
Commit
49e4f131
authored
1 month ago
by
Xavier Routh
Browse files
Options
Downloads
Patches
Plain Diff
initial commit for GRAPE
parent
1e9f5808
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#202234
passed
1 month ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hercules_cg/src/grape.txt
+31
-0
31 additions, 0 deletions
hercules_cg/src/grape.txt
with
31 additions
and
0 deletions
hercules_cg/src/grape.txt
0 → 100644
+
31
−
0
View file @
49e4f131
// 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,
...
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment