Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please refer to this link: http://www.co-pylit.org/courses/cosc2325/Assignments/Lab1/lab1-memory-unit.html#lab1-memory-unit ( this shows the main assignment, it's really long and cumbersome. All i know is we are required to

Please refer to this link: http://www.co-pylit.org/courses/cosc2325/Assignments/Lab1/lab1-memory-unit.html#lab1-memory-unit ( this shows the main assignment, it's really long and cumbersome. All i know is we are required to complete it and test it) I am really stuck on how to even start / proceed with this. Here is the memory.h file; #pragma once #include class Memory { public: // constructor Memory(); // default constructor Memory(int size, int read_time, int write_time); ~Memory(); // accessors void read(uint16_t address, int size); uint16_t read_valid(void); bool ready(void); int get_size(void); // mutators void write(uint16_t address, int size, uint16_t data); private: int delay; int mSize; uint8_t *mem; uint16_t rdata; int read_access_time; int write_access_time; }; ______________________________________________ here's memory.cpp; #include "Memory.h" #include // constructor Memory::Memory(void) { } Memory::Memory(int size, int read_time, int write_time) { } Memory::~Memory() { } // accessors void Memory::read(uint16_t address, int size) { } uint16_t Memory::read_valid(void) { return rdata; } bool Memory::ready(void) { return false; } int Memory::get_size(void) { return mSize; } // mutators void Memory::write(uint16_t address, int size, uint16_t data) { } _______________________________________________________ Your help would be greatly appreciated. Also could you include a test code to test your memory.cpp and memory.h? Thank you!!!!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Semantics In Databases Second International Workshop Dagstuhl Castle Germany January 2001 Revised Papers Lncs 2582

Authors: Leopoldo Bertossi ,Gyula O.H. Katona ,Klaus-Dieter Schewe ,Bernhard Thalheim

2003rd Edition

3540009574, 978-3540009573

More Books

Students also viewed these Databases questions