⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 counterx.fit.eqn

📁 通过VHDL语言编写的计数器程序,可以在一吗器显示管上分段显示小时,分,秒,并且可以分别清零
💻 EQN
字号:
--C1_q[3] is lpm_counter:cnt_rtl_0|alt_counter_f10ke:wysi_counter|q[3] at LC4_F4
--operation mode is clrb_cntr

C1_q[3]_lut_out = ((C1_q[3] $ (enable & C1L7) & ld) # (d[3] & !ld)) & clear;
C1_q[3] = DFFEA(C1_q[3]_lut_out, GLOBAL(clk), , , , , );


--C1_q[2] is lpm_counter:cnt_rtl_0|alt_counter_f10ke:wysi_counter|q[2] at LC3_F4
--operation mode is clrb_cntr

C1_q[2]_lut_out = ((C1_q[2] $ (enable & C1L5) & ld) # (d[2] & !ld)) & clear;
C1_q[2] = DFFEA(C1_q[2]_lut_out, GLOBAL(clk), , , , , );

--C1L7 is lpm_counter:cnt_rtl_0|alt_counter_f10ke:wysi_counter|counter_cell[2]~COUT at LC3_F4
--operation mode is clrb_cntr

C1L7 = CARRY(C1_q[2] & C1L5);


--C1_q[1] is lpm_counter:cnt_rtl_0|alt_counter_f10ke:wysi_counter|q[1] at LC2_F4
--operation mode is clrb_cntr

C1_q[1]_lut_out = ((C1_q[1] $ (enable & C1L3) & ld) # (d[1] & !ld)) & clear;
C1_q[1] = DFFEA(C1_q[1]_lut_out, GLOBAL(clk), , , , , );

--C1L5 is lpm_counter:cnt_rtl_0|alt_counter_f10ke:wysi_counter|counter_cell[1]~COUT at LC2_F4
--operation mode is clrb_cntr

C1L5 = CARRY(C1_q[1] & C1L3);


--C1_q[0] is lpm_counter:cnt_rtl_0|alt_counter_f10ke:wysi_counter|q[0] at LC1_F4
--operation mode is clrb_cntr

C1_q[0]_lut_out = ((enable $ C1_q[0] & ld) # (d[0] & !ld)) & clear;
C1_q[0] = DFFEA(C1_q[0]_lut_out, GLOBAL(clk), , , , , );

--C1L3 is lpm_counter:cnt_rtl_0|alt_counter_f10ke:wysi_counter|counter_cell[0]~COUT at LC1_F4
--operation mode is clrb_cntr

C1L3 = CARRY(C1_q[0]);


--enable is enable at PIN_126
--operation mode is input

enable = INPUT();


--clear is clear at PIN_124
--operation mode is input

clear = INPUT();


--d[3] is d[3] at PIN_56
--operation mode is input

d[3] = INPUT();


--ld is ld at PIN_54
--operation mode is input

ld = INPUT();


--clk is clk at PIN_55
--operation mode is input

clk = INPUT();


--d[2] is d[2] at PIN_125
--operation mode is input

d[2] = INPUT();


--d[1] is d[1] at PIN_78
--operation mode is input

d[1] = INPUT();


--d[0] is d[0] at PIN_79
--operation mode is input

d[0] = INPUT();


--qa[3] is qa[3] at PIN_80
--operation mode is output

qa[3] = OUTPUT(C1_q[3]);


--qa[2] is qa[2] at PIN_31
--operation mode is output

qa[2] = OUTPUT(C1_q[2]);


--qa[1] is qa[1] at PIN_81
--operation mode is output

qa[1] = OUTPUT(C1_q[1]);


--qa[0] is qa[0] at PIN_82
--operation mode is output

qa[0] = OUTPUT(C1_q[0]);


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -