[6] | 1 | // ========== Copyright Header Begin ========================================== |
---|
| 2 | // |
---|
| 3 | // OpenSPARC T1 Processor File: synchronizer_asr.v |
---|
| 4 | // Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved. |
---|
| 5 | // DO NOT ALTER OR REMOVE COPYRIGHT NOTICES. |
---|
| 6 | // |
---|
| 7 | // The above named program is free software; you can redistribute it and/or |
---|
| 8 | // modify it under the terms of the GNU General Public |
---|
| 9 | // License version 2 as published by the Free Software Foundation. |
---|
| 10 | // |
---|
| 11 | // The above named program is distributed in the hope that it will be |
---|
| 12 | // useful, but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
| 14 | // General Public License for more details. |
---|
| 15 | // |
---|
| 16 | // You should have received a copy of the GNU General Public |
---|
| 17 | // License along with this work; if not, write to the Free Software |
---|
| 18 | // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
| 19 | // |
---|
| 20 | // ========== Copyright Header End ============================================ |
---|
| 21 | module synchronizer_asr (/*AUTOARG*/ |
---|
| 22 | // Outputs |
---|
| 23 | sync_out, so, |
---|
| 24 | // Inputs |
---|
| 25 | async_in, gclk, rclk, arst_l, si, se |
---|
| 26 | ); |
---|
| 27 | |
---|
| 28 | output sync_out; |
---|
| 29 | output so; |
---|
| 30 | |
---|
| 31 | input async_in; |
---|
| 32 | input gclk; |
---|
| 33 | input rclk; |
---|
| 34 | input arst_l; |
---|
| 35 | input si; |
---|
| 36 | input se; |
---|
| 37 | |
---|
| 38 | wire pre_sync_out; |
---|
| 39 | wire so_rptr; |
---|
| 40 | wire so_lockup; |
---|
| 41 | |
---|
| 42 | bw_u1_soffasr_2x repeater ( |
---|
| 43 | .q (pre_sync_out), |
---|
| 44 | .so (so_rptr), |
---|
| 45 | .ck (gclk), |
---|
| 46 | .d (async_in), |
---|
| 47 | .r_l (arst_l), |
---|
| 48 | .s_l (1'b1), |
---|
| 49 | .se (se), |
---|
| 50 | .sd (si) |
---|
| 51 | ); |
---|
| 52 | bw_u1_scanl_2x lockup ( |
---|
| 53 | .so (so_lockup), |
---|
| 54 | .sd (so_rptr), |
---|
| 55 | .ck (gclk) |
---|
| 56 | ); |
---|
| 57 | |
---|
| 58 | bw_u1_soffasr_2x syncff ( |
---|
| 59 | .q (sync_out), |
---|
| 60 | .so (so), |
---|
| 61 | .ck (rclk), |
---|
| 62 | .d (pre_sync_out), |
---|
| 63 | .r_l (arst_l), |
---|
| 64 | .s_l (1'b1), |
---|
| 65 | .se (se), |
---|
| 66 | .sd (so_lockup) |
---|
| 67 | ); |
---|
| 68 | |
---|
| 69 | endmodule // synchronizer_asr |
---|