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

📄 colorbar.map.eqn

📁 基于EPM1270的VGA显示器接口源码Verilog
💻 EQN
字号:
-- Copyright (C) 1991-2005 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 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.
--B1_hsyncint is vga_vl:inst|hsyncint
--operation mode is normal

B1_hsyncint_lut_out = !B1_hcnt[10] & B1L91 & (B1_hcnt[7] $ !B1L21);
B1_hsyncint = DFFEAS(B1_hsyncint_lut_out, clk, rst, , , , , , );


--B1_vsync is vga_vl:inst|vsync
--operation mode is normal

B1_vsync_lut_out = !B1_vcnt[5] & !B1L81 & B1L02 & B1L31;
B1_vsync = DFFEAS(B1_vsync_lut_out, !B1_hsyncint, rst, , , , , , );


--B1_hcnt[10] is vga_vl:inst|hcnt[10]
--operation mode is normal

B1_hcnt[10]_carry_eqn = B1L74;
B1_hcnt[10]_lut_out = B1_hcnt[10] $ (!B1_hcnt[10]_carry_eqn);
B1_hcnt[10] = DFFEAS(B1_hcnt[10]_lut_out, clk, rst, , , , , B1L41, );


--B1_hcnt[7] is vga_vl:inst|hcnt[7]
--operation mode is arithmetic

B1_hcnt[7]_carry_eqn = B1L14;
B1_hcnt[7]_lut_out = B1_hcnt[7] $ (B1_hcnt[7]_carry_eqn);
B1_hcnt[7] = DFFEAS(B1_hcnt[7]_lut_out, clk, rst, , , , , B1L41, );

--B1L34 is vga_vl:inst|hcnt[7]~396
--operation mode is arithmetic

