Home > database >  Ask for help,
Ask for help,

Time:09-18

CPU design class, requirements are as follows: (1) the private data members including model, frequency, price, register; (2) an empty constructor, an initialization model, frequency, the structure of the price method; (3) write a data set and read registers setter and getter methods; (4) function methods: simulated CPU a operation instructions to read data from memory to the register, the CPU registers in the data into memory,

Design memory RAM, requirements are as follows: (1) the frequency, size, current saved data; (2) an empty constructor; (3) a setter method, the data stored in RAM, a getter methods to obtain the data in RAM,

Test requirement: construct a CPU object, two functional testing method,