HierarchyFilesModulesSignalsTasksFunctionsHelp

/******************************************************************************/ 
/*                                                                            */ 
/* Copyright (c) 1999 Sun Microsystems, Inc. All rights reserved.             */ 
/*                                                                            */ 
/* The contents of this file are subject to the current version of the Sun    */ 
/* Community Source License, microSPARCII ("the License"). You may not use    */ 
/* this file except in compliance with the License.  You may obtain a copy    */ 
/* of the License by searching for "Sun Community Source License" on the      */ 
/* World Wide Web at http://www.sun.com. See the License for the rights,      */ 
/* obligations, and limitations governing use of the contents of this file.   */ 
/*                                                                            */ 
/* Sun Microsystems, Inc. has intellectual property rights relating to the    */ 
/* technology embodied in these files. In particular, and without limitation, */ 
/* these intellectual property rights may include one or more U.S. patents,   */ 
/* foreign patents, or pending applications.                                  */ 
/*                                                                            */ 
/* Sun, Sun Microsystems, the Sun logo, all Sun-based trademarks and logos,   */ 
/* Solaris, Java and all Java-based trademarks and logos are trademarks or    */ 
/* registered trademarks of Sun Microsystems, Inc. in the United States and   */ 
/* other countries. microSPARC is a trademark or registered trademark of      */ 
/* SPARC International, Inc. All SPARC trademarks are used under license and  */ 
/* are trademarks or registered trademarks of SPARC International, Inc. in    */ 
/* the United States and other countries. Products bearing SPARC trademarks   */ 
/* are based upon an architecture developed by Sun Microsystems, Inc.         */ 
/*                                                                            */ 
/******************************************************************************/ 
/***************************************************************************
****************************************************************************
***
***  Program File:  @(#)ff_primitives.v
***
****************************************************************************
****************************************************************************/

[Up: JDFFA g0][Up: ADFFRA g1][Up: ADFFRHA g4]
module fj_dff_e(q, d, clk);
output	q; 
input   d, clk;


        reg q;

         always @(posedge (clk)) begin
            	q <= #1 d;
        end

endmodule
 
module fj_dff_ec(q, d, clk, c);
output q; 
input  d, clk, c;

       reg  q;

	always @(posedge clk or posedge c) begin
		if (c)
	          	q <= #1 1'b0;
		else
                  	q <= #1 d;
        end
endmodule
 
module fj_dff_es(q, d, clk, s);
output q;
input  d, clk, s;
 
       reg q;

	always @(posedge clk or posedge s) begin
		if (s)
	           	q <= #1 1'b1;
		else
                   	q <= #1 d;
        end
endmodule
 
[Up: JSRFFA g2]
module fj_dff_ecs(q, d, clk, c, s);
output  q; 
input   d, clk, c, s;
 
        reg q;
	always @(posedge clk or posedge s or posedge c) begin
		if (c)
		  	q <= #1 1'b0;
		else if (s)
		  	q <= #1 1'b1;
		else
                   	q <= #1 d;
        end
endmodule
 
 

