📄 a_graycounter_726.tdf
字号:
--a_graycounter DEVICE_FAMILY="Cyclone" WIDTH=11 aclr clock cnt_en q
--VERSION_BEGIN 8.0 cbx_a_gray2bin 2008:02:23:252825 cbx_a_graycounter 2008:02:23:252825 cbx_cycloneii 2008:02:23:252825 cbx_flex10ke 2008:02:23:252825 cbx_mgl 2008:04:11:273944 cbx_stratix 2008:02:23:252825 cbx_stratixii 2008:02:23:252825 VERSION_END
-- Copyright (C) 1991-2008 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 = lut 12
SUBDESIGN a_graycounter_726
(
aclr : input;
clock : input;
cnt_en : input;
q[10..0] : output;
)
VARIABLE
counter8a[10..0] : dffeas;
parity7 : dffeas;
counter_cout[10..0] : WIRE;
parity_cout : WIRE;
sclr : NODE;
updown : NODE;
BEGIN
counter8a[].clk = clock;
counter8a[].clrn = ( (! aclr), (! aclr), (! aclr), (! aclr), (! aclr), (! aclr), (! aclr), (! aclr), (! aclr), (! aclr), (! aclr));
counter8a[].d = ( (counter8a[10].q $ counter_cout[9..9]), (counter8a[9].q $ (counter8a[8].q & counter_cout[8..8])), (counter8a[8].q $ (counter8a[7].q & counter_cout[7..7])), (counter8a[7].q $ (counter8a[6].q & counter_cout[6..6])), (counter8a[6].q $ (counter8a[5].q & counter_cout[5..5])), (counter8a[5].q $ (counter8a[4].q & counter_cout[4..4])), (counter8a[4].q $ (counter8a[3].q & counter_cout[3..3])), (counter8a[3].q $ (counter8a[2].q & counter_cout[2..2])), (counter8a[2].q $ (counter8a[1].q & counter_cout[1..1])), (counter8a[1].q $ (counter8a[0].q & counter_cout[0..0])), ((cnt_en & (counter8a[0].q $ (! parity_cout))) # ((! cnt_en) & counter8a[0].q)));
counter8a[].sclr = sclr;
parity7.clk = clock;
parity7.clrn = (! aclr);
parity7.d = (parity7.q $ cnt_en);
parity7.sclr = sclr;
counter_cout[] = ( B"0", (counter_cout[8..8] & (! counter8a[8].q)), (counter_cout[7..7] & (! counter8a[7].q)), (counter_cout[6..6] & (! counter8a[6].q)), (counter_cout[5..5] & (! counter8a[5].q)), (counter_cout[4..4] & (! counter8a[4].q)), (counter_cout[3..3] & (! counter8a[3].q)), (counter_cout[2..2] & (! counter8a[2].q)), (counter_cout[1..1] & (! counter8a[1].q)), (counter_cout[0..0] & (! counter8a[0].q)), (cnt_en & parity_cout));
parity_cout = ((parity7.q $ (! updown)) & cnt_en);
q[] = counter8a[].q;
sclr = GND;
updown = VCC;
END;
--VALID FILE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -