| 1 | // ========== Copyright Header Begin ========================================== |
| 2 | // |
| 3 | // OpenSPARC T2 Processor File: fc_modes_tasks.v |
| 4 | // Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved |
| 5 | // 4150 Network Circle, Santa Clara, California 95054, U.S.A. |
| 6 | // |
| 7 | // * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
| 8 | // |
| 9 | // This program is free software; you can redistribute it and/or modify |
| 10 | // it under the terms of the GNU General Public License as published by |
| 11 | // the Free Software Foundation; version 2 of the License. |
| 12 | // |
| 13 | // This program is distributed in the hope that it will be useful, |
| 14 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | // GNU General Public License for more details. |
| 17 | // |
| 18 | // You should have received a copy of the GNU General Public License |
| 19 | // along with this program; if not, write to the Free Software |
| 20 | // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 21 | // |
| 22 | // For the avoidance of doubt, and except that if any non-GPL license |
| 23 | // choice is available it will apply instead, Sun elects to use only |
| 24 | // the General Public License version 2 (GPLv2) at this time for any |
| 25 | // software where a choice of GPL license versions is made |
| 26 | // available with the language indicating that GPLv2 or any later version |
| 27 | // may be used, or where a choice of which version of the GPL is applied is |
| 28 | // otherwise unspecified. |
| 29 | // |
| 30 | // Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
| 31 | // CA 95054 USA or visit www.sun.com if you need additional information or |
| 32 | // have any questions. |
| 33 | // |
| 34 | // ========== Copyright Header End ============================================ |
| 35 | reg [2:0] force_ncu_sck_cntr_value; |
| 36 | |
| 37 | //set intial values for all regs |
| 38 | initial begin |
| 39 | force_ncu_sck_cntr_value = 3'bzzz; |
| 40 | end |
| 41 | |
| 42 | initial |
| 43 | begin |
| 44 | if ($test$plusargs("SSI_CLK_4")) begin |
| 45 | `ifdef NCU_GATE |
| 46 | |
| 47 | `ifdef SLAM_VECTORS |
| 48 | #10; |
| 49 | @(negedge `NCU.rst_wmr_protect); |
| 50 | force {`NCU.ncu_ssitop_ctl__ncu_ssisif_ctl_cntr_2_, `NCU.ncu_ssitop_ctl__ncu_ssisif_ctl_cntr_1_, `NCU.ncu_ssitop_ctl__ncu_ssisif_ctl_cntr_0_} = 3'b111; |
| 51 | force `NCU.ncu_ssitop_ctl__ncu_ssisif_ctl_ctu_jbi_ssiclk_ff = 1'b1; |
| 52 | @(posedge `NCU.ca1_l1clkhdr__iol2clk__col_3__vdd__tcu_scan_en__vss__grp_1_30__l1clk); |
| 53 | release {`NCU.ncu_ssitop_ctl__ncu_ssisif_ctl_cntr_2_, `NCU.ncu_ssitop_ctl__ncu_ssisif_ctl_cntr_1_, `NCU.ncu_ssitop_ctl__ncu_ssisif_ctl_cntr_0_}; |
| 54 | release `NCU.ncu_ssitop_ctl__ncu_ssisif_ctl_ctu_jbi_ssiclk_ff; |
| 55 | @(posedge `NCU.ca1_l1clkhdr__iol2clk__col_3__vdd__tcu_scan_en__vss__grp_1_30__l1clk); |
| 56 | `endif // SLAM_VECTORS |
| 57 | force `TOP.cpu.ncu.ncu_scksel = 2'b01; |
| 58 | |
| 59 | `else // NCU_GATE |
| 60 | |
| 61 | `ifdef SLAM_VECTORS |
| 62 | #10; |
| 63 | @(negedge `NCU.rst_wmr_protect); |
| 64 | if($test$plusargs("OLD_BRUTE_FORCE")) begin |
| 65 | force `NCU.ncu_ssitop_ctl.ncu_ssisif_ctl.cntr = 3'b111; |
| 66 | force `NCU.ncu_ssitop_ctl.ncu_ssisif_ctl.ctu_jbi_ssiclk_ff = 1'b1; |
| 67 | end |
| 68 | if($value$plusargs("FORCE_NCU_SCK_CNTR=%d", force_ncu_sck_cntr_value)) begin |
| 69 | force `NCU.ncu_ssitop_ctl.ncu_ssisif_ctl.cntr = force_ncu_sck_cntr_value; |
| 70 | force `NCU.ncu_ssitop_ctl.ncu_ssisif_ctl.ctu_jbi_ssiclk_ff = 1'b1; |
| 71 | end |
| 72 | else begin |
| 73 | force `NCU.ncu_ssitop_ctl.ncu_ssisif_ctl.cntr = 3'b110; |
| 74 | force `NCU.ncu_ssitop_ctl.ncu_ssisif_ctl.ctu_jbi_ssiclk_ff = 1'b1; |
| 75 | end |
| 76 | @(posedge `NCU.ncu_ssitop_ctl.ncu_ssisif_ctl.l1clk); |
| 77 | release `NCU.ncu_ssitop_ctl.ncu_ssisif_ctl.cntr; |
| 78 | release `NCU.ncu_ssitop_ctl.ncu_ssisif_ctl.ctu_jbi_ssiclk_ff; |
| 79 | @(posedge `NCU.ncu_ssitop_ctl.ncu_ssisif_ctl.l1clk); |
| 80 | `endif // SLAM_VECTORS |
| 81 | force `NCU.ncu_ssitop_ctl.ncu_scksel = 2'b01; |
| 82 | |
| 83 | `endif // NCU_GATE |
| 84 | |
| 85 | end // if |
| 86 | end // initial |
| 87 | |