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

📄 colorbar.map.eqn

📁 this a sample about the VGA BLUE,the function of this code is show blue in VGA,it s default installa
💻 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_blue:inst|hsyncint
--operation mode is normal

B1_hsyncint_lut_out = !B1_hcnt[10] & !B1L7 & B1_hcnt[8] & B1_hcnt[9];
B1_hsyncint = DFFEAS(B1_hsyncint_lut_out, D1__clk0, rst, , , , , , );


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

B1_vsync_lut_out = !B1_vcnt[5] & !B1L8 & B1L9 & B1L3;
B1_vsync = DFFEAS(B1_vsync_lut_out, !B1_hsyncint, rst, , , , , , );


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

B1_enable_lut_out = !B1L31 & (!B1L51 # !B1_hcnt[9] # !B1_hcnt[8]);
B1_enable = DFFEAS(B1_enable_lut_out, D1__clk0, rst, , , , , , );


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

B1_hcnt[10]_carry_eqn = B1L83;
B1_hcnt[10]_lut_out = B1_hcnt[10] $ (!B1_hcnt[10]_carry_eqn);
B1_hcnt[10] = DFFEAS(B1_hcnt[10]_lut_out, D1__clk0, rst, , , , , B1L4, );


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

B1_hcnt[2]_carry_eqn = B1L12;
B1_hcnt[2]_lut_out = B1_hcnt[2] $ (!B1_hcnt[2]_carry_eqn);
B1_hcnt[2] = DFFEAS(B1_hcnt[2]_lut_out, D1__clk0, rst, , , , , B1L4, );

--B1L32 is vga_blue:inst|hcnt[2]~242
--operation mode is arithmetic

B1L32 = CARRY(B1_hcnt[2] & (!B1L12));


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

B1_hcnt[0]_lut_out = !B1_hcnt[0];
B1_hcnt[0] = DFFEAS(B1_hcnt[0]_lut_out, D1__clk0, rst, , , , , B1L4, );

--B1L91 is vga_blue:inst|hcnt[0]~246
--operation mode is arithmetic

B1L91 = CARRY(B1_hcnt[0]);


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

B1_hcnt[1]_carry_eqn = B1L91;
B1_hcnt[1]_lut_out = B1_hcnt[1] $ (B1_hcnt[1]_carry_eqn);
B1_hcnt[1] = DFFEAS(B1_hcnt[1]_lut_out, D1__clk0, rst, , , , , B1L4, );

--B1L12 is vga_blue:inst|hcnt[1]~250
--operation mode is arithmetic

B1L12 = CARRY(!B1L91 # !B1_hcnt[1]);


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

B1_hcnt[4]_carry_eqn = B1L52;
B1_hcnt[4]_lut_out = B1_hcnt[4] $ (!B1_hcnt[4]_carry_eqn);
B1_hcnt[4] = DFFEAS(B1_hcnt[4]_lut_out, D1__clk0, rst, , , , , B1L4, );

--B1L72 is vga_blue:inst|hcnt[4]~254
--operation mode is arithmetic

B1L72 = CARRY(B1_hcnt[4] & (!B1L52));


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

B1_hcnt[5]_carry_eqn = B1L72;
B1_hcnt[5]_lut_out = B1_hcnt[5] $ (B1_hcnt[5]_carry_eqn);
B1_hcnt[5] = DFFEAS(B1_hcnt[5]_lut_out, D1__clk0, rst, , , , , B1L4, );

--B1L92 is vga_blue:inst|hcnt[5]~258
--operation mode is arithmetic

B1L92 = CARRY(!B1L72 # !B1_hcnt[5]);


--B1L1 is vga_blue:inst|LessThan~968
--operation mode is normal

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


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

B1_hcnt[3]_carry_eqn = B1L32;
B1_hcnt[3]_lut_out = B1_hcnt[3] $ (B1_hcnt[3]_carry_eqn);
B1_hcnt[3] = DFFEAS(B1_hcnt[3]_lut_out, D1__clk0, rst, , , , , B1L4, );

--B1L52 is vga_blue:inst|hcnt[3]~262
--operation mode is arithmetic

B1L52 = CARRY(!B1L32 # !B1_hcnt[3]);


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

B1_hcnt[6]_carry_eqn = B1L92;
B1_hcnt[6]_lut_out = B1_hcnt[6] $ (!B1_hcnt[6]_carry_eqn);
B1_hcnt[6] = DFFEAS(B1_hcnt[6]_lut_out, D1__clk0, rst, , , , , B1L4, );

--B1L23 is vga_blue:inst|hcnt[6]~266
--operation mode is arithmetic

B1L23 = CARRY(B1_hcnt[6] & (!B1L92));


--B1L2 is vga_blue:inst|LessThan~969
--operation mode is normal

B1L2 = !B1_hcnt[4] & !B1_hcnt[5] & !B1_hcnt[3] # !B1_hcnt[6];


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

B1_hcnt[7]_carry_eqn = B1L23;
B1_hcnt[7]_lut_out = B1_hcnt[7] $ (B1_hcnt[7]_carry_eqn);
B1_hcnt[7] = DFFEAS(B1_hcnt[7]_lut_out, D1__clk0, rst, , , , , B1L4, );

--B1L43 is vga_blue:inst|hcnt[7]~270
--operation mode is arithmetic

B1L43 = CARRY(!B1L23 # !B1_hcnt[7]);


--B1L7 is vga_blue:inst|always1~276
--operation mode is normal

B1L7 = B1_hcnt[7] $ (B1L2 # !B1_hcnt[2] & B1L1);


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

B1_hcnt[8]_carry_eqn = B1L43;
B1_hcnt[8]_lut_out = B1_hcnt[8] $ (!B1_hcnt[8]_carry_eqn);
B1_hcnt[8] = DFFEAS(B1_hcnt[8]_lut_out, D1__clk0, rst, , , , , B1L4, );

--B1L63 is vga_blue:inst|hcnt[8]~274
--operation mode is arithmetic

B1L63 = CARRY(B1_hcnt[8] & (!B1L43));


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

B1_hcnt[9]_carry_eqn = B1L63;
B1_hcnt[9]_lut_out = B1_hcnt[9] $ (B1_hcnt[9]_carry_eqn);
B1_hcnt[9] = DFFEAS(B1_hcnt[9]_lut_out, D1__clk0, rst, , , , , B1L4, );

--B1L83 is vga_blue:inst|hcnt[9]~278
--operation mode is arithmetic

B1L83 = CARRY(!B1L63 # !B1_hcnt[9]);


--D1__clk0 is VGA_PLL:inst4|altpll:altpll_component|_clk0
D1__clk0 = PLL.CLK0(.FBIN(), .ENA(), .CLKSWITCH(), .ARESET(), .PFDENA(), .SCANCLK(), .SCANACLR(), .SCANDATA(), .COMPARATOR(), .INCLK(clk), .INCLK(), .CLKENA(), .CLKENA(), .CLKENA(), .CLKENA(), .CLKENA(), .CLKENA(), .EXTCLKENA(), .EXTCLKENA(), .EXTCLKENA(), .EXTCLKENA());


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

B1_vcnt[5]_carry_eqn = B1L15;
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, , , , , B1L6, );

--B1L35 is vga_blue:inst|vcnt[5]~233
--operation mode is arithmetic

B1L35 = CARRY(!B1L15 # !B1_vcnt[5]);


--B1_vcnt[0] is vga_blue: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, , , , , B1L6, );

--B1L34 is vga_blue:inst|vcnt[0]~237
--operation mode is arithmetic

B1L34 = CARRY(B1_vcnt[0]);


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

B1_vcnt[1]_carry_eqn = B1L34;
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, , , , , B1L6, );

--B1L54 is vga_blue:inst|vcnt[1]~241
--operation mode is arithmetic

B1L54 = CARRY(!B1L34 # !B1_vcnt[1]);


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

B1_vcnt[2]_carry_eqn = B1L54;
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, , , , , B1L6, );

--B1L74 is vga_blue:inst|vcnt[2]~245
--operation mode is arithmetic

B1L74 = CARRY(B1_vcnt[2] & (!B1L54));


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

B1_vcnt[9]_carry_eqn = B1L95;
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, , , , , B1L6, );

--B1L16 is vga_blue:inst|vcnt[9]~249
--operation mode is arithmetic

B1L16 = CARRY(!B1L95 # !B1_vcnt[9]);


--B1L8 is vga_blue:inst|always3~127
--operation mode is normal

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


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

B1_vcnt[3]_carry_eqn = B1L74;
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, , , , , B1L6, );

--B1L94 is vga_blue:inst|vcnt[3]~253
--operation mode is arithmetic

B1L94 = CARRY(!B1L74 # !B1_vcnt[3]);


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

B1_vcnt[4]_carry_eqn = B1L94;
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, , , , , B1L6, );

--B1L15 is vga_blue:inst|vcnt[4]~257
--operation mode is arithmetic

B1L15 = CARRY(B1_vcnt[4] & (!B1L94));


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

B1_vcnt[6]_carry_eqn = B1L35;
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, , , , , B1L6, );

--B1L55 is vga_blue:inst|vcnt[6]~261
--operation mode is arithmetic

B1L55 = CARRY(B1_vcnt[6] & (!B1L35));


--B1L9 is vga_blue:inst|always4~159
--operation mode is normal

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


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

B1_vcnt[10]_carry_eqn = B1L16;
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, , , , , B1L6, );


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

B1_vcnt[7]_carry_eqn = B1L55;
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, , , , , B1L6, );

--B1L75 is vga_blue:inst|vcnt[7]~269
--operation mode is arithmetic

B1L75 = CARRY(!B1L55 # !B1_vcnt[7]);


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

B1_vcnt[8]_carry_eqn = B1L75;
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, , , , , B1L6, );

--B1L95 is vga_blue:inst|vcnt[8]~273
--operation mode is arithmetic

B1L95 = CARRY(B1_vcnt[8] & (!B1L75));


--B1L3 is vga_blue:inst|LessThan~970
--operation mode is normal

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


--B1L01 is vga_blue:inst|always4~160
--operation mode is normal

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


--B1L11 is vga_blue:inst|always4~161
--operation mode is normal

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


--B1L21 is vga_blue:inst|always4~162
--operation mode is normal

B1L21 = B1L01 # B1_vcnt[2] & B1L9 # !B1L11;


--B1L31 is vga_blue:inst|always4~163
--operation mode is normal

B1L31 = B1_hcnt[10] # B1_vcnt[10] # B1_vcnt[9] & B1L21;


--B1L41 is vga_blue:inst|always4~164
--operation mode is normal

B1L41 = B1_hcnt[4] # B1_hcnt[3] # B1_hcnt[2] & B1_hcnt[1];


--B1L51 is vga_blue:inst|always4~165
--operation mode is normal

B1L51 = B1_hcnt[7] # B1_hcnt[6] # B1_hcnt[5] & B1L41;


--B1L03 is vga_blue:inst|hcnt[5]~281
--operation mode is normal

B1L03 = !B1_hcnt[7] & !B1_hcnt[5] & !B1_hcnt[6] & !B1_hcnt[8];


--B1L4 is vga_blue:inst|LessThan~971
--operation mode is normal

B1L4 = B1_hcnt[10] & (B1_hcnt[9] # !B1L03);


--B1L5 is vga_blue:inst|LessThan~972
--operation mode is normal

B1L5 = !B1_vcnt[3] & !B1_vcnt[2] # !B1L01 # !B1_vcnt[4];


--B1L6 is vga_blue:inst|LessThan~973
--operation mode is normal

B1L6 = B1_vcnt[10] # B1_vcnt[9] & (!B1L5 # !B1L11);


--rst is rst
--operation mode is input

rst = INPUT();


--clk is clk
--operation mode is input

clk = 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(B1_enable);


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

VGA_RGB[1] = OUTPUT(GND);


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

VGA_RGB[0] = OUTPUT(GND);


⌨️ 快捷键说明

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