Line 154... |
Line 154... |
//--------------------------------------------------------------
|
//--------------------------------------------------------------
|
|
|
`ifdef DEBUG_CU
|
`ifdef DEBUG_CU
|
always @ ( wHit )
|
always @ ( wHit )
|
begin
|
begin
|
`LOGME "*** Triangle HIT ***\n");
|
$display( "*** Triangle HIT ***\n");
|
end
|
end
|
`endif
|
`endif
|
|
|
//Next states logic and Reset sequence
|
//Next states logic and Reset sequence
|
always @(posedge Clock or posedge Reset)
|
always @(posedge Clock or posedge Reset)
|
Line 178... |
Line 178... |
//-----------------------------------------
|
//-----------------------------------------
|
`CU_AFTER_RESET_STATE:
|
`CU_AFTER_RESET_STATE:
|
begin
|
begin
|
|
|
`ifdef DEBUG_CU
|
`ifdef DEBUG_CU
|
`LOGME"%d CU_AFTER_RESET_STATE\n",$time);
|
$display("%d CU_AFTER_RESET_STATE\n",$time);
|
`endif
|
`endif
|
|
|
//oRamBusOwner <= 0;
|
//oRamBusOwner <= 0;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_INITIAL;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_INITIAL;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
Line 205... |
Line 205... |
|
|
`CU_WAIT_FOR_INITIAL_CONFIGURATION:
|
`CU_WAIT_FOR_INITIAL_CONFIGURATION:
|
begin
|
begin
|
//$display("CORE: %d CU_WAIT_FOR_INITIAL_CONFIGURATION", iDebug_CoreID);
|
//$display("CORE: %d CU_WAIT_FOR_INITIAL_CONFIGURATION", iDebug_CoreID);
|
// `ifdef DEBUG_CU
|
// `ifdef DEBUG_CU
|
// `LOGME"%d Control: CU_WAIT_FOR_INITIAL_CONFIGURATION\n",$time);
|
// $display("%d Control: CU_WAIT_FOR_INITIAL_CONFIGURATION\n",$time);
|
// `endif
|
// `endif
|
|
|
//oRamBusOwner <= 0;
|
//oRamBusOwner <= 0;
|
oCodeInstructioPointer <= 0;
|
oCodeInstructioPointer <= 0;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
Line 261... |
Line 261... |
//-----------------------------------------
|
//-----------------------------------------
|
`CU_CLEAR_REGISTERS:
|
`CU_CLEAR_REGISTERS:
|
begin
|
begin
|
//$display("CORE: %d CU_CLEAR_REGISTERS", iDebug_CoreID);
|
//$display("CORE: %d CU_CLEAR_REGISTERS", iDebug_CoreID);
|
`ifdef DEBUG_CU
|
`ifdef DEBUG_CU
|
`LOGME"%d CU_CLEAR_REGISTERS\n",$time);
|
$display("%d CU_CLEAR_REGISTERS\n",$time);
|
`endif
|
`endif
|
|
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_INITIAL;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_INITIAL;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
Line 287... |
Line 287... |
end
|
end
|
//-----------------------------------------
|
//-----------------------------------------
|
`CU_WAIT_CLEAR_REGISTERS:
|
`CU_WAIT_CLEAR_REGISTERS:
|
begin
|
begin
|
// `ifdef DEBUG_CU
|
// `ifdef DEBUG_CU
|
// `LOGME"%d CU_WAIT_CLEAR_REGISTERS\n",$time);
|
// $display("%d CU_WAIT_CLEAR_REGISTERS\n",$time);
|
// `endif
|
// `endif
|
//$display("CORE: %d CU_WAIT_CLEAR_REGISTERS", iDebug_CoreID);
|
//$display("CORE: %d CU_WAIT_CLEAR_REGISTERS", iDebug_CoreID);
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_INITIAL;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_INITIAL;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
Line 316... |
Line 316... |
//-----------------------------------------
|
//-----------------------------------------
|
`CU_ACK_CLEAR_REGISTERS:
|
`CU_ACK_CLEAR_REGISTERS:
|
begin
|
begin
|
|
|
`ifdef DEBUG_CU
|
`ifdef DEBUG_CU
|
`LOGME"%d CU_ACK_CLEAR_REGISTERS\n", $time);
|
$display("%d CU_ACK_CLEAR_REGISTERS\n", $time);
|
`endif
|
`endif
|
|
|
//$display("CORE: %d CU_ACK_CLEAR_REGISTERS", iDebug_CoreID);
|
//$display("CORE: %d CU_ACK_CLEAR_REGISTERS", iDebug_CoreID);
|
|
|
//oRamBusOwner <= 0;
|
//oRamBusOwner <= 0;
|
Line 346... |
Line 346... |
//-----------------------------------------
|
//-----------------------------------------
|
`CU_WAIT_FOR_CONFIG_DATA_READ:
|
`CU_WAIT_FOR_CONFIG_DATA_READ:
|
begin
|
begin
|
|
|
// `ifdef DEBUG_CU
|
// `ifdef DEBUG_CU
|
// `LOGME"%d Control: CU_WAIT_FOR_CONFIG_DATA_READ\n",$time);
|
// $display("%d Control: CU_WAIT_FOR_CONFIG_DATA_READ\n",$time);
|
// `endif
|
// `endif
|
|
|
|
|
//$display("CORE: %d CU_WAIT_FOR_CONFIG_DATA_READ", iDebug_CoreID);
|
//$display("CORE: %d CU_WAIT_FOR_CONFIG_DATA_READ", iDebug_CoreID);
|
|
|
Line 378... |
Line 378... |
//-----------------------------------------
|
//-----------------------------------------
|
`CU_PRECALCULATE_CONSTANTS:
|
`CU_PRECALCULATE_CONSTANTS:
|
begin
|
begin
|
//$display("CORE: %d CU_PRECALCULATE_CONSTANTS", iDebug_CoreID);
|
//$display("CORE: %d CU_PRECALCULATE_CONSTANTS", iDebug_CoreID);
|
`ifdef DEBUG_CU
|
`ifdef DEBUG_CU
|
`LOGME"%d Control: CU_PRECALCULATE_CONSTANTS\n", $time);
|
$display("%d Control: CU_PRECALCULATE_CONSTANTS\n", $time);
|
`endif
|
`endif
|
|
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_CPPU;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_CPPU;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
Line 403... |
Line 403... |
end
|
end
|
//-----------------------------------------
|
//-----------------------------------------
|
`CU_WAIT_FOR_CONSTANT:
|
`CU_WAIT_FOR_CONSTANT:
|
begin
|
begin
|
// `ifdef DEBUG_CU
|
// `ifdef DEBUG_CU
|
// `LOGME"%d Control: CU_WAIT_FOR_CONSTANT\n", $time);
|
// $display("%d Control: CU_WAIT_FOR_CONSTANT\n", $time);
|
// `endif
|
// `endif
|
|
|
|
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_CPPU;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_CPPU;
|
Line 433... |
Line 433... |
//-----------------------------------------
|
//-----------------------------------------
|
`CU_ACK_PRECALCULATE_CONSTANTS:
|
`CU_ACK_PRECALCULATE_CONSTANTS:
|
begin
|
begin
|
//$display("CORE: %d CU_ACK_PRECALCULATE_CONSTANTS", iDebug_CoreID);
|
//$display("CORE: %d CU_ACK_PRECALCULATE_CONSTANTS", iDebug_CoreID);
|
`ifdef DEBUG_CU
|
`ifdef DEBUG_CU
|
`LOGME"%d Control: CU_ACK_PRECALCULATE_CONSTANTS\n", $time);
|
$display("%d Control: CU_ACK_PRECALCULATE_CONSTANTS\n", $time);
|
`endif
|
`endif
|
|
|
|
|
//oRamBusOwner <= 0;//`REG_BUS_OWNED_BY_BCU;
|
//oRamBusOwner <= 0;//`REG_BUS_OWNED_BY_BCU;
|
oCodeInstructioPointer <= 0;
|
oCodeInstructioPointer <= 0;
|
Line 460... |
Line 460... |
//-----------------------------------------
|
//-----------------------------------------
|
|
|
`CU_TRIGGER_USERCONSTANTS:
|
`CU_TRIGGER_USERCONSTANTS:
|
begin
|
begin
|
`ifdef DEBUG_CU
|
`ifdef DEBUG_CU
|
`LOGME"%d Control: CU_TRIGGER_USERCONSTANTS\n",$time);
|
$display("%d Control: CU_TRIGGER_USERCONSTANTS\n",$time);
|
`endif
|
`endif
|
|
|
//$display("CORE: %d CU_TRIGGER_USERCONSTANTS", iDebug_CoreID);
|
//$display("CORE: %d CU_TRIGGER_USERCONSTANTS", iDebug_CoreID);
|
|
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
Line 487... |
Line 487... |
//-----------------------------------------
|
//-----------------------------------------
|
`CU_WAIT_USERCONSTANTS:
|
`CU_WAIT_USERCONSTANTS:
|
begin
|
begin
|
|
|
// `ifdef DEBUG_CU
|
// `ifdef DEBUG_CU
|
// `LOGME"%d Control: CU_WAIT_FOR_RGU\n",$time);
|
// $display("%d Control: CU_WAIT_FOR_RGU\n",$time);
|
// `endif
|
// `endif
|
|
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_USERCONSTANTS;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_USERCONSTANTS;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
Line 515... |
Line 515... |
//-----------------------------------------
|
//-----------------------------------------
|
`CU_ACK_USERCONSTANTS:
|
`CU_ACK_USERCONSTANTS:
|
begin
|
begin
|
|
|
`ifdef DEBUG_CU
|
`ifdef DEBUG_CU
|
`LOGME"%d Control: CU_ACK_RGU\n",$time);
|
$display("%d Control: CU_ACK_RGU\n",$time);
|
`endif
|
`endif
|
|
|
//$display("CORE: %d CU_ACK_USERCONSTANTS", iDebug_CoreID);
|
//$display("CORE: %d CU_ACK_USERCONSTANTS", iDebug_CoreID);
|
|
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
Line 572... |
Line 572... |
//-----------------------------------------
|
//-----------------------------------------
|
`CU_TRIGGER_RGU:
|
`CU_TRIGGER_RGU:
|
begin
|
begin
|
|
|
`ifdef DEBUG_CU
|
`ifdef DEBUG_CU
|
`LOGME"CORE: %d CU_TRIGGER_RGU", iDebug_CoreID);
|
$display("CORE: %d CU_TRIGGER_RGU", iDebug_CoreID);
|
`endif
|
`endif
|
|
|
|
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_RGU;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_RGU;
|
Line 598... |
Line 598... |
//-----------------------------------------
|
//-----------------------------------------
|
`CU_WAIT_FOR_RGU:
|
`CU_WAIT_FOR_RGU:
|
begin
|
begin
|
|
|
// `ifdef DEBUG_CU
|
// `ifdef DEBUG_CU
|
// `LOGME"%d Control: CU_WAIT_FOR_RGU\n",$time);
|
// $display("%d Control: CU_WAIT_FOR_RGU\n",$time);
|
// `endif
|
// `endif
|
|
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oCodeInstructioPointer <= 0;
|
oCodeInstructioPointer <= 0;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
Line 626... |
Line 626... |
//-----------------------------------------
|
//-----------------------------------------
|
`CU_ACK_RGU:
|
`CU_ACK_RGU:
|
begin
|
begin
|
|
|
`ifdef DEBUG_CU
|
`ifdef DEBUG_CU
|
`LOGME"CORE: %d CU_ACK_RGU", iDebug_CoreID);
|
$display("CORE: %d CU_ACK_RGU", iDebug_CoreID);
|
`endif
|
`endif
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oCodeInstructioPointer <= 0;
|
oCodeInstructioPointer <= 0;
|
oGFUEnable <= 0;
|
oGFUEnable <= 0;
|
oUCodeEnable <= 0; //*
|
oUCodeEnable <= 0; //*
|
Line 654... |
Line 654... |
//-----------------------------------------
|
//-----------------------------------------
|
`CU_TRIGGER_TCC:
|
`CU_TRIGGER_TCC:
|
begin
|
begin
|
////$display("CU_TRIGGER_TCC");
|
////$display("CU_TRIGGER_TCC");
|
`ifdef DEBUG_CU
|
`ifdef DEBUG_CU
|
`LOGME"%d CORE %d Control: CU_TRIGGER_TCC\n",$time,iDebug_CoreID);
|
$display("%d CORE %d Control: CU_TRIGGER_TCC\n",$time,iDebug_CoreID);
|
`endif
|
`endif
|
|
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_TCC;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_TCC;
|
oUCodeEnable <= 1; //*
|
oUCodeEnable <= 1; //*
|
Line 746... |
Line 746... |
*/
|
*/
|
`CU_CHECK_HIT:
|
`CU_CHECK_HIT:
|
begin
|
begin
|
|
|
`ifdef DEBUG_CU
|
`ifdef DEBUG_CU
|
`LOGME"%d CORE %d Control: CU_CHECK_HIT\n",$time,iDebug_CoreID);
|
$display("%d CORE %d Control: CU_CHECK_HIT\n",$time,iDebug_CoreID);
|
`endif
|
`endif
|
|
|
|
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
oCodeInstructioPointer <= 0;
|
oCodeInstructioPointer <= 0;
|
Line 781... |
Line 781... |
//-----------------------------------------
|
//-----------------------------------------
|
`CU_TRIGGER_PSU_WITH_TEXTURE:
|
`CU_TRIGGER_PSU_WITH_TEXTURE:
|
begin
|
begin
|
|
|
`ifdef DEBUG_CU
|
`ifdef DEBUG_CU
|
`LOGME"%d Control: CU_TRIGGER_PSU_WITH_TEXTURE\n",$time);
|
$display("%d Control: CU_TRIGGER_PSU_WITH_TEXTURE\n",$time);
|
`endif
|
`endif
|
|
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_PSU2;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_PSU2;
|
oUCodeEnable <= 1;
|
oUCodeEnable <= 1;
|
Line 831... |
Line 831... |
end
|
end
|
//-----------------------------------------
|
//-----------------------------------------
|
`CU_TRIGGER_MAIN:
|
`CU_TRIGGER_MAIN:
|
begin
|
begin
|
`ifdef DEBUG_CU
|
`ifdef DEBUG_CU
|
`LOGME"%d CORE: %d Control: CU_TRIGGER_MAIN\n",$time,iDebug_CoreID);
|
$display("%d CORE: %d Control: CU_TRIGGER_MAIN\n",$time,iDebug_CoreID);
|
`endif
|
`endif
|
|
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_MAIN;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_MAIN;
|
oUCodeEnable <= 1;
|
oUCodeEnable <= 1;
|
Line 858... |
Line 858... |
end
|
end
|
//-----------------------------------------
|
//-----------------------------------------
|
`CU_WAIT_FOR_MAIN:
|
`CU_WAIT_FOR_MAIN:
|
begin
|
begin
|
// `ifdef DEBUG_CU
|
// `ifdef DEBUG_CU
|
// `LOGME"%d Control: CU_WAIT_FOR_MAIN\n",$time);
|
// $display("%d Control: CU_WAIT_FOR_MAIN\n",$time);
|
// `endif
|
// `endif
|
|
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_MAIN;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_MAIN;
|
oUCodeEnable <= 0;
|
oUCodeEnable <= 0;
|
Line 892... |
Line 892... |
ACK UCODE by setting oUCodeEnable = 0
|
ACK UCODE by setting oUCodeEnable = 0
|
*/
|
*/
|
`CU_ACK_MAIN:
|
`CU_ACK_MAIN:
|
begin
|
begin
|
`ifdef DEBUG_CU
|
`ifdef DEBUG_CU
|
`LOGME"%d CORE: %d Control: CU_ACK_MAIN\n",$time, iDebug_CoreID);
|
$display("%d CORE: %d Control: CU_ACK_MAIN\n",$time, iDebug_CoreID);
|
`endif
|
`endif
|
|
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_GFU;
|
oCodeInstructioPointer <= 0; //*
|
oCodeInstructioPointer <= 0; //*
|
oUCodeEnable <= 0; //*
|
oUCodeEnable <= 0; //*
|
Line 927... |
Line 927... |
//-----------------------------------------
|
//-----------------------------------------
|
`CU_WAIT_FOR_PSU:
|
`CU_WAIT_FOR_PSU:
|
begin
|
begin
|
|
|
// `ifdef DEBUG_CU
|
// `ifdef DEBUG_CU
|
// `LOGME"%d Control: CU_TRIGGER_PSU\n",$time);
|
// $display("%d Control: CU_TRIGGER_PSU\n",$time);
|
// `endif
|
// `endif
|
|
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_PSU;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_PSU;
|
oUCodeEnable <= 0;
|
oUCodeEnable <= 0;
|
Line 956... |
Line 956... |
end
|
end
|
//-----------------------------------------
|
//-----------------------------------------
|
`CU_ACK_PSU:
|
`CU_ACK_PSU:
|
begin
|
begin
|
`ifdef DEBUG_CU
|
`ifdef DEBUG_CU
|
`LOGME"%d CORE: %d Control: CU_ACK_PSU\n",$time, iDebug_CoreID);
|
$display("%d CORE: %d Control: CU_ACK_PSU\n",$time, iDebug_CoreID);
|
`endif
|
`endif
|
|
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oCodeInstructioPointer <= 0; //*
|
oCodeInstructioPointer <= 0; //*
|
oUCodeEnable <= 0; //*
|
oUCodeEnable <= 0; //*
|
Line 987... |
Line 987... |
|
|
//-----------------------------------------
|
//-----------------------------------------
|
`CU_TRIGGER_NPU: //Next Pixel Unit
|
`CU_TRIGGER_NPU: //Next Pixel Unit
|
begin
|
begin
|
`ifdef DEBUG_CU
|
`ifdef DEBUG_CU
|
`LOGME"%d CORE: %d Control: CU_TRIGGER_NPU\n",$time, iDebug_CoreID);
|
$display("%d CORE: %d Control: CU_TRIGGER_NPU\n",$time, iDebug_CoreID);
|
`endif
|
`endif
|
$write("*");
|
$write("*");
|
|
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_NPG; //*
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_NPG; //*
|
Line 1040... |
Line 1040... |
more pixels so we are done we our picture!
|
more pixels so we are done we our picture!
|
*/
|
*/
|
`CU_ACK_NPU:
|
`CU_ACK_NPU:
|
begin
|
begin
|
`ifdef DEBUG_CU
|
`ifdef DEBUG_CU
|
`LOGME"%d CORE: %d Control: CU_ACK_NPU\n",$time, iDebug_CoreID);
|
$display("%d CORE: %d Control: CU_ACK_NPU\n",$time, iDebug_CoreID);
|
`endif
|
`endif
|
|
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oCodeInstructioPointer <= 0; //*
|
oCodeInstructioPointer <= 0; //*
|
oUCodeEnable <= 0; //*
|
oUCodeEnable <= 0; //*
|
Line 1096... |
Line 1096... |
Here we no longer use GFU so set Enable to zero
|
Here we no longer use GFU so set Enable to zero
|
*/
|
*/
|
`CU_TRIGGER_USERPIXELSHADER:
|
`CU_TRIGGER_USERPIXELSHADER:
|
begin
|
begin
|
`ifdef DEBUG_CU
|
`ifdef DEBUG_CU
|
`LOGME"%d Control: CU_TRIGGER_PSU\n",$time);
|
$display("%d Control: CU_TRIGGER_PSU\n",$time);
|
`endif
|
`endif
|
|
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_PIXELSHADER;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_PIXELSHADER;
|
oUCodeEnable <= 1;
|
oUCodeEnable <= 1;
|
Line 1122... |
Line 1122... |
//-----------------------------------------
|
//-----------------------------------------
|
`CU_WAIT_FOR_USERPIXELSHADER:
|
`CU_WAIT_FOR_USERPIXELSHADER:
|
begin
|
begin
|
|
|
// `ifdef DEBUG_CU
|
// `ifdef DEBUG_CU
|
// `LOGME"%d Control: CU_TRIGGER_PSU\n",$time);
|
// $display("%d Control: CU_TRIGGER_PSU\n",$time);
|
// `endif
|
// `endif
|
|
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_PIXELSHADER;
|
oCodeInstructioPointer <= `ENTRYPOINT_INDEX_PIXELSHADER;
|
oUCodeEnable <= 0;
|
oUCodeEnable <= 0;
|
Line 1151... |
Line 1151... |
end
|
end
|
//-----------------------------------------
|
//-----------------------------------------
|
`CU_ACK_USERPIXELSHADER:
|
`CU_ACK_USERPIXELSHADER:
|
begin
|
begin
|
`ifdef DEBUG_CU
|
`ifdef DEBUG_CU
|
`LOGME"%d Control: CU_ACK_PSU\n",$time);
|
$display("%d Control: CU_ACK_PSU\n",$time);
|
`endif
|
`endif
|
|
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
//oRamBusOwner <= `REG_BUS_OWNED_BY_UCODE;
|
oCodeInstructioPointer <= 0; //*
|
oCodeInstructioPointer <= 0; //*
|
oUCodeEnable <= 0; //*
|
oUCodeEnable <= 0; //*
|
Line 1181... |
Line 1181... |
//---------------------------------------------------
|
//---------------------------------------------------
|
default:
|
default:
|
begin
|
begin
|
|
|
`ifdef DEBUG_CU
|
`ifdef DEBUG_CU
|
`LOGME"%d Control: ERROR Undefined State\n",$time);
|
$display("%d Control: ERROR Undefined State\n",$time);
|
`endif
|
`endif
|
|
|
//oRamBusOwner <= 0;
|
//oRamBusOwner <= 0;
|
oCodeInstructioPointer <= 0;
|
oCodeInstructioPointer <= 0;
|
oUCodeEnable <= 0;
|
oUCodeEnable <= 0;
|