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

📄 basysrevedemo.vf

📁 actel BASYs开发板自带的demo程序
💻 VF
字号:
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 1995-2006 Xilinx, Inc.  All rights reserved.
////////////////////////////////////////////////////////////////////////////////
//   ____  ____ 
//  /   /\/   / 
// /___/  \  /    Vendor: Xilinx 
// \   \   \/     Version : 8.2.02i
//  \   \         Application : sch2verilog
//  /   /         Filename : BasysRevEDemo.vf
// /___/   /\     Timestamp : 12/05/2006 21:57:03
// \   \  /  \ 
//  \___\/\___\ 
//
//Command: C:\Xilinx\bin\nt\sch2verilog.exe -intstyle ise -family spartan3e -w C:/Projects/Basys_Projects/Basys_REVE/Demo/UncompiledBasysRevEDemo_12-04-06/BasysRevEDemo.sch BasysRevEDemo.vf
//Design Name: BasysRevEDemo
//Device: spartan3e
//Purpose:
//    This verilog netlist is translated from an ECS schematic.It can be 
//    synthesized and simulated, but it should not be modified. 
//
`timescale 1ns / 1ps

module BasysRevEDemo(btn, 
                     CLK1, 
                     CLK2, 
                     sw, 
                     an, 
                     dp, 
                     HSYNC, 
                     led, 
                     seg, 
                     vgaBlue, 
                     vgaGreen, 
                     vgaRed, 
                     VSYNC, 
                     PS2C, 
                     PS2D);

    input [3:0] btn;
    input CLK1;
    input CLK2;
    input [7:0] sw;
   output [3:0] an;
   output dp;
   output HSYNC;
   output [7:0] led;
   output [6:0] seg;
   output [1:0] vgaBlue;
   output [2:0] vgaGreen;
   output [2:0] vgaRed;
   output VSYNC;
    inout PS2C;
    inout PS2D;
   
   wire ck25MHz;
   wire ck100MHz;
   wire [9:0] XLXN_50;
   wire XLXN_60;
   wire XLXN_61;
   wire XLXN_62;
   wire [7:0] XLXN_64;
   wire [9:0] XLXN_77;
   wire [9:0] XLXN_131;
   wire [7:0] XLXN_132;
   wire XLXN_156;
   wire XLXN_157;
   wire [2:0] XLXN_466;
   wire [2:0] XLXN_467;
   wire [1:0] XLXN_468;
   wire XLXN_521;
   wire [11:0] XLXN_523;
   wire XLXN_524;
   wire [9:0] XLXN_525;
   wire [9:0] XLXN_526;
   
   DispCtrl XLXI_1 (.bitMouseLeftBtn(XLXN_524), 
                    .clk25MHz(ck25MHz), 
                    .Hcnt(XLXN_525[9:0]), 
                    .inBlue(XLXN_468[1:0]), 
                    .inGreen(XLXN_467[2:0]), 
                    .inRed(XLXN_466[2:0]), 
                    .Vcnt(XLXN_526[9:0]), 
                    .xPos(XLXN_131[9:0]), 
                    .yPos(XLXN_50[9:0]), 
                    .adrVideoMem(XLXN_523[11:0]), 
                    .outBlue(vgaBlue[1:0]), 
                    .outGreen(vgaGreen[2:0]), 
                    .outRed(vgaRed[2:0]));
   Synchro XLXI_2 (.ck25MHz(ck25MHz), 
                   .Hcnt(XLXN_525[9:0]), 
                   .HS(HSYNC), 
                   .Vcnt(XLXN_526[9:0]), 
                   .VS(VSYNC));
   mouse_controller XLXI_25 (.clk(ck100MHz), 
                             .err(XLXN_60), 
                             .read(XLXN_61), 
                             .rst(XLXN_157), 
                             .rx_data(XLXN_132[7:0]), 
                             .setmax_x(XLXN_157), 
                             .setmax_y(XLXN_157), 
                             .setx(XLXN_157), 
                             .sety(XLXN_157), 
                             .value(XLXN_77[9:0]), 
                             .left(), 
                             .middle(), 
                             .new_event(), 
                             .right(), 
                             .tx_data(XLXN_64[7:0]), 
                             .write(XLXN_62), 
                             .xpos(XLXN_131[9:0]), 
                             .ypos(XLXN_50[9:0]), 
                             .zpos());
   ps2interface XLXI_27 (.clk(ck100MHz), 
                         .rst(XLXN_156), 
                         .tx_data(XLXN_64[7:0]), 
                         .write(XLXN_62), 
                         .busy(), 
                         .err(XLXN_60), 
                         .read(XLXN_61), 
                         .rx_data(XLXN_132[7:0]), 
                         .ps2_clk(PS2C), 
                         .ps2_data(PS2D));
   gnd10 XLXI_43 (.busGnd(XLXN_77[9:0]));
   GND XLXI_62 (.G(XLXN_156));
   GND XLXI_65 (.G(XLXN_157));
   clkdllctrl XLXI_66 (.ckIn(XLXN_521), 
                       .ckDivOut(ck25MHz), 
                       .ckOut(ck100MHz));
   ckMux XLXI_171 (.ck0(CLK1), 
                   .ck1(CLK2), 
                   .sel(sw[7]), 
                   .ckOut(XLXN_521));
   VideoRomNoText XLXI_172 (.AdrB(XLXN_523[11:0]), 
                            .outBlue(XLXN_468[1:0]), 
                            .outGreen(XLXN_467[2:0]), 
                            .outRed(XLXN_466[2:0]));
   VCC XLXI_174 (.P(XLXN_524));
   SnakeLedDemo XLXI_175 (.btn(btn[3:0]), 
                          .ck(CLK1), 
                          .sw(sw[7:0]), 
                          .an(an[3:0]), 
                          .dp(dp), 
                          .led(led[7:0]), 
                          .seg(seg[6:0]));
endmodule

⌨️ 快捷键说明

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