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

📄 display.fit.eqn

📁 用 vhdl 语言编写的1602的小程序
💻 EQN
📖 第 1 页 / 共 3 页
字号:
state.write_char5_lut_out = state.hold & (next_command.write_char5);
state.write_char5 = DFFEAS(state.write_char5_lut_out, GLOBAL(CLK_400HZ), !GLOBAL(RES), , , , , , );


--state.write1_char2 is state.write1_char2 at LC_X13_Y6_N7
--operation mode is normal

state.write1_char2_lut_out = next_command.write1_char2 & state.hold;
state.write1_char2 = DFFEAS(state.write1_char2_lut_out, GLOBAL(CLK_400HZ), !GLOBAL(RES), , , , , , );


--A1L126 is Select~2570 at LC_X12_Y7_N1
--operation mode is normal

A1L126 = state.write_char5 # state.write1_char2 # state.write1_char3 # state.write_char7;


--A1L127 is Select~2572 at LC_X14_Y6_N2
--operation mode is normal

A1L127 = !DATA_BUS_VALUE[3] & !A1L116 # !A1L136;


--state.write_char6 is state.write_char6 at LC_X15_Y7_N7
--operation mode is normal

state.write_char6_lut_out = next_command.write_char6 & state.hold;
state.write_char6 = DFFEAS(state.write_char6_lut_out, GLOBAL(CLK_400HZ), !GLOBAL(RES), , , , , , );


--A1L128 is Select~2573 at LC_X14_Y6_N5
--operation mode is normal

A1L128 = state.display_off # state.write3_char2 # state.display_on # state.write_char6;


--A1L129 is Select~2574 at LC_X14_Y6_N1
--operation mode is normal

A1L129 = !state.write3_char1 & (!state.write3_char3 & !state.write_char7);


--A1L130 is Select~2576 at LC_X14_Y7_N2
--operation mode is normal

