-
Notifications
You must be signed in to change notification settings - Fork 152
Unify interface, add memory mapping #704
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
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
b3e2d20
wip: Unify interface, add memory mapping
Grazfather 7fe774a
rename io_space to just io
Grazfather 63af74c
Remove data r/w helpers
Grazfather b3d9e58
Use optional exit code in testrunner like we do in main
Grazfather f72ee43
Use specific bit with ints for addresses and bases
Grazfather 9cfdfd3
Rename read8/write8 to read/write in device interface
Grazfather efb023a
cleanup unused
Grazfather f2b9e33
remove unnecessary int casts
Grazfather 7dbc09d
Remove RAM in favour of FixedSizeMemory
Grazfather a88fc19
Rename Device interface to Bus
Grazfather 19df448
combine io and memory into a single 'bus' module
Grazfather c0e8942
Use the bus interface when loading elf files
Grazfather fe7017c
Rename MemorySpace to MemoryMapping
Grazfather fb585fd
Use same SIO in mcu as Cpu
Grazfather 29e0851
Cleanup name
Grazfather 23dc121
Don't initialize eeprom - We don't have a way to use it yet
Grazfather a3be40a
Don't alloc while loading elf
Grazfather 7fa0dbb
wip: Make Bus, Segment, MemoryMapping take config
Grazfather 9949d83
Separate interfaces for IO and data bus
Grazfather File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,17 @@ | ||
| const std = @import("std"); | ||
| const builtin = @import("builtin"); | ||
| const io = @import("io.zig"); | ||
| const bus = @import("bus.zig"); | ||
| const isa = @import("isa"); | ||
|
|
||
| pub const Cpu = @import("Cpu.zig"); | ||
|
|
||
| pub const Flash = io.Flash; | ||
| pub const RAM = io.RAM; | ||
| pub const EEPROM = io.EEPROM; | ||
| pub const IO = io.IO; | ||
| pub const Flash = bus.Flash; | ||
| pub const IO = bus.IO; | ||
| pub const Bus = bus.Bus; | ||
| pub const IOBus = bus.IOBus; | ||
|
|
||
| pub const FixedSizedMemory = bus.FixedSizedMemory; | ||
|
|
||
| pub const mcu = @import("mcu.zig"); | ||
|
|
||
| pub const Register = isa.Register; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.