at_latch56.v 2.17 KB
/**************************************************************************
 *                                                                        *
 *               Copyright (C) 1994, Silicon Graphics, Inc.               *
 *                                                                        *
 *  These coded instructions, statements, and computer programs  contain  *
 *  unpublished  proprietary  information of Silicon Graphics, Inc., and  *
 *  are protected by Federal copyright  law.  They  may not be disclosed  *
 *  to  third  parties  or copied or duplicated in any form, in whole or  *
 *  in part, without the prior written consent of Silicon Graphics, Inc.  *
 *                                                                        *
 *************************************************************************/

// $Id: at_latch56.v,v 1.1.1.1 2002/05/17 06:14:57 blythe Exp $

////////////////////////////////////////////////////////////////////////
//
// Project Reality
//
// module:      at_latch56
// description: Latches for attribute buffers.
//
// designer:    Phil Gossett
// date:        9/5/94
//
////////////////////////////////////////////////////////////////////////

module at_latch56(clk, g, i, z);

input clk;
input g;
input [55:0] i;

output [55:0] z;

wire [7:0] d_0, d_1, d_2, d_3, d_4, d_5, d_6;
wire [7:0] q_0, q_1, q_2, q_3, q_4, q_5, q_6;
wire e_0, e_1, e_2, e_3, e_4, e_5, e_6;
wire gn;

assign {d_6, d_5, d_4, d_3, d_2, d_1, d_0} = i;
assign z = {q_6, q_5, q_4, q_3, q_2, q_1, q_0};

in01d2 in_0(.i(g), .zn(gn));

nr02d2 nr_0(.a1(clk), .a2(gn), .zn(e_0));
nr02d2 nr_1(.a1(clk), .a2(gn), .zn(e_1));
nr02d2 nr_2(.a1(clk), .a2(gn), .zn(e_2));
nr02d2 nr_3(.a1(clk), .a2(gn), .zn(e_3));
nr02d2 nr_4(.a1(clk), .a2(gn), .zn(e_4));
nr02d2 nr_5(.a1(clk), .a2(gn), .zn(e_5));
nr02d2 nr_6(.a1(clk), .a2(gn), .zn(e_6));

at_latch_h #(8) l_0(.e(e_0), .d(d_0), .q(q_0));
at_latch_h #(8) l_1(.e(e_1), .d(d_1), .q(q_1));
at_latch_h #(8) l_2(.e(e_2), .d(d_2), .q(q_2));
at_latch_h #(8) l_3(.e(e_3), .d(d_3), .q(q_3));
at_latch_h #(8) l_4(.e(e_4), .d(d_4), .q(q_4));
at_latch_h #(8) l_5(.e(e_5), .d(d_5), .q(q_5));
at_latch_h #(8) l_6(.e(e_6), .d(d_6), .q(q_6));

endmodule // at_latch56