[Up: MSFFHA g4][Up: ASFFHA g4][Up: MSFFRA g1][Up: ASFFRA g1][Up: AMUXFFA g8][Up: AMUXFFA g17][Up: AMUXFFA g26][Up: AMUXFFA g35][Up: ASFFRHA g5][Up: MSFFRHA g5][Up: ASFFA g0]
module fj_dff_e_muxscan(q, d, si, sm, clk);
output q;
input d, si, sm, clk;

        reg q;

        always @(posedge clk) begin
                if (sm==1'b0) 
		  	q <= #1 d;
                else if (sm==1'b1)
		  	q <= #1 si;
                else    q <= #1 1'bx;
        end

endmodule


module fj_dff_ec_muxscan(q, d, si, sm, clk, c);
output q; 
input  d, si, sm, clk, c;

       reg q;

        always @(posedge clk or posedge c) begin
		if (c)
		  	q <= #1 1'b0;	
                else if (sm==1'b0) 
		  	q <= #1 d;
                else if (sm==1'b1)
		  	q <= #1 si;
                else    q <= #1 1'bx;
        end


endmodule
 
[Up: ATSBUFD g3]
module fj_dff_es_muxscan(q, d, si, sm, clk, s);
output q; 
input  d, si, sm, clk, s;

       reg q;

        always @(posedge clk or posedge s) begin
		if (s)
		  	q <= #1 1'b1;	
                else if (sm==1'b0) 
		  	q <= #1 d;
                else if (sm==1'b1)
		  	q <= #1 si;
                else    q <= #1 1'bx;
        end

endmodule
 
module fj_dff_ecs_muxscan(q, d, si, sm, clk, c, s);
output  q; 
input   d, si, sm, clk, c, s;

        reg q;

        always @(posedge clk or posedge c or posedge s) begin
		if (s)
		   	q <= #1 1'b1;	
		else if (c)
		   	q <= #1 1'b0;
                else if (sm==1'b0) 
		   	q <= #1 d;
                else if (sm==1'b1)
		   	q <= #1 si;
                else    q <= #1 1'bx;
        end


endmodule
 
module fj_latch_e(Q, G, D);
output Q; 
input  G, D;

       reg Q;

always @ (G or D) begin

       if (G==1)     Q <= #1 D;

end

endmodule
 
module fj_xctrl(oe, en,en_);
output oe;
input  en, en_;

 assign oe = (en && (~en_));

endmodule

 
[Up: AMUX2A udp_mux][Up: JTS13SN g3][Up: JIS11SN g2][Up: JIS11SN g10][Up: JIS11SP g2][Up: JIS11SP g10][Up: JBD12SN g5][Up: JBD12SN g13][Up: JIS13SN g2][Up: JIS13SN g10][Up: JIS13SP g2][Up: JIS13SP g10][Up: JJOED g13][Up: JTA23SN g3][Up: MJMUX2A udp_mux][Up: JTD03SN g3][Up: JBS11SN g5][Up: JBS11SN g13][Up: JBD11SN g5][Up: JBD11SN g13][Up: JBS13SN g5][Up: JBS13SN g13][Up: JMUX2A udp_mux][Up: JTA13SN g3]
module UDP_MUX21(O_, A,B, S);
output	O_;
input	A, B, S;



  assign O_ = ((~A && ~S) || (~B && S));


endmodule
 
[Up: JTS13SN g24][Up: JIS11SN g23][Up: JIS11SP g23][Up: JBD12SN g26][Up: JIS13SN g23][Up: JIS13SP g23][Up: JJOED g12][Up: BSCN2 update_latch][Up: BSCN3 update_latch0][Up: BSCN3 update_latch1][Up: BSCN4 update_latch][Up: JTA23SN g24][Up: JTD03SN g24][Up: JBS11SN g26][Up: JBD11SN g26][Up: JBS13SN g26][Up: JTA13SN g24]
module UDP_LATCH(Q, G_,D);
output Q; 
input  G_, D;

       reg Q;
 
always @ (G_ or D) begin

       if (G_==0)    Q <= #1 D;
 
end

endmodule
 
[Up: JTS13SN g21][Up: JIS11SN g20][Up: JIS11SP g20][Up: JBD12SN g23][Up: JIS13SN g20][Up: JIS13SP g20][Up: JJOED g9][Up: JTA23SN g21][Up: JTD03SN g21][Up: JBS11SN g23][Up: JBD11SN g23][Up: JBS13SN g23][Up: JTA13SN g21]
module UDP_LATCH1(Q_, G1,G2, D1,D2);
output Q_; 
input  G1, G2, D1, D2;

       reg Q_;
 
always @ (G1 or G2 or D1 or D2) begin

       if ((G1==1) & (G2==0))     Q_ <= #1 D1;
 
       else if ((G1==0) & (G2==1))     Q_ <= #1 D2;
         
end

endmodule
 
[Up: JTS13SN g22][Up: JIS11SN g21][Up: JIS11SP g21][Up: JBD12SN g24][Up: JIS13SN g21][Up: JIS13SP g21][Up: JJOED g10][Up: JTA23SN g22][Up: JTD03SN g22][Up: JBS11SN g24][Up: JBD11SN g24][Up: JBS13SN g24][Up: JTA13SN g22]
module UDP_LATCH2(Q_, G1A,G1B, D);
output Q_; 
input  G1A, G1B, D;

       reg Q_;

always @ (G1A or G1B or D) begin

       if ((G1A==1) & (G1B==1))    Q_ <= #1 ~D;

end

endmodule
 
HierarchyFilesModulesSignalsTasksFunctionsHelp

This page: Created:Thu Aug 19 11:59:22 1999
From: ../../../sparc_v8/lib/rtl/ff_primitives.v

Verilog converted to html by v2html 5.0 (written by Costas Calamvokis).Help