Mercurial > pygar
diff modules/bluespec/Pygar/core/Processor.bsv @ 42:ced2ebd41347 pygar svn.43
[svn r43] bunch of updates that almost work...
author | punk |
---|---|
date | Wed, 05 May 2010 01:09:09 -0400 |
parents | 0475235d1513 |
children | 4d87fa55a776 |
line wrap: on
line diff
1.1 --- a/modules/bluespec/Pygar/core/Processor.bsv Tue May 04 22:32:52 2010 -0400 1.2 +++ b/modules/bluespec/Pygar/core/Processor.bsv Wed May 05 01:09:09 2010 -0400 1.3 @@ -372,6 +372,7 @@ 1.4 end 1.5 tagged LUI .it : 1.6 begin 1.7 + $display("PROCESSOR Instr LUI\n"); 1.8 Bit#(32) zext_it_imm = zext(it.imm); 1.9 wbQ.enq(tagged WB_ALU {dest: it.rdst, data:(zext_it_imm << 32'd16) }); 1.10 end 1.11 @@ -456,13 +457,15 @@ 1.12 end 1.13 1.14 tagged JR .it : 1.15 - begin 1.16 + begin 1.17 + $display("PROCESSOR inst JR\n"); 1.18 newPC = rf.rd1(it.rsrc); 1.19 branchTaken = True; 1.20 end 1.21 1.22 tagged JAL .it : 1.23 begin 1.24 + $display("PROCESSOR inst JAL\n"); 1.25 wbQ.enq(tagged WB_ALU {dest:31, data:pc_plus4 }); 1.26 newPC = { pc_plus4[31:28], it.target, 2'b0 }; 1.27 branchTaken = True; 1.28 @@ -580,13 +583,13 @@ 1.29 cp0_audioEOF <= True; 1.30 inAudioFifo.deq; 1.31 endrule 1.32 - 1.33 +/* 1.34 rule sendAudioEnd (cp0_progComp); 1.35 $display (" PROCESSOR Says Program Complete "); 1.36 outAudioFifo.enq(tagged EndOfFile); 1.37 cp0_progComp <= False; //only send one. And functions to reset 1.38 endrule 1.39 - 1.40 +*/ 1.41 1.42 //----------------------------------------------------------- 1.43 // Methods