mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-04 18:46:11 +00:00
Creating the base of the Memory Bus
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// Created by anonymus-raccoon on 1/23/20.
|
||||
//
|
||||
|
||||
#ifndef COMSQUARE_MEMORYBUS_HPP
|
||||
#define COMSQUARE_MEMORYBUS_HPP
|
||||
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
#include "IMemory.hpp"
|
||||
|
||||
namespace ComSquare
|
||||
{
|
||||
class MemoryBus {
|
||||
private:
|
||||
std::vector<IMemory> _memoryAccessors;
|
||||
IMemory * getAccessor(uint32_t addr);
|
||||
uint8_t _openbus;
|
||||
public:
|
||||
uint8_t read(uint32_t addr);
|
||||
void write(uint32_t addr, uint8_t data);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
#endif //COMSQUARE_MEMORYBUS_HPP
|
||||
Reference in New Issue
Block a user