B1L34 = CARRY(!B1L14 # !B1_hcnt[7]);


--B1_hcnt[6] is vga_vl:inst|hcnt[6]
--operation mode is arithmetic

B1_hcnt[6]_carry_eqn = B1L93;
B1_hcnt[6]_lut_out = B1_hcnt[6] $ (!B1_hcnt[6]_carry_eqn);
B1_hcnt[6] = DFFEAS(B1_hcnt[6]_lut_out, clk, rst, , , , , B1L41, );

--B1L14 is vga_vl:inst|hcnt[6]~400
--operation mode is arithmetic

B1L14 = CARRY(B1_hcnt[6] & (!B1L93));


--B1_hcnt[5] is vga_vl:inst|hcnt[5]
--operation mode is arithmetic

B1_hcnt[5]_carry_eqn = B1L73;
B1_hcnt[5]_lut_out = B1_hcnt[5] $ (B1_hcnt[5]_carry_eqn);
B1_hcnt[5] = DFFEAS(B1_hcnt[5]_lut_out, clk, rst, , , , , B1L41, );

--B1L93 is vga_vl:inst|hcnt[5]~404
--operation mode is arithmetic

B1L93 = CARRY(!B1L73 # !B1_hcnt[5]);


--B1L1 is vga_vl:inst|LessThan~1898
--operation mode is normal

B1L1 = !B1_hcnt[7] & !B1_hcnt[6] & !B1_hcnt[5];


--B1_hcnt[2] is vga_vl:inst|hcnt[2]
--operation mode is arithmetic

B1_hcnt[2]_carry_eqn = B1L13;
B1_hcnt[2]_lut_out = B1_hcnt[2] $ (!B1_hcnt[2]_carry_eqn);
B1_hcnt[2] = DFFEAS(B1_hcnt[2]_lut_out, clk, rst, , , , , B1L41, );

--B1L33 is vga_vl:inst|hcnt[2]~408
--operation mode is arithmetic

B1L33 = CARRY(B1_hcnt[2] & (!B1L13));


--B1_hcnt[3] is vga_vl:inst|hcnt[3]
--operation mode is arithmetic

B1_hcnt[3]_carry_eqn = B1L33;
B1_hcnt[3]_lut_out = B1_hcnt[3] $ (B1_hcnt[3]_carry_eqn);
B1_hcnt[3] = DFFEAS(B1_hcnt[3]_lut_out, clk, rst, , , , , B1L41, );

--B1L53 is vga_vl:inst|hcnt[3]~412
--operation mode is arithmetic

B1L53 = CARRY(!B1L33 # !B1_hcnt[3]);


--B1L2 is vga_vl:inst|LessThan~1899
--operation mode is normal

B1L2 = !B1_hcnt[7] & !B1_hcnt[6] & (!B1_hcnt[3] # !B1_hcnt[2]);


--B1_hcnt[4] is vga_vl:inst|hcnt[4]
--operation mode is arithmetic

B1_hcnt[4]_carry_eqn = B1L53;
B1_hcnt[4]_lut_out = B1_hcnt[4] $ (!B1_hcnt[4]_carry_eqn);
B1_hcnt[4] = DFFEAS(B1_hcnt[4]_lut_out, clk, rst, , , , , B1L41, );

--B1L73 is vga_vl:inst|hcnt[4]~416
--operation mode is arithmetic

B1L73 = CARRY(B1_hcnt[4] & (!B1L53));


--B1_hcnt[8] is vga_vl:inst|hcnt[8]
--operation mode is arithmetic

B1_hcnt[8]_carry_eqn = B1L34;
B1_hcnt[8]_lut_out = B1_hcnt[8] $ (!B1_hcnt[8]_carry_eqn);
B1_hcnt[8] = DFFEAS(B1_hcnt[8]_lut_out, clk, rst, , , , , B1L41, );

--B1L54 is vga_vl:inst|hcnt[8]~420
--operation mode is arithmetic

B1L54 = CARRY(B1_hcnt[8] & (!B1L34));


--B1L3 is vga_vl:inst|LessThan~1900
--operation mode is normal

B1L3 = B1L1 # B1L2 & !B1_hcnt[4] # !B1_hcnt[8];


--B1L4 is vga_vl:inst|LessThan~1901
--operation mode is normal

B1L4 = !B1_hcnt[4] & !B1_hcnt[3] & !B1_hcnt[5];


--B1L5 is vga_vl:inst|LessThan~1902
--operation mode is normal

B1L5 = !B1_hcnt[8] & (B1L4 # !B1_hcnt[6] # !B1_hcnt[7]);


--B1_hcnt[9] is vga_vl:inst|hcnt[9]
--operation mode is arithmetic

B1_hcnt[9]_carry_eqn = B1L54;
B1_hcnt[9]_lut_out = B1_hcnt[9] $ (B1_hcnt[9]_carry_eqn);
B1_hcnt[9] = DFFEAS(B1_hcnt[9]_lut_out, clk, rst, , , , , B1L41, );

--B1L74 is vga_vl:inst|hcnt[9]~424
--operation mode is arithmetic

B1L74 = CARRY(!B1L54 # !B1_hcnt[9]);


--B1L6 is vga_vl:inst|LessThan~1903
--operation mode is normal

B1L6 = !B1_hcnt[10] & !B1_hcnt[9];


--B1L7 is vga_vl:inst|LessThan~1904
--operation mode is normal

B1L7 = !B1_hcnt[4] & !B1_hcnt[3];


--B1L8 is vga_vl:inst|LessThan~1905
--operation mode is normal

B1L8 = B1L7 & !B1_hcnt[2] # !B1_hcnt[5] # !B1_hcnt[6];


--B1L9 is vga_vl:inst|LessThan~1906
--operation mode is normal

B1L9 = B1L6 & B1L8 & !B1_hcnt[7] & !B1_hcnt[8];


--B1L36 is vga_vl:inst|pixel~1254
--operation mode is normal

B1L36 = !B1_hcnt[5] # !B1_hcnt[3] # !B1_hcnt[2] # !B1_hcnt[4];


--B1L46 is vga_vl:inst|pixel~1255
--operation mode is normal

B1L46 = !B1_hcnt[8] & (B1L36 & !B1_hcnt[6] # !B1_hcnt[7]);


--B1_enable is vga_vl:inst|enable
--operation mode is normal

B1_enable_lut_out = !B1L42 & (!B1L52 & B1L51 # !B1L91);
B1_enable = DFFEAS(B1_enable_lut_out, clk, rst, , , , , , );


--B1L06 is vga_vl:inst|pixel[2]~1256
--operation mode is normal

B1L06 = B1_enable & (B1L46 # !B1_hcnt[9]);


--B1L16 is vga_vl:inst|pixel[2]~1257
--operation mode is normal

B1L16 = !B1_hcnt[10] & B1L26 & !B1L9 & B1L06;


--B1L01 is vga_vl:inst|LessThan~1907
--operation mode is normal

B1L01 = !B1_hcnt[2] & !B1_hcnt[3] # !B1_hcnt[5] # !B1_hcnt[6];


--B1L75 is vga_vl:inst|pixel[1]~1258
--operation mode is normal

B1L75 = B1_hcnt[4] & B1_hcnt[7] & B1_hcnt[8] & !B1L01;


--B1L85 is vga_vl:inst|pixel[1]~1259
--operation mode is normal

B1L85 = !B1_hcnt[10] & (B1_hcnt[9] & B1L46 # !B1_hcnt[9] & (B1L75));


--B1L95 is vga_vl:inst|pixel[1]~1260
--operation mode is normal

B1L95 = B1_enable & !B1L9 & (B1L85 # !B1L26);


--B1L05 is vga_vl:inst|pixel[0]~1261
--operation mode is normal

B1L05 = B1_hcnt[4] & (B1L01) # !B1_hcnt[4] & (B1_hcnt[5] # B1_hcnt[6]);


--B1L15 is vga_vl:inst|pixel[0]~1262
--operation mode is normal

B1L15 = B1L3 # B1_hcnt[7] & B1_hcnt[8] & B1L05;


--B1L25 is vga_vl:inst|pixel[0]~1263
--operation mode is normal

B1L25 = B1L6 & B1_enable & B1L15 & !B1L5;


--B1L35 is vga_vl:inst|pixel[0]~1264
--operation mode is normal

B1L35 = B1_hcnt[9] & B1_enable & (!B1_hcnt[10]);


--B1L45 is vga_vl:inst|pixel[0]~1265
--operation mode is normal

B1L45 = B1_hcnt[6] & (B1_hcnt[5] # B1_hcnt[4] & B1_hcnt[3]);


--B1L55 is vga_vl:inst|pixel[0]~1266
--operation mode is normal

B1L55 = B1L46 & B1L35 & (B1_hcnt[7] # B1L45);


--B1L65 is vga_vl:inst|pixel[0]~1267
--operation mode is normal

B1L65 = B1L25 # B1L55 # B1L9 & B1_enable;


--B1_hcnt[0] is vga_vl:inst|hcnt[0]
--operation mode is arithmetic

B1_hcnt[0]_lut_out = !B1_hcnt[0];
B1_hcnt[0] = DFFEAS(B1_hcnt[0]_lut_out, clk, rst, , , , , B1L41, );

--B1L92 is vga_vl:inst|hcnt[0]~428
--operation mode is arithmetic

B1L92 = CARRY(B1_hcnt[0]);


--B1_hcnt[1] is vga_vl:inst|hcnt[1]
--operation mode is arithmetic

B1_hcnt[1]_carry_eqn = B1L92;
B1_hcnt[1]_lut_out = B1_hcnt[1] $ (B1_hcnt[1]_carry_eqn);
B1_hcnt[1] = DFFEAS(B1_hcnt[1]_lut_out, clk, rst, , , , , B1L41, );

--B1L13 is vga_vl:inst|hcnt[1]~432
--operation mode is arithmetic

B1L13 = CARRY(!B1L92 # !B1_hcnt[1]);


--B1L11 is vga_vl:inst|LessThan~1908
--operation mode is normal

B1L11 = !B1_hcnt[4] & !B1_hcnt[5] & (!B1_hcnt[1] # !B1_hcnt[0]);


--B1L21 is vga_vl:inst|LessThan~1909
--operation mode is normal

B1L21 = B1L4 # B1L11 & !B1_hcnt[2] # !B1_hcnt[6];


--B1L91 is vga_vl:inst|always4~148
--operation mode is normal

B1L91 = B1_hcnt[9] & B1_hcnt[8];


--B1_vcnt[5] is vga_vl:inst|vcnt[5]
--operation mode is arithmetic

B1_vcnt[5]_carry_eqn = B1L57;
B1_vcnt[5]_lut_out = B1_vcnt[5] $ (B1_vcnt[5]_carry_eqn);
B1_vcnt[5] = DFFEAS(B1_vcnt[5]_lut_out, !B1_hsyncint, rst, , , , , B1L71, );

--B1L77 is vga_vl:inst|vcnt[5]~233
--operation mode is arithmetic

B1L77 = CARRY(!B1L57 # !B1_vcnt[5]);


--B1_vcnt[0] is vga_vl:inst|vcnt[0]
--operation mode is arithmetic

B1_vcnt[0]_lut_out = !B1_vcnt[0];
B1_vcnt[0] = DFFEAS(B1_vcnt[0]_lut_out, !B1_hsyncint, rst, , , , , B1L71, );

--B1L76 is vga_vl:inst|vcnt[0]~237
--operation mode is arithmetic

B1L76 = CARRY(B1_vcnt[0]);


--B1_vcnt[1] is vga_vl:inst|vcnt[1]
--operation mode is arithmetic

B1_vcnt[1]_carry_eqn = B1L76;
B1_vcnt[1]_lut_out = B1_vcnt[1] $ (B1_vcnt[1]_carry_eqn);
B1_vcnt[1] = DFFEAS(B1_vcnt[1]_lut_out, !B1_hsyncint, rst, , , , , B1L71, );

--B1L96 is vga_vl:inst|vcnt[1]~241
--operation mode is arithmetic

B1L96 = CARRY(!B1L76 # !B1_vcnt[1]);


--B1_vcnt[2] is vga_vl:inst|vcnt[2]
--operation mode is arithmetic

B1_vcnt[2]_carry_eqn = B1L96;
B1_vcnt[2]_lut_out = B1_vcnt[2] $ (!B1_vcnt[2]_carry_eqn);
B1_vcnt[2] = DFFEAS(B1_vcnt[2]_lut_out, !B1_hsyncint, rst, , , , , B1L71, );

--B1L17 is vga_vl:inst|vcnt[2]~245
--operation mode is arithmetic

B1L17 = CARRY(B1_vcnt[2] & (!B1L96));


--B1_vcnt[9] is vga_vl:inst|vcnt[9]
--operation mode is arithmetic

B1_vcnt[9]_carry_eqn = B1L38;
B1_vcnt[9]_lut_out = B1_vcnt[9] $ (B1_vcnt[9]_carry_eqn);
B1_vcnt[9] = DFFEAS(B1_vcnt[9]_lut_out, !B1_hsyncint, rst, , , , , B1L71, );

--B1L58 is vga_vl:inst|vcnt[9]~249
--operation mode is arithmetic

B1L58 = CARRY(!B1L38 # !B1_vcnt[9]);


--B1L81 is vga_vl:inst|always3~127
--operation mode is normal

B1L81 = B1_vcnt[2] $ (!B1_vcnt[1] # !B1_vcnt[0]) # !B1_vcnt[9];


--B1_vcnt[3] is vga_vl:inst|vcnt[3]
--operation mode is arithmetic

B1_vcnt[3]_carry_eqn = B1L17;
B1_vcnt[3]_lut_out = B1_vcnt[3] $ (B1_vcnt[3]_carry_eqn);
B1_vcnt[3] = DFFEAS(B1_vcnt[3]_lut_out, !B1_hsyncint, rst, , , , , B1L71, );

--B1L37 is vga_vl:inst|vcnt[3]~253
--operation mode is arithmetic

B1L37 = CARRY(!B1L17 # !B1_vcnt[3]);


--B1_vcnt[4] is vga_vl:inst|vcnt[4]
--operation mode is arithmetic

B1_vcnt[4]_carry_eqn = B1L37;
B1_vcnt[4]_lut_out = B1_vcnt[4] $ (!B1_vcnt[4]_carry_eqn);
B1_vcnt[4] = DFFEAS(B1_vcnt[4]_lut_out, !B1_hsyncint, rst, , , , , B1L71, );

--B1L57 is vga_vl:inst|vcnt[4]~257
--operation mode is arithmetic

B1L57 = CARRY(B1_vcnt[4] & (!B1L37));


--B1_vcnt[6] is vga_vl:inst|vcnt[6]
--operation mode is arithmetic

B1_vcnt[6]_carry_eqn = B1L77;
B1_vcnt[6]_lut_out = B1_vcnt[6] $ (!B1_vcnt[6]_carry_eqn);
B1_vcnt[6] = DFFEAS(B1_vcnt[6]_lut_out, !B1_hsyncint, rst, , , , , B1L71, );

--B1L97 is vga_vl:inst|vcnt[6]~261
--operation mode is arithmetic

B1L97 = CARRY(B1_vcnt[6] & (!B1L77));


--B1L02 is vga_vl:inst|always4~149
--operation mode is normal

B1L02 = B1_vcnt[3] & B1_vcnt[4] & B1_vcnt[6];


--B1_vcnt[10] is vga_vl:inst|vcnt[10]
--operation mode is normal

B1_vcnt[10]_carry_eqn = B1L58;
B1_vcnt[10]_lut_out = B1_vcnt[10] $ (!B1_vcnt[10]_carry_eqn);
B1_vcnt[10] = DFFEAS(B1_vcnt[10]_lut_out, !B1_hsyncint, rst, , , , , B1L71, );


--B1_vcnt[7] is vga_vl:inst|vcnt[7]
--operation mode is arithmetic

B1_vcnt[7]_carry_eqn = B1L97;
B1_vcnt[7]_lut_out = B1_vcnt[7] $ (B1_vcnt[7]_carry_eqn);
B1_vcnt[7] = DFFEAS(B1_vcnt[7]_lut_out, !B1_hsyncint, rst, , , , , B1L71, );

--B1L18 is vga_vl:inst|vcnt[7]~269
--operation mode is arithmetic

B1L18 = CARRY(!B1L97 # !B1_vcnt[7]);


--B1_vcnt[8] is vga_vl:inst|vcnt[8]
--operation mode is arithmetic

B1_vcnt[8]_carry_eqn = B1L18;
B1_vcnt[8]_lut_out = B1_vcnt[8] $ (!B1_vcnt[8]_carry_eqn);
B1_vcnt[8] = DFFEAS(B1_vcnt[8]_lut_out, !B1_hsyncint, rst, , , , , B1L71, );

--B1L38 is vga_vl:inst|vcnt[8]~273
--operation mode is arithmetic

B1L38 = CARRY(B1_vcnt[8] & (!B1L18));


--B1L31 is vga_vl:inst|LessThan~1910
--operation mode is normal

B1L31 = !B1_vcnt[10] & !B1_vcnt[7] & !B1_vcnt[8];


--B1L41 is vga_vl:inst|LessThan~1911
--operation mode is normal

B1L41 = B1_hcnt[10] & (B1_hcnt[9] # B1_hcnt[8] # !B1L1);


--B1L12 is vga_vl:inst|always4~150
--operation mode is normal

B1L12 = B1_vcnt[5] & B1_vcnt[6];


--B1L22 is vga_vl:inst|always4~151
--operation mode is normal

B1L22 = !B1_vcnt[7] & !B1_vcnt[8];


--B1L32 is vga_vl:inst|always4~152
--operation mode is normal

B1L32 = B1L12 # B1_vcnt[2] & B1L02 # !B1L22;


--B1L42 is vga_vl:inst|always4~153
--operation mode is normal

B1L42 = B1_hcnt[10] # B1_vcnt[10] # B1_vcnt[9] & B1L32;


--B1L52 is vga_vl:inst|always4~154
--operation mode is normal

B1L52 = B1_hcnt[5] & (B1_hcnt[2] & B1_hcnt[1] # !B1L7);


--B1L51 is vga_vl:inst|LessThan~1912
--operation mode is normal

B1L51 = !B1_hcnt[7] & !B1_hcnt[6];


--B1L61 is vga_vl:inst|LessThan~1913
--operation mode is normal

B1L61 = !B1_vcnt[3] & !B1_vcnt[2] # !B1L12 # !B1_vcnt[4];


--B1L71 is vga_vl:inst|LessThan~1914
--operation mode is normal

B1L71 = B1_vcnt[10] # B1_vcnt[9] & (!B1L61 # !B1L22);


--B1L26 is vga_vl:inst|pixel[2]~1268
--operation mode is normal

B1L26 = B1_hcnt[10] # B1_hcnt[9] # !B1L3 & !B1L5;


--clk is clk
--operation mode is input

clk = INPUT();


--rst is rst
--operation mode is input

rst = INPUT();


--VGA_HS is VGA_HS
--operation mode is output

VGA_HS = OUTPUT(!B1_hsyncint);


--VGA_VS is VGA_VS
--operation mode is output

VGA_VS = OUTPUT(!B1_vsync);


--VGA_RGB[2] is VGA_RGB[2]
--operation mode is output

VGA_RGB[2] = OUTPUT(B1L16);


--VGA_RGB[1] is VGA_RGB[1]
--operation mode is output

VGA_RGB[1] = OUTPUT(B1L95);


--VGA_RGB[0] is VGA_RGB[0]
--operation mode is output

VGA_RGB[0] = OUTPUT(B1L65);


⌨️ 快捷键说明

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