www.pudn.com > SD_Card.rar > a_graycounter_u6c.tdf, change:2014-06-13,size:3628b


--a_graycounter DEVICE_FAMILY="Cyclone IV E" PVALUE=0 WIDTH=10 clock cnt_en q ALTERA_INTERNAL_OPTIONS=suppress_da_rule_internal=S102 
--VERSION_BEGIN 11.0 cbx_a_gray2bin 2011:04:27:21:07:19:SJ cbx_a_graycounter 2011:04:27:21:07:19:SJ cbx_cycloneii 2011:04:27:21:07:19:SJ cbx_mgl 2011:04:27:21:11:03:SJ cbx_stratix 2011:04:27:21:07:19:SJ cbx_stratixii 2011:04:27:21:07:19:SJ  VERSION_END 
 
 
-- Copyright (C) 1991-2011 Altera Corporation 
--  Your use of Altera Corporation's design tools, logic functions  
--  and other software and tools, and its AMPP partner logic  
--  functions, and any output files from any of the foregoing  
--  (including device programming or simulation files), and any  
--  associated documentation or information are expressly subject  
--  to the terms and conditions of the Altera Program License  
--  Subscription Agreement, Altera MegaCore Function License  
--  Agreement, or other applicable license agreement, including,  
--  without limitation, that your use is for the sole purpose of  
--  programming logic devices manufactured by Altera and sold by  
--  Altera or its authorized distributors.  Please refer to the  
--  applicable agreement for further details. 
 
 
 
--synthesis_resources = reg 14  
OPTIONS ALTERA_INTERNAL_OPTION = "suppress_da_rule_internal=S102;{-to sub_parity12a0} POWER_UP_LEVEL=HIGH;{-to parity11} POWER_UP_LEVEL=LOW"; 
 
SUBDESIGN a_graycounter_u6c 
(  
	clock	:	input; 
	cnt_en	:	input; 
	q[9..0]	:	output; 
)  
VARIABLE  
	counter13a[9..0] : dffeas; 
	parity11 : dffeas 
		WITH ( 
			power_up = "low" 
		); 
	sub_parity12a0 : dffeas 
		WITH ( 
			power_up = "high" 
		); 
	sub_parity12a1 : dffeas; 
	sub_parity12a2 : dffeas; 
	cntr_cout[9..0]	: WIRE; 
	parity_cout	: WIRE; 
	sclr	: NODE; 
	updown	: NODE; 
 
BEGIN  
	counter13a[].clk = clock; 
	counter13a[].d = ( (counter13a[9].q $ cntr_cout[8..8]), (counter13a[8].q $ (counter13a[7].q & cntr_cout[7..7])), (counter13a[7].q $ (counter13a[6].q & cntr_cout[6..6])), (counter13a[6].q $ (counter13a[5].q & cntr_cout[5..5])), (counter13a[5].q $ (counter13a[4].q & cntr_cout[4..4])), (counter13a[4].q $ (counter13a[3].q & cntr_cout[3..3])), (counter13a[3].q $ (counter13a[2].q & cntr_cout[2..2])), (counter13a[2].q $ (counter13a[1].q & cntr_cout[1..1])), (counter13a[1].q $ (counter13a[0].q & cntr_cout[0..0])), ((cnt_en & (counter13a[0].q $ (! parity_cout))) # ((! cnt_en) & counter13a[0].q))); 
	counter13a[].sclr = sclr; 
	parity11.clk = clock; 
	parity11.d = ((cnt_en & ((sub_parity12a[0..0].q $ sub_parity12a[1..1].q) $ sub_parity12a[2..2].q)) # ((! cnt_en) & parity11.q)); 
	parity11.sclr = sclr; 
	sub_parity12a[2..0].clk = ( clock, clock, clock); 
	sub_parity12a[2..0].d = ( ((cnt_en & (counter13a[8..8].q $ counter13a[9..9].q)) # ((! cnt_en) & sub_parity12a[2].q)), ((cnt_en & (((counter13a[4..4].q $ counter13a[5..5].q) $ counter13a[6..6].q) $ counter13a[7..7].q)) # ((! cnt_en) & sub_parity12a[1].q)), ((cnt_en & (((counter13a[0..0].q $ counter13a[1..1].q) $ counter13a[2..2].q) $ counter13a[3..3].q)) # ((! cnt_en) & sub_parity12a[0].q))); 
	sub_parity12a[2..0].sclr = ( sclr, sclr, sclr); 
	cntr_cout[] = ( B"0", (cntr_cout[7..7] & (! counter13a[7].q)), (cntr_cout[6..6] & (! counter13a[6].q)), (cntr_cout[5..5] & (! counter13a[5].q)), (cntr_cout[4..4] & (! counter13a[4].q)), (cntr_cout[3..3] & (! counter13a[3].q)), (cntr_cout[2..2] & (! counter13a[2].q)), (cntr_cout[1..1] & (! counter13a[1].q)), (cntr_cout[0..0] & (! counter13a[0].q)), (cnt_en & parity_cout)); 
	parity_cout = ((parity11.q $ (! updown)) & cnt_en); 
	q[] = counter13a[].q; 
	sclr = GND; 
	updown = VCC; 
END; 
--VALID FILE