Line 78... |
Line 78... |
(
|
(
|
|
|
input wire Clock,
|
input wire Clock,
|
input wire Reset,
|
input wire Reset,
|
input wire[15:0] iControlRegister,
|
input wire[15:0] iControlRegister,
|
input wire iExternalBus_DataReady,
|
|
input wire iBusUnitDone,
|
|
output reg oGFUEnable,
|
output reg oGFUEnable,
|
input wire iTriggerAABBIURequest,
|
input wire iTriggerAABBIURequest,
|
input wire iTriggerBIURequest,
|
input wire iTriggerBIURequest,
|
input wire iTriggertTCCRequest,
|
input wire iTriggertTCCRequest,
|
output reg oUCodeEnable,
|
output reg oUCodeEnable,
|
output reg[`ROM_ADDRESS_WIDTH-1:0] oUCodeInstructioPointer,
|
output reg[`ROM_ADDRESS_WIDTH-1:0] oCodeInstructioPointer,
|
input wire iUCodeDone,
|
input wire iUCodeDone,
|
input wire iUCodeReturnValue,
|
input wire iUCodeReturnValue,
|
input wire iGFUDone,
|
input wire iGFUDone,
|
input wire iGEOSync,
|
input wire iGEOSync,
|
output reg oTriggerTFF,
|
output reg oTriggerTFF,
|
input wire iTFFDone,
|
input wire iTFFDone,
|
input wire MST_I,
|
input wire MST_I,
|
output reg[2:0] oRamBusOwner,
|
output reg[2:0] oRamBusOwner,
|
input wire iIODone,
|
input wire iIODone,
|
output reg oSetCurrentPitch,
|
output reg oSetCurrentPitch,
|
//output reg //oIncCurrentPitch,
|
|
//output wire[`WIDTH-1:0] oPitchInitialValue,
|
|
output reg oIOWritePixel
|
output reg oIOWritePixel
|
|
|
);
|
);
|
|
|
//Internal State Machine varibles
|
//Internal State Machine varibles
|
Line 122... |
Line 118... |
end
|
end
|
|
|
`endif
|
`endif
|
|
|
|
|
wire[`ROM_ADDRESS_WIDTH-1:0] wAABBIUAddress;
|
//wire[`ROM_ADDRESS_WIDTH-1:0] wAABBIUAddress;
|
assign wAABBIUAddress = (iControlRegister[`CR_USER_AABBIU] == 1'b1) ? `USER_AABBIU_UCODE_ADDRESS : `AABBIU_UCODE_ADDRESS;
|
//assign wAABBIUAddress = (iControlRegister[`CR_USER_AABBIU] == 1'b1) ? `USER_AABBIU_UCODE_ADDRESS : `ENTRYPOINT_INDEX_AABBIU;
|
|
|
|
|
//--------------------------------------------------------------
|
//--------------------------------------------------------------
|
FFToggleOnce_1Bit FFTO1
|
FFToggleOnce_1Bit FFTO1
|
(
|
(
|
Line 168... |
Line 164... |
`ifdef DEBUG
|
`ifdef DEBUG
|
`LOGME"%d CU_AFTER_RESET_STATE\n",$time);
|
`LOGME"%d CU_AFTER_RESET_STATE\n",$time);
|
`endif
|
`endif
|
|
|
oRamBusOwner <= 0;
|
oRamBusOwner <= 0;
|
oUCodeInstructioPointer <= `INITIAL_UCODE_ADDRESS;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_INITIAL;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oUCodeEnable <= 0;
|
oUCodeEnable <= 0;
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 1;
|
rResetHitFlop <= 1;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 191... |
Line 187... |
// `ifdef DEBUG
|
// `ifdef DEBUG
|
// `LOGME"%d Control: CU_WAIT_FOR_INITIAL_CONFIGURATION\n",$time);
|
// `LOGME"%d Control: CU_WAIT_FOR_INITIAL_CONFIGURATION\n",$time);
|
// `endif
|
// `endif
|
|
|
oRamBusOwner <= 0;
|
oRamBusOwner <= 0;
|
oUCodeInstructioPointer <= 0;
|
oCodeInstructioPointer <= 0;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oUCodeEnable <= 0;
|
oUCodeEnable <= 0;
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 1;
|
rResetHitFlop <= 1;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 212... |
Line 208... |
end
|
end
|
//-----------------------------------------
|
//-----------------------------------------
|
`CU_PERFORM_INTIAL_CONFIGURATION:
|
`CU_PERFORM_INTIAL_CONFIGURATION:
|
begin
|
begin
|
oRamBusOwner <= 0;
|
oRamBusOwner <= 0;
|
oUCodeInstructioPointer <= 0;
|
oCodeInstructioPointer <= 0;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oUCodeEnable <= 0;
|
oUCodeEnable <= 0;
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 1;
|
rResetHitFlop <= 1;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 236... |
Line 232... |
`ifdef DEBUG
|
`ifdef DEBUG
|
`LOGME"%d CU_CLEAR_REGISTERS\n",$time);
|
`LOGME"%d CU_CLEAR_REGISTERS\n",$time);
|
`endif
|
`endif
|
|
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oUCodeInstructioPointer <= `INITIAL_UCODE_ADDRESS;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_INITIAL;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oUCodeEnable <= 1; //*
|
oUCodeEnable <= 1; //*
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 256... |
Line 252... |
// `ifdef DEBUG
|
// `ifdef DEBUG
|
// `LOGME"%d CU_WAIT_CLEAR_REGISTERS\n",$time);
|
// `LOGME"%d CU_WAIT_CLEAR_REGISTERS\n",$time);
|
// `endif
|
// `endif
|
|
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oUCodeInstructioPointer <= `INITIAL_UCODE_ADDRESS;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_INITIAL;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oUCodeEnable <= 0;
|
oUCodeEnable <= 0;
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 280... |
Line 276... |
`ifdef DEBUG
|
`ifdef DEBUG
|
`LOGME"%d CU_ACK_CLEAR_REGISTERS\n", $time);
|
`LOGME"%d CU_ACK_CLEAR_REGISTERS\n", $time);
|
`endif
|
`endif
|
|
|
oRamBusOwner <= 0;
|
oRamBusOwner <= 0;
|
oUCodeInstructioPointer <= 0;
|
oCodeInstructioPointer <= 0;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oUCodeEnable <= 0; //*
|
oUCodeEnable <= 0; //*
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 304... |
Line 300... |
// `ifdef DEBUG
|
// `ifdef DEBUG
|
// `LOGME"%d Control: CU_WAIT_FOR_CONFIG_DATA_READ\n",$time);
|
// `LOGME"%d Control: CU_WAIT_FOR_CONFIG_DATA_READ\n",$time);
|
// `endif
|
// `endif
|
|
|
oRamBusOwner <= 0;//`REG_BUS_OWNED_BY_BCU;
|
oRamBusOwner <= 0;//`REG_BUS_OWNED_BY_BCU;
|
oUCodeInstructioPointer <= 0;
|
oCodeInstructioPointer <= 0;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oUCodeEnable <= 0;
|
oUCodeEnable <= 0;
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 329... |
Line 325... |
`ifdef DEBUG
|
`ifdef DEBUG
|
`LOGME"%d Control: CU_PRECALCULATE_CONSTANTS\n", $time);
|
`LOGME"%d Control: CU_PRECALCULATE_CONSTANTS\n", $time);
|
`endif
|
`endif
|
|
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oUCodeInstructioPointer <= `CPPU_UCODE_ADDRESS;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_CPPU;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oUCodeEnable <= 1; //*
|
oUCodeEnable <= 1; //*
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 351... |
Line 347... |
// `LOGME"%d Control: CU_WAIT_FOR_CONSTANT\n", $time);
|
// `LOGME"%d Control: CU_WAIT_FOR_CONSTANT\n", $time);
|
// `endif
|
// `endif
|
|
|
|
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oUCodeInstructioPointer <= `CPPU_UCODE_ADDRESS;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_CPPU;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oUCodeEnable <= 0; //*
|
oUCodeEnable <= 0; //*
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 377... |
Line 373... |
`LOGME"%d Control: CU_ACK_PRECALCULATE_CONSTANTS\n", $time);
|
`LOGME"%d Control: CU_ACK_PRECALCULATE_CONSTANTS\n", $time);
|
`endif
|
`endif
|
|
|
|
|
oRamBusOwner <= 0;//`REG_BUS_OWNED_BY_BCU;
|
oRamBusOwner <= 0;//`REG_BUS_OWNED_BY_BCU;
|
oUCodeInstructioPointer <= 0;
|
oCodeInstructioPointer <= 0;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oUCodeEnable <= 0; //*
|
oUCodeEnable <= 0; //*
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 399... |
Line 395... |
`ifdef DEBUG
|
`ifdef DEBUG
|
`LOGME"%d Control: CU_TRIGGER_RGU\n",$time);
|
`LOGME"%d Control: CU_TRIGGER_RGU\n",$time);
|
`endif
|
`endif
|
|
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oUCodeInstructioPointer <= `RGU_UCODE_ADDRESS;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_RGU;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oUCodeEnable <= 1; //*
|
oUCodeEnable <= 1; //*
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 420... |
Line 416... |
// `ifdef DEBUG
|
// `ifdef DEBUG
|
// `LOGME"%d Control: CU_WAIT_FOR_RGU\n",$time);
|
// `LOGME"%d Control: CU_WAIT_FOR_RGU\n",$time);
|
// `endif
|
// `endif
|
|
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oUCodeInstructioPointer <= 0;
|
oCodeInstructioPointer <= 0;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oUCodeEnable <= 0;
|
oUCodeEnable <= 0;
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 443... |
Line 439... |
|
|
`ifdef DEBUG
|
`ifdef DEBUG
|
`LOGME"%d Control: CU_ACK_RGU\n",$time);
|
`LOGME"%d Control: CU_ACK_RGU\n",$time);
|
`endif
|
`endif
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oUCodeInstructioPointer <= 0;
|
oCodeInstructioPointer <= 0;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oUCodeEnable <= 0; //*
|
oUCodeEnable <= 0; //*
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 468... |
Line 464... |
`ifdef DEBUG
|
`ifdef DEBUG
|
`LOGME"%d Control: CU_TRIGGER_GEO\n",$time);
|
`LOGME"%d Control: CU_TRIGGER_GEO\n",$time);
|
`endif
|
`endif
|
|
|
oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
oUCodeInstructioPointer <= 0;
|
oCodeInstructioPointer <= 0;
|
oUCodeEnable <= 0;
|
oUCodeEnable <= 0;
|
oGFUEnable <= 1;
|
oGFUEnable <= 1;
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 1; //*
|
rResetHitFlop <= 1; //*
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 490... |
Line 486... |
`ifdef DEBUG
|
`ifdef DEBUG
|
`LOGME"%d Control: CU_WAIT_FOR_GEO_SYNC\n",$time);
|
`LOGME"%d Control: CU_WAIT_FOR_GEO_SYNC\n",$time);
|
`endif
|
`endif
|
|
|
oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
oUCodeInstructioPointer <= 0;
|
oCodeInstructioPointer <= 0;
|
oUCodeEnable <= 0;
|
oUCodeEnable <= 0;
|
oGFUEnable <= 0; //Change AUg 15
|
oGFUEnable <= 0; //Change AUg 15
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 521... |
Line 517... |
`ifdef DEBUG
|
`ifdef DEBUG
|
`LOGME"%d Control: CU_TRIGGER_TCC\n",$time);
|
`LOGME"%d Control: CU_TRIGGER_TCC\n",$time);
|
`endif
|
`endif
|
|
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oUCodeInstructioPointer <= `TCC_UCODE_ADDRESS;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_TCC;
|
oUCodeEnable <= 1; //*
|
oUCodeEnable <= 1; //*
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 539... |
Line 535... |
`WAIT_FOR_TCC:
|
`WAIT_FOR_TCC:
|
begin
|
begin
|
|
|
//$display("WAIT_FOR_TCC");
|
//$display("WAIT_FOR_TCC");
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oUCodeInstructioPointer <= `TCC_UCODE_ADDRESS;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_TCC;
|
oUCodeEnable <= 0; //*
|
oUCodeEnable <= 0; //*
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 576... |
Line 572... |
`ifdef DEBUG
|
`ifdef DEBUG
|
`LOGME"%d Control: CU_CHECK_HIT\n",$time);
|
`LOGME"%d Control: CU_CHECK_HIT\n",$time);
|
`endif
|
`endif
|
|
|
oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
oUCodeInstructioPointer <= 0;
|
oCodeInstructioPointer <= 0;
|
oUCodeEnable <= 0;
|
oUCodeEnable <= 0;
|
oGFUEnable <= 0; ///CHANGED Aug 15
|
oGFUEnable <= 0; ///CHANGED Aug 15
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 609... |
Line 605... |
`endif
|
`endif
|
|
|
//$display("CU_TRIGGER_TFF");
|
//$display("CU_TRIGGER_TFF");
|
|
|
oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
oUCodeInstructioPointer <= 0;
|
oCodeInstructioPointer <= 0;
|
oUCodeEnable <= 0;
|
oUCodeEnable <= 0;
|
oGFUEnable <= 1;
|
oGFUEnable <= 1;
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 626... |
Line 622... |
//-----------------------------------------
|
//-----------------------------------------
|
`CU_WAIT_FOR_TFF:
|
`CU_WAIT_FOR_TFF:
|
begin
|
begin
|
|
|
oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
oUCodeInstructioPointer <= 0;
|
oCodeInstructioPointer <= 0;
|
oUCodeEnable <= 0;
|
oUCodeEnable <= 0;
|
oGFUEnable <= 0; //Changed Aug 14
|
oGFUEnable <= 0; //Changed Aug 14
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 651... |
Line 647... |
`ifdef DEBUG
|
`ifdef DEBUG
|
`LOGME"%d Control: CU_TRIGGER_PSU_WITH_TEXTURE\n",$time);
|
`LOGME"%d Control: CU_TRIGGER_PSU_WITH_TEXTURE\n",$time);
|
`endif
|
`endif
|
|
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oUCodeInstructioPointer <= `PSU_UCODE_ADRESS2;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_PSU2;
|
oUCodeEnable <= 1;
|
oUCodeEnable <= 1;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 671... |
Line 667... |
|
|
`ifdef DEBUG
|
`ifdef DEBUG
|
`LOGME"%d Control: CU_TRIGGER_AABBIU\n",$time);
|
`LOGME"%d Control: CU_TRIGGER_AABBIU\n",$time);
|
`endif
|
`endif
|
// $stop();
|
// $stop();
|
oRamBusOwner <= wAABBIUAddress;//`REG_BUS_OWNED_BY_UCODE;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
|
|
oUCodeInstructioPointer <=`AABBIU_UCODE_ADDRESS;
|
oCodeInstructioPointer <=`ENTRYPOINT_INDEX_AABBIU;
|
oUCodeEnable <= 1;
|
oUCodeEnable <= 1;
|
oGFUEnable <= 1;
|
oGFUEnable <= 1;
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 698... |
Line 694... |
|
|
|
|
// $display("iUCodeDone",iUCodeDone);
|
// $display("iUCodeDone",iUCodeDone);
|
|
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oUCodeInstructioPointer <= `AABBIU_UCODE_ADDRESS;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_AABBIU;
|
oUCodeEnable <= 0;
|
oUCodeEnable <= 0;
|
oGFUEnable <= 1;
|
oGFUEnable <= 1;
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 725... |
Line 721... |
`ifdef DEBUG
|
`ifdef DEBUG
|
`LOGME"%d Control: CU_TRIGGER_BIU\n",$time);
|
`LOGME"%d Control: CU_TRIGGER_BIU\n",$time);
|
`endif
|
`endif
|
|
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oUCodeInstructioPointer <= `BIU_UCODE_ADDRESS;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_BIU;
|
oUCodeEnable <= 1;
|
oUCodeEnable <= 1;
|
oGFUEnable <= 1;
|
oGFUEnable <= 1;
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;//1;
|
rResetHitFlop <= 0;//1;
|
rHitFlopEnable <= 1;
|
rHitFlopEnable <= 1;
|
Line 747... |
Line 743... |
// `ifdef DEBUG
|
// `ifdef DEBUG
|
// `LOGME"%d Control: CU_WAIT_FOR_BIU\n",$time);
|
// `LOGME"%d Control: CU_WAIT_FOR_BIU\n",$time);
|
// `endif
|
// `endif
|
|
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oUCodeInstructioPointer <= `BIU_UCODE_ADDRESS;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_BIU;
|
oUCodeEnable <= 0;
|
oUCodeEnable <= 0;
|
oGFUEnable <= 1;
|
oGFUEnable <= 1;
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 1;
|
rHitFlopEnable <= 1;
|
Line 773... |
Line 769... |
`ifdef DEBUG
|
`ifdef DEBUG
|
`LOGME"%d Control: CU_ACK_UCODE\n",$time);
|
`LOGME"%d Control: CU_ACK_UCODE\n",$time);
|
`endif
|
`endif
|
|
|
oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
oUCodeInstructioPointer <= 0; //*
|
oCodeInstructioPointer <= 0; //*
|
oUCodeEnable <= 0; //*
|
oUCodeEnable <= 0; //*
|
oGFUEnable <= 0; //Changed Aug 15
|
oGFUEnable <= 0; //Changed Aug 15
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 801... |
Line 797... |
`ifdef DEBUG
|
`ifdef DEBUG
|
`LOGME"%d Control: CU_TRIGGER_PSU\n",$time);
|
`LOGME"%d Control: CU_TRIGGER_PSU\n",$time);
|
`endif
|
`endif
|
|
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oUCodeInstructioPointer <= `PSU_UCODE_ADRESS;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_PSU;
|
oUCodeEnable <= 1;
|
oUCodeEnable <= 1;
|
oGFUEnable <= 0;//*
|
oGFUEnable <= 0;//*
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 823... |
Line 819... |
// `ifdef DEBUG
|
// `ifdef DEBUG
|
// `LOGME"%d Control: CU_TRIGGER_PSU\n",$time);
|
// `LOGME"%d Control: CU_TRIGGER_PSU\n",$time);
|
// `endif
|
// `endif
|
|
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oUCodeInstructioPointer <= `PSU_UCODE_ADRESS;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_PSU;
|
oUCodeEnable <= 0;
|
oUCodeEnable <= 0;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 848... |
Line 844... |
`ifdef DEBUG
|
`ifdef DEBUG
|
`LOGME"%d Control: CU_ACK_PSU\n",$time);
|
`LOGME"%d Control: CU_ACK_PSU\n",$time);
|
`endif
|
`endif
|
|
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oUCodeInstructioPointer <= 0; //*
|
oCodeInstructioPointer <= 0; //*
|
oUCodeEnable <= 0; //*
|
oUCodeEnable <= 0; //*
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 877... |
Line 873... |
`ifdef DEBUG
|
`ifdef DEBUG
|
`LOGME"%d Control: CU_TRIGGER_PCU\n",$time);
|
`LOGME"%d Control: CU_TRIGGER_PCU\n",$time);
|
`endif
|
`endif
|
|
|
oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
oUCodeInstructioPointer <= 0; //*
|
oCodeInstructioPointer <= 0; //*
|
oUCodeEnable <= 0; //*
|
oUCodeEnable <= 0; //*
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oIOWritePixel <= 1; //*
|
oIOWritePixel <= 1; //*
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 895... |
Line 891... |
end
|
end
|
//-----------------------------------------
|
//-----------------------------------------
|
`CU_SET_PICTH:
|
`CU_SET_PICTH:
|
begin
|
begin
|
oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
oUCodeInstructioPointer <= 0; //*
|
oCodeInstructioPointer <= 0; //*
|
oUCodeEnable <= 0; //*
|
oUCodeEnable <= 0; //*
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oIOWritePixel <= 1; //*
|
oIOWritePixel <= 1; //*
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 917... |
Line 913... |
// `ifdef DEBUG
|
// `ifdef DEBUG
|
// `LOGME"%d Control: CU_WAIT_FOR_PCU\n",$time);
|
// `LOGME"%d Control: CU_WAIT_FOR_PCU\n",$time);
|
// `endif
|
// `endif
|
|
|
oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
oUCodeInstructioPointer <= 0; //*
|
oCodeInstructioPointer <= 0; //*
|
oUCodeEnable <= 0; //*
|
oUCodeEnable <= 0; //*
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oIOWritePixel <= 1;
|
oIOWritePixel <= 1;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 941... |
Line 937... |
|
|
`ifdef DEBUG
|
`ifdef DEBUG
|
`LOGME"%d Control: CU_ACK_PCU\n",$time);
|
`LOGME"%d Control: CU_ACK_PCU\n",$time);
|
`endif
|
`endif
|
oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
oUCodeInstructioPointer <= 0; //*
|
oCodeInstructioPointer <= 0; //*
|
oUCodeEnable <= 0; //*
|
oUCodeEnable <= 0; //*
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 961... |
Line 957... |
begin
|
begin
|
`ifdef DEBUG
|
`ifdef DEBUG
|
`LOGME"%d Control: CU_TRIGGER_NPU\n",$time);
|
`LOGME"%d Control: CU_TRIGGER_NPU\n",$time);
|
`endif
|
`endif
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oUCodeInstructioPointer <= `NPG_UCODE_ADDRESS; //*
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_NPG; //*
|
oUCodeEnable <= 1; //*
|
oUCodeEnable <= 1; //*
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 977... |
Line 973... |
end
|
end
|
//-----------------------------------------
|
//-----------------------------------------
|
`CU_WAIT_NPU:
|
`CU_WAIT_NPU:
|
begin
|
begin
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oUCodeInstructioPointer <= `NPG_UCODE_ADDRESS;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_NPG;
|
oUCodeEnable <= 0;
|
oUCodeEnable <= 0;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 1000... |
Line 996... |
`ifdef DEBUG
|
`ifdef DEBUG
|
`LOGME"%d Control: CU_ACK_PSU\n",$time);
|
`LOGME"%d Control: CU_ACK_PSU\n",$time);
|
`endif
|
`endif
|
|
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oUCodeInstructioPointer <= 0; //*
|
oCodeInstructioPointer <= 0; //*
|
oUCodeEnable <= 0; //*
|
oUCodeEnable <= 0; //*
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|
Line 1026... |
Line 1022... |
`ifdef DEBUG
|
`ifdef DEBUG
|
`LOGME"%d Control: ERRO Undefined State\n",$time);
|
`LOGME"%d Control: ERRO Undefined State\n",$time);
|
`endif
|
`endif
|
|
|
oRamBusOwner <= 0;
|
oRamBusOwner <= 0;
|
oUCodeInstructioPointer <= 0;
|
oCodeInstructioPointer <= 0;
|
oUCodeEnable <= 0;
|
oUCodeEnable <= 0;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oIOWritePixel <= 0;
|
oIOWritePixel <= 0;
|
rResetHitFlop <= 0;
|
rResetHitFlop <= 0;
|
rHitFlopEnable <= 0;
|
rHitFlopEnable <= 0;
|