-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replace toml to yaml #276
base: master
Are you sure you want to change the base?
replace toml to yaml #276
Changes from all commits
bf08551
e34fd57
1ee11fc
48a2a43
dc9c38c
0a4056d
7240f35
627affd
c2e82e1
7238f81
c77c8bd
f63c40e
ebd687b
56e93fc
129f99b
4ffe9bd
a1c4904
9757aa0
8c8f454
f109211
6a61a5a
ae753ce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
mock: true | ||
ioSync: Sync | ||
valueType: fx32.32 | ||
library: | ||
fram{x}: # If you want a PU can be allocated only once, remove {x} from the PU name. | ||
type: Fram | ||
size: 32 | ||
accum{x}: | ||
type: Accum | ||
networks: | ||
net1: | ||
pus: | ||
spi: | ||
type: SPI | ||
mosi: mosi | ||
miso: miso | ||
sclk: sclk | ||
cs: cs | ||
isSlave: true | ||
bufferSize: 6 | ||
bounceFilter: 0 | ||
protos: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let move it to the top level as puLibrary. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is is about all PUs, which nitta can allocate automatically. Current -- in network. Should be -- on the top level & network. |
||
shift{x}: | ||
type: Shift | ||
sRight: true | ||
mul{x}: | ||
type: Multiplier | ||
div{x}: | ||
type: Divider | ||
pipeline: 4 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,7 @@ dependencies: | |
- data-default | ||
- filepath | ||
- ginger | ||
- htoml | ||
- yaml | ||
- intervals | ||
- mtl | ||
- prettyprinter | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something like
parseConfig <$> path
should work?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parseConfig
is aFilePath -> IO MicroarchitectureConf
typepath
is aFilePath
type<$>
is a(a -> b) -> f a -> f b
typeThe result must be type of
IO Maybe MicroarchitectureConf
, soJust <$> parseConfig path
doesn't seem to be able to be simplified.