Question: write me a code that gives this output / / memory data file ( do not edit the following line - required for mem load
write me a code that gives this output memory data file do not edit the following line required for mem load use instanceDAVINCITBdavinciinstmemoryinstsramxm formathex addressradixh dataradixh version wordsperline noaddress memory data file do not edit the following line required for mem load use instanceDAVINCITBdavinciinstmemoryinstsramxm formathex addressradixh dataradixh version wordsperline noaddress memory data file do not edit the following line required for mem load use instanceDAVINCITBdavinciinstmemoryinstsramxm formathex addressradixh dataradixh version wordsperline noaddress memory data file do not edit the following line required for mem load use instanceDAVINCITBdavinciinstmemoryinstsramxm formathex addressradixh dataradixh version wordsperline noaddress b d f memory data file do not edit the following line required for mem load use instanceDAVINCITBdavinciinstmemoryinstsramxm formathex addressradixh dataradixh version wordsperline noaddress d e memory data file do not edit the following line required for mem load use instanceDAVINCITBdavinciinstmemoryinstsramxm formathex addressradixh dataradixh version wordsperline noaddress ffffffc ffffffeb d fffffff fffffffd ffffffff
include prjdefinition.v
module CONTROLUNITMEMDATA, RFDATAW RFADDRW RFADDRR RFADDRR RFREAD, RFWRITE,
ALUOP ALUOP ALUOPRN, MEMADDR, MEMREAD, MEMWRITE,
RFDATAR RFDATAR ALURESULT, ZERO, CLK RST;
Output signals
Outputs for register file
output DATAINDEXLIMIT: RFDATAW;
output ADDRESSINDEXLIMIT: RFADDRW RFADDRR RFADDRR;
output RFREAD, RFWRITE;
Outputs for ALU
output DATAINDEXLIMIT: ALUOP ALUOP;
output ALUOPRNINDEXLIMIT: ALUOPRN;
Outputs for memory
output ADDRESSINDEXLIMIT: MEMADDR;
output MEMREAD, MEMWRITE;
Input signals
input DATAINDEXLIMIT: RFDATAR RFDATAR ALURESULT;
input ZERO, CLK RST;
Inout signal
inout DATAINDEXLIMIT: MEMDATA;
State nets
wire : procstate;
PROCSM statemachineSTATEprocstateCLKCLKRSTRST;
always @ procstate
begin
TBD: Code for the control unit model
end
task printinstruction;
input DATAINDEXLIMIT: inst;
reg : opcode;
reg : rs;
reg : rt;
reg : rd;
reg : shamt;
reg : funct;
reg : immediate;
reg : address;
begin
parse the instruction
Rtype
opcode rs rt rd shamt, funct inst;
Itype
opcode rs rt immediate inst;
Jtype
opcode address inst;
$write@ dns Xh $time, inst;
caseopcode
RType
h : begin
casefunct
h: $writeadd rd rd rd; rd rs rt;
h: $writesub rd rd rd; rd rs rt;
hc: $writemul rd rd rd; rd rs rt;
h: $writeand rd rd rd; rd rs rt;
h: $writeor rd rd rd; rd rs rt;
h: $writenor rd rd rd; rd rs rt;
ha: $writeslt rd rd rd; rd rs
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