A1L130 = !DATA_BUS_VALUE[4] & (state.display_set # state.toggle_e # state.hold);


--state.write_char4 is state.write_char4 at LC_X15_Y7_N3
--operation mode is normal

state.write_char4_lut_out = next_command.write_char4 & (state.hold);
state.write_char4 = DFFEAS(state.write_char4_lut_out, GLOBAL(CLK_400HZ), !GLOBAL(RES), , , , , , );


--next_command.write_char7 is next_command.write_char7 at LC_X15_Y7_N6
--operation mode is normal

next_command.write_char7_lut_out = state.write_char6 # next_command.write_char7 & (state.hold # state.toggle_e);
next_command.write_char7 = DFFEAS(next_command.write_char7_lut_out, GLOBAL(CLK_400HZ), !GLOBAL(RES), , , , , , );


--next_command.write1_char3 is next_command.write1_char3 at LC_X13_Y6_N0
--operation mode is normal

next_command.write1_char3_lut_out = state.write1_char2 # next_command.write1_char3 & (state.toggle_e # state.hold);
next_command.write1_char3 = DFFEAS(next_command.write1_char3_lut_out, GLOBAL(CLK_400HZ), !GLOBAL(RES), , , , , , );


--next_command.write2_char3 is next_command.write2_char3 at LC_X13_Y6_N3
--operation mode is normal

next_command.write2_char3_lut_out = state.write2_char2 # next_command.write2_char3 & (state.toggle_e # state.hold);
next_command.write2_char3 = DFFEAS(next_command.write2_char3_lut_out, GLOBAL(CLK_400HZ), !GLOBAL(RES), , , , , , );


--next_command.write_char3 is next_command.write_char3 at LC_X13_Y6_N8
--operation mode is normal

next_command.write_char3_lut_out = state.write_char2 # next_command.write_char3 & (state.toggle_e # state.hold);
next_command.write_char3 = DFFEAS(next_command.write_char3_lut_out, GLOBAL(CLK_400HZ), !GLOBAL(RES), , , , , , );


--next_command.write3_char3 is next_command.write3_char3 at LC_X11_Y6_N5
--operation mode is normal

next_command.write3_char3_lut_out = state.write3_char2 # next_command.write3_char3 & (state.hold # state.toggle_e);
next_command.write3_char3 = DFFEAS(next_command.write3_char3_lut_out, GLOBAL(CLK_400HZ), !GLOBAL(RES), , , , , , );


--CLK_COUNT_400HZ[3] is CLK_COUNT_400HZ[3] at LC_X2_Y5_N3
--operation mode is arithmetic

CLK_COUNT_400HZ[3]_lut_out = CLK_COUNT_400HZ[3] $ A1L11;
CLK_COUNT_400HZ[3] = DFFEAS(CLK_COUNT_400HZ[3]_lut_out, GLOBAL(CLK), VCC, , , , , A1L59, );

--A1L14 is CLK_COUNT_400HZ[3]~402 at LC_X2_Y5_N3
--operation mode is arithmetic

A1L14_cout_0 = !A1L11 # !CLK_COUNT_400HZ[3];
A1L14 = CARRY(A1L14_cout_0);

--A1L15 is CLK_COUNT_400HZ[3]~402COUT1_421 at LC_X2_Y5_N3
--operation mode is arithmetic

A1L15_cout_1 = !A1L12 # !CLK_COUNT_400HZ[3];
A1L15 = CARRY(A1L15_cout_1);


--next_command.write3_char1 is next_command.write3_char1 at LC_X11_Y6_N7
--operation mode is normal

next_command.write3_char1_lut_out = DS0 & (A1L131 # !A1L118 & next_command.write3_char1) # !DS0 & !A1L118 & next_command.write3_char1;
next_command.write3_char1 = DFFEAS(next_command.write3_char1_lut_out, GLOBAL(CLK_400HZ), !GLOBAL(RES), , , , , , );


--next_command.write_char2 is next_command.write_char2 at LC_X11_Y7_N5
--operation mode is normal

next_command.write_char2_lut_out = state.write_char1 # next_command.write_char2 & (state.toggle_e # state.hold);
next_command.write_char2 = DFFEAS(next_command.write_char2_lut_out, GLOBAL(CLK_400HZ), !GLOBAL(RES), , , , , , );


--next_command.write1_char1 is next_command.write1_char1 at LC_X11_Y6_N3
--operation mode is normal

next_command.write1_char1_lut_out = DS0 & (A1L132 # !A1L118 & next_command.write1_char1) # !DS0 & !A1L118 & (next_command.write1_char1);
next_command.write1_char1 = DFFEAS(next_command.write1_char1_lut_out, GLOBAL(CLK_400HZ), !GLOBAL(RES), , , , , , );


--next_command.write2_char2 is next_command.write2_char2 at LC_X11_Y7_N2
--operation mode is normal

next_command.write2_char2_lut_out = state.write2_char1 # next_command.write2_char2 & (state.toggle_e # state.hold);
next_command.write2_char2 = DFFEAS(next_command.write2_char2_lut_out, GLOBAL(CLK_400HZ), !GLOBAL(RES), , , , , , );


--next_command.write3_char2 is next_command.write3_char2 at LC_X11_Y6_N6
--operation mode is normal

next_command.write3_char2_lut_out = state.write3_char1 # next_command.write3_char2 & (state.hold # state.toggle_e);
next_command.write3_char2 = DFFEAS(next_command.write3_char2_lut_out, GLOBAL(CLK_400HZ), !GLOBAL(RES), , , , , , );


--next_command.write2_char1 is next_command.write2_char1 at LC_X11_Y6_N2
--operation mode is normal

next_command.write2_char1_lut_out = DS0 & !A1L118 & next_command.write2_char1 # !DS0 & (A1L131 # !A1L118 & next_command.write2_char1);
next_command.write2_char1 = DFFEAS(next_command.write2_char1_lut_out, GLOBAL(CLK_400HZ), !GLOBAL(RES), , , , , , );


--next_command.write_char5 is next_command.write_char5 at LC_X15_Y7_N0
--operation mode is normal

next_command.write_char5_lut_out = state.write_char4 # next_command.write_char5 & (state.hold # state.toggle_e);
next_command.write_char5 = DFFEAS(next_command.write_char5_lut_out, GLOBAL(CLK_400HZ), !GLOBAL(RES), , , , , , );


--next_command.write1_char2 is next_command.write1_char2 at LC_X13_Y6_N4
--operation mode is normal

next_command.write1_char2_lut_out = state.write1_char1 # next_command.write1_char2 & (state.toggle_e # state.hold);
next_command.write1_char2 = DFFEAS(next_command.write1_char2_lut_out, GLOBAL(CLK_400HZ), !GLOBAL(RES), , , , , , );


--next_command.write_char6 is next_command.write_char6 at LC_X15_Y7_N4
--operation mode is normal

next_command.write_char6_lut_out = state.write_char5 # next_command.write_char6 & (state.toggle_e # state.hold);
next_command.write_char6 = DFFEAS(next_command.write_char6_lut_out, GLOBAL(CLK_400HZ), !GLOBAL(RES), , , , , , );


--next_command.write_char4 is next_command.write_char4 at LC_X15_Y7_N5
--operation mode is normal

next_command.write_char4_lut_out = state.goto_nextline # next_command.write_char4 & (state.toggle_e # state.hold);
next_command.write_char4 = DFFEAS(next_command.write_char4_lut_out, GLOBAL(CLK_400HZ), !GLOBAL(RES), , , , , , );


--CLK_COUNT_400HZ[2] is CLK_COUNT_400HZ[2] at LC_X2_Y5_N2
--operation mode is arithmetic

CLK_COUNT_400HZ[2]_lut_out = CLK_COUNT_400HZ[2] $ (!A1L8);
CLK_COUNT_400HZ[2] = DFFEAS(CLK_COUNT_400HZ[2]_lut_out, GLOBAL(CLK), VCC, , , , , A1L59, );

--A1L11 is CLK_COUNT_400HZ[2]~406 at LC_X2_Y5_N2
--operation mode is arithmetic

A1L11_cout_0 = CLK_COUNT_400HZ[2] & (!A1L8);
A1L11 = CARRY(A1L11_cout_0);

--A1L12 is CLK_COUNT_400HZ[2]~406COUT1_420 at LC_X2_Y5_N2
--operation mode is arithmetic

A1L12_cout_1 = CLK_COUNT_400HZ[2] & (!A1L9);
A1L12 = CARRY(A1L12_cout_1);


--A1L131 is Select~2601 at LC_X11_Y6_N0
--operation mode is normal

A1L131 = DS1 & state.display_set;


--state.write_char1 is state.write_char1 at LC_X11_Y7_N6
--operation mode is normal

state.write_char1_lut_out = state.hold & next_command.write_char1;
state.write_char1 = DFFEAS(state.write_char1_lut_out, GLOBAL(CLK_400HZ), !GLOBAL(RES), , , , , , );


--A1L132 is Select~2604 at LC_X11_Y6_N8
--operation mode is normal

A1L132 = !DS1 & state.display_set;


--CLK_COUNT_400HZ[1] is CLK_COUNT_400HZ[1] at LC_X2_Y5_N1
--operation mode is arithmetic

CLK_COUNT_400HZ[1]_lut_out = CLK_COUNT_400HZ[1] $ (A1L5);
CLK_COUNT_400HZ[1] = DFFEAS(CLK_COUNT_400HZ[1]_lut_out, GLOBAL(CLK), VCC, , , , , A1L59, );

--A1L8 is CLK_COUNT_400HZ[1]~410 at LC_X2_Y5_N1
--operation mode is arithmetic

A1L8_cout_0 = !A1L5 # !CLK_COUNT_400HZ[1];
A1L8 = CARRY(A1L8_cout_0);

--A1L9 is CLK_COUNT_400HZ[1]~410COUT1_419 at LC_X2_Y5_N1
--operation mode is arithmetic

A1L9_cout_1 = !A1L6 # !CLK_COUNT_400HZ[1];
A1L9 = CARRY(A1L9_cout_1);


--next_command.write_char1 is next_command.write_char1 at LC_X11_Y6_N9
--operation mode is normal

next_command.write_char1_lut_out = DS0 & !A1L118 & next_command.write_char1 # !DS0 & (A1L132 # !A1L118 & next_command.write_char1);
next_command.write_char1 = DFFEAS(next_command.write_char1_lut_out, GLOBAL(CLK_400HZ), !GLOBAL(RES), , , , , , );


--CLK_COUNT_400HZ[0] is CLK_COUNT_400HZ[0] at LC_X2_Y5_N0
--operation mode is arithmetic

CLK_COUNT_400HZ[0]_lut_out = !CLK_COUNT_400HZ[0];
CLK_COUNT_400HZ[0] = DFFEAS(CLK_COUNT_400HZ[0]_lut_out, GLOBAL(CLK), VCC, , , , , A1L59, );

--A1L5 is CLK_COUNT_400HZ[0]~414 at LC_X2_Y5_N0
--operation mode is arithmetic

A1L5_cout_0 = CLK_COUNT_400HZ[0];
A1L5 = CARRY(A1L5_cout_0);

--A1L6 is CLK_COUNT_400HZ[0]~414COUT1_418 at LC_X2_Y5_N0
--operation mode is arithmetic

A1L6_cout_1 = CLK_COUNT_400HZ[0];
A1L6 = CARRY(A1L6_cout_1);


--RES is RES at PIN_60
--operation mode is input

RES = INPUT();


--CLK is CLK at PIN_29
--operation mode is input

CLK = INPUT();


--DS0 is DS0 at PIN_58
--operation mode is input

DS0 = INPUT();


--DS1 is DS1 at PIN_59
--operation mode is input

DS1 = INPUT();


--LCD_RS is LCD_RS at PIN_108
--operation mode is output

LCD_RS = OUTPUT(A1L83Q);


--LCD_E is LCD_E at PIN_50
--operation mode is output

LCD_E = OUTPUT(!A1L81Q);


--LCD_RW is LCD_RW at PIN_73
--operation mode is output

LCD_RW = OUTPUT(GND);


--DATA_BUS[0] is DATA_BUS[0] at PIN_94
--operation mode is bidir

DATA_BUS[0]_tri_out = TRI(DATA_BUS_VALUE[0], VCC);
DATA_BUS[0] = BIDIR(DATA_BUS[0]_tri_out);


--DATA_BUS[1] is DATA_BUS[1] at PIN_96
--operation mode is bidir

DATA_BUS[1]_tri_out = TRI(DATA_BUS_VALUE[1], VCC);
DATA_BUS[1] = BIDIR(DATA_BUS[1]_tri_out);


--DATA_BUS[2] is DATA_BUS[2] at PIN_98
--operation mode is bidir

DATA_BUS[2]_tri_out = TRI(DATA_BUS_VALUE[2], VCC);
DATA_BUS[2] = BIDIR(DATA_BUS[2]_tri_out);


--DATA_BUS[3] is DATA_BUS[3] at PIN_100
--operation mode is bidir

DATA_BUS[3]_tri_out = TRI(!DATA_BUS_VALUE[3], VCC);
DATA_BUS[3] = BIDIR(DATA_BUS[3]_tri_out);


--DATA_BUS[4] is DATA_BUS[4] at PIN_102
--operation mode is bidir

DATA_BUS[4]_tri_out = TRI(!DATA_BUS_VALUE[4], VCC);
DATA_BUS[4] = BIDIR(DATA_BUS[4]_tri_out);


--DATA_BUS[5] is DATA_BUS[5] at PIN_104
--operation mode is bidir

DATA_BUS[5]_tri_out = TRI(!DATA_BUS_VALUE[5], VCC);
DATA_BUS[5] = BIDIR(DATA_BUS[5]_tri_out);


--DATA_BUS[6] is DATA_BUS[6] at PIN_106
--operation mode is bidir

DATA_BUS[6]_tri_out = TRI(DATA_BUS_VALUE[6], VCC);
DATA_BUS[6] = BIDIR(DATA_BUS[6]_tri_out);


--DATA_BUS[7] is DATA_BUS[7] at PIN_113
--operation mode is bidir

DATA_BUS[7]_tri_out = TRI(DATA_BUS_VALUE[7], VCC);
DATA_BUS[7] = BIDIR(DATA_BUS[7]_tri_out);




⌨️ 快捷键说明

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