亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? config_controller.tdf

?? IIR、FIR、FFT各模塊程序設計例程
?? TDF
?? 第 1 頁 / 共 3 頁
字號:
----------------------------------------------------------------
-- config_controller.tdf            note: dclk = 3.125MHz
--
--   For Nios/Cyclone Standard (1C20) Development board. 
--
----------------------------------------------------------------
-- This file contains a design (config_controller) which fits in a EPM7128AE
-- device.  It connects to one 8MByte AMD AM29LV065D FLASH memory
-- device.
--
-- This particular design is set up for a 50MHz input clock frequency.  You 
-- can set it up for any input clock frequency you want by changing the
-- "dclk_divider" preload value.
--
-- Upon reset, flash_config will parallel read, then serial-program the 
-- Cyclone device using configuration data stored in the attached flash
-- memory.  The config_controller is a sequencer and address-generator
-- which causes the right data, at the right time, to appear
-- on the Cyclone devices' programming pins.  When flash_config
-- is done programming the Cyclone chip, it "removes itself from
-- the circuit" by tri-stating  all its outputs 
-- (except where specifically noted).
--
-- The flash may contain two separate Cyclone configurations.  For the purpose
-- of this discussion, we will call one configuration "User," and the
-- other configuration "Safe."  The config_controller will
-- -first- attempt to load the Cyclone chip with the User configuration.  If 
-- this fails, it will then attempt to load the Cyclone chip with the Safe
-- configuration.  The idea is:  The User configuration is some design
-- under-development, and the "Safe" configuration is the
-- known-to-work backup in case that doesn't work.  In fact, Altera
-- ships the development board with a factory-programmed Safe configuration
-- that users SHOULD NEVER ERASE OR REPLACE.
--
-- This design can be forced to load the Safe configuration first, 
-- (without first attempting to load the User configuration), by holding
-- the "safe_config" input low (0V).
--
-- The pins on the config_controller design are connected 
-- according to the comments next to each I/O declaration in the 
-- SUBDESIGN section, below.  In addition to those connections, 
-- the FLASH data bits 0..7 must also be connected to the EPM7128AE
-- devices' DATA0 .. DATA7 programming pins. 
--
--
-- The Cyclone device should be wired-up for Passive Serial mode
-- (PS) mode.  Here's how to drive the mode-select pins:
--
--              MSEL0:   Low  (0) |Active Serial mode
--              MSEL1:   Low  (0) | 
--              
--              MSEL0:   High (1) |Passive Serial mode
--              MSEL1:   Low  (0) | 
--
-- Q: What kind of data should the FLASH memory contain?
--
-- A: The FLASH needs to contain a valid Cyclone configuration.
--    Happily, One of Quartus' several output-formats is 
--    "hexout" (Intel Hexadecimal file format, aka IHEX).
--    The hexout-files produced by Quartus directly
--    specifies the contents of the FLASH memory.  Most
--    device-programmers and embedded CPU boot monitors 
--    understand IHEX format files.  The Nios boot-monitor,
--    in particular, can download Quartus' hexout-output directly
--    into AMD flash where it can be used as configuration data
--    by this design (flash_config).  The contents of this IHEX
--    file should be loaded into the FLASH starting at OFFSET
--    0x600000.  You can alter the start-address by changing
--    how the upper bits of the FLASH address are set.
--
-- Q: I want to program a different part (not Cyclone EP1C20)!  What do I do?
-- 
-- A: Indeed, several assumptions about the particular device and 
--    flash-memory 
--
--
-- FEATURE:  FPGA Self-Configuration.
--
--      Sophisticated FPGA designs (e.g. CPU systems)
--      might wish to reconfigure themselves.  This design 
--      supports that functionality by providing the "config_request" 
--      input.  If you drive this pin low (0V), it will restart
--      the configure-from-flash sequence.  If you use this feature,
--      be sure the correspondig FPGA pin has a pull-up resistor so
--      that an unconfigured FPGA (or an FPGA design with no knowledge
--      of this pin) isn't constantly reconfiguring itself.
--
-- BONUS FEATURE: Reset distribution
--
--   The config_controller design has a second, almost-independent
--   function built-in: Board-level reset-signal distribution. Various 
--   on-board devices take different reset logic-senses, so it is 
--   natural to derive individual device-resets from the master
--   (power-on) reset using the MAX device.  As a side-effect, this 
--   also lets the FPGA force a board-level reset when it asserts its
--   config_request output.
-- 
--
----------------------------------------------------------------

TITLE   "config_controller";

INCLUDE "dclk_divider";
INCLUDE "address_counter";
-- JMC Changes
INCLUDE "cf_rst_cnt";
INCLUDE "cf_counter";
-- end
INCLUDE "data_bit_counter";
INCLUDE "shift_register";
INCLUDE "reset_counter";

SUBDESIGN config_controller
(
 cpld_CLKOSC        : INPUT;    -- 50MHz oscillator clock frequency 
 RESET_n            : INPUT;    -- from the reset chip
 STATUS_n           : INPUT;    -- from the Cyclone
 config_request_n   : INPUT;    -- FPGA can Request SELF-CONFIG
 safe_config_n      : INPUT;    -- Safe Config if button pressed 
                                -- or User Config fails to load properly
                                
 flash_A22          : OUTPUT;   -- A22/A21 Driven to 1.  Uses top 1/4
 flash_A21          : OUTPUT;   --   of flash for config images
 flash_A20          : OUTPUT;   -- This is the user/safe image selector
 A[19..0]           : OUTPUT;   -- 2^20 is big enough for 1S10 image.
 D[7..0]            : INPUT;    -- output serialized flash data to pld_DATA0
 pld_DATA0          : BIDIR;    -- Serial data to the Cyclone from ASMI (active)
                                --                         or from Max  (serial)

 CONFIG_n           : OUTPUT;   -- from MAX to the Cyclone
 CONFIG_DONE        : INPUT;    -- from Cyclone to Max when done        
 DCLK               : BIDIR;    -- data clock from Max to Cyclone in serial, 
                                --            from Cyclone to ASMI in active.
-- INIT_DONE          : INPUT; -- indicates user ready Cyclone

 flash_CS_n         : OUTPUT;   -- flash control signals
 flash_OE_n         : OUTPUT;
 flash_RW_n         : OUTPUT;
-- flash_RY_BY_n      : INPUT;    -- useful when waiting for flash

                    
 flash_reset_n      : OUTPUT;  -- MAX device used to distribute reset.
 enet_reset         : OUTPUT;  
 proto1_reset_n     : OUTPUT;
 proto2_reset_n     : OUTPUT; 

 pld_MSEL0          : OUTPUT;  -- Configuration pins. Tell Cyclone chip 
 pld_MSEL1          : OUTPUT;  --    what configuration mode to use. 
-- pld_CS_n           : INPUT;   -- chipselect for ASMI device
-- pld_ASDO           : BIDIR;   -- Active Serial Data Out from Cyclone to ASMI

 loading_led        : OUTPUT;  -- indicators for each LED
 error_led          : OUTPUT;
 user_led           : OUTPUT;
 safe_led           : OUTPUT;

 enet_VLBUS_n       : OUTPUT; -- added to reset ethernet chip on the 1C20 Dev kit

-- user_PB0           : INPUT; 
-- user_PB1           : INPUT;  
-- user_PB2           : INPUT;
-- user_PB3           : INPUT;


-- Input declarations for DEBUG purposes (commented out before programming).
-- Quartus simulator isn't friendly with nodes (no respect), so these temporary
-- outputs can be used to produce simulation signals that cannot be synthesized
-- out by Quartus.
--
-- DCLKQ3_STATE         : OUTPUT; -- dclk q[3] AND state_counting (clkosc divide by 16)
-- DCLKCOUT             : OUTPUT; -- dclk_divider.cout 
-- DBCNTCOUT            : OUTPUT; -- data_bit_counter.cout
-- STATE_CNTG           : OUTPUT; -- state_counting
-- DRIVE_OUT            : OUTPUT; -- drive_outputs
--



)

VARIABLE

  -- instantiate these counters and a shift register
  The_Dclk_Divider           : dclk_divider; 
  The_Address_Counter        : address_counter;
-- JMC Changes
  The_CF_RST_Counter         : cf_rst_cnt;
  The_CF_Counter             : cf_counter;
-- end  
  The_Data_Bit_Counter       : data_bit_counter;
  The_Shift_Register         : shift_register;
  The_Reset_Counter          : reset_counter;
 
  obuf_flash_A22             : TRI;    -- output buffers for outgoing signals
  obuf_flash_A21             : TRI;
  obuf_flash_A20             : TRI;
  obuf_A[19..0]              : TRI;

  obuf_flash_CS_n            : TRI; 
  obuf_flash_OE_n            : TRI; 
  obuf_flash_RW_n            : TRI; 
  obuf_DCLK                  : TRI;
  obuf_pld_DATA0             : TRI;

  obuf_CONFIG_n_oe	     : TRI;  -- SPR 128193
         
  CONFIG_n_reg               : DFFE;  -- registered logic signals
  State_Waiting_For_STATUS_n : DFFE;
  State_Counting             : DFFE;
  State_Done                 : DFFE;
  State_Error                : DFFE;
  State_JTAG_Config          : DFFE;        

  try_asmi_config            : DFF;  

  eek_an_error               : DFF;
  try_user_config            : DFF;
  counter_wrapped            : DFF;
  d1_safe_config             : DFFE;
  d2_safe_config             : DFFE;
  d1_reset_source            : DFFE;
  d2_reset_source            : DFFE;
  cause_was_safe_config      : DFF;
  sync_config_request        : DFF;        
  Reset_Pulse                : DFF;
-- JMC Changes
  cf_Reset_Pulse             : DFF;
-- end

  -- Logic Nodes  
  --   (Hint: If you ever want to see "NODEs"  while simulating, you are
  --   advised to add temporary output pins that they  must be assigned to.
  --   Only then will Quartus simulator demonstrate proper simulation.)  
  restart_sequence           : NODE; 
  dclkq3_stcntg              : NODE; 
  dclk_en                    : NODE; 
  drive_outputs              : NODE; 
  safe_config_rising_edge    : NODE; 
  reset_source_rising_edge   : NODE; 
  reset_source               : NODE; 
  byte_count_en              : NODE;
  load                       : NODE; 
  DATA0                      : NODE;
  user_led_blinking          : NODE;

BEGIN

  ----------------
  -- The_Shift_Register 
  --
  -- When Data_Bit_Counter = [000], 1 bit shiftout gets data from D[7..0]
  -- shifts out through pld_DATA0 to the Cyclone one bit per Data_Bit_Counter
  -- cycle.
 
        -- High (1): load operation
        -- Low  (0): shift operation
 load   = The_Data_Bit_Counter.cout; -- all three low loads shift register
-- load     = !The_Data_Bit_Counter.q[2]  -- all three low loads shift register
--      & !The_Data_Bit_Counter.q[1]        -- High (1): load operation
--      & !The_Data_Bit_Counter.q[0];       -- Low (0): shift operation
        
  The_Shift_Register.load = load; -- let's make a shorter name to our useful
                                  -- load pin

  The_Shift_Register.data[6..0] = D[7..1];  -- scoot the rest into the shift
                                            -- register (to shiftout)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
丝袜美腿高跟呻吟高潮一区| 欧美日本精品一区二区三区| 美女视频一区二区三区| 亚洲超丰满肉感bbw| 亚洲一区二三区| 亚洲va韩国va欧美va精品| 亚洲国产精品久久人人爱| 亚洲一区在线视频观看| 婷婷久久综合九色综合绿巨人 | 在线观看日韩国产| 欧美中文一区二区三区| 欧美在线短视频| 欧美电影一区二区| 欧美不卡一区二区| 国产午夜亚洲精品午夜鲁丝片| 欧美激情一区二区在线| 日韩毛片精品高清免费| 亚洲电影你懂得| 国内精品久久久久影院色| 91婷婷韩国欧美一区二区| 亚洲黄色性网站| 日韩在线观看一区二区| 国产精品一区二区你懂的| 成+人+亚洲+综合天堂| 欧美亚洲精品一区| 久久综合九色综合欧美就去吻| 日本一区二区视频在线观看| 国产精品视频看| 亚洲第一激情av| 国产九色sp调教91| 欧美日韩在线不卡| 精品国产髙清在线看国产毛片| 欧美国产日韩a欧美在线观看| 亚洲精品中文在线观看| 久久国产成人午夜av影院| 99精品欧美一区二区三区综合在线| 日本韩国一区二区三区| xnxx国产精品| 亚州成人在线电影| www.亚洲精品| 日韩欧美国产小视频| 一区在线观看视频| 国产主播一区二区三区| 欧美日韩一级片在线观看| 国产无人区一区二区三区| 日韩综合一区二区| 亚洲成人www| 蜜桃传媒麻豆第一区在线观看| 99视频精品免费视频| 久久这里只有精品视频网| 亚洲一区视频在线观看视频| 成人激情视频网站| 国产亚洲精品福利| 蜜臀99久久精品久久久久久软件| 在线观看欧美精品| 亚洲视频综合在线| 不卡的av网站| 久久色在线观看| 久久99精品一区二区三区三区| 欧美午夜宅男影院| 一区二区三区蜜桃网| 99国产一区二区三精品乱码| 国产亚洲欧美一级| 国产一区二区三区高清播放| 日韩免费视频线观看| 日韩国产精品久久| 欧美日韩综合色| 亚洲国产wwwccc36天堂| 色94色欧美sute亚洲线路一久 | 国产精品传媒在线| 国产一区二区三区久久久| 日韩美女视频一区二区在线观看| 亚洲大尺度视频在线观看| 91国内精品野花午夜精品| 一区二区三区色| 成人黄色片在线观看| 国产三级精品视频| 不卡一二三区首页| 一区二区三区欧美视频| 欧美视频一区在线| 男女男精品网站| 精品国产伦理网| 国产一区二区0| 国产精品超碰97尤物18| 在线视频你懂得一区| 亚洲成人午夜电影| 欧美videos大乳护士334| 精品亚洲免费视频| 久久久一区二区三区捆绑**| 懂色av中文字幕一区二区三区| 国产精品的网站| 欧美吞精做爰啪啪高潮| 免费一区二区视频| 国产清纯白嫩初高生在线观看91 | 日本特黄久久久高潮| 欧美成人伊人久久综合网| 国产一区二区不卡在线| 中文字幕日韩av资源站| 欧美日韩一区小说| 狠狠v欧美v日韩v亚洲ⅴ| 国产精品久久久久久久久免费桃花 | 欧美三级视频在线| 久久99精品国产.久久久久| 国产亚洲精久久久久久| 欧美无砖专区一中文字| 国产一区二区三区美女| 一区二区三区资源| 久久久久久久久久电影| 日本道色综合久久| 寂寞少妇一区二区三区| 亚洲综合久久久久| 国产亚洲欧洲一区高清在线观看| 91福利社在线观看| 国产成人午夜视频| 午夜伦欧美伦电影理论片| 亚洲国产精品t66y| 日韩亚洲欧美在线| 91一区二区三区在线观看| 免费在线观看视频一区| 亚洲少妇中出一区| 久久久一区二区| 欧美丰满美乳xxx高潮www| av亚洲精华国产精华精| 精品一区二区三区的国产在线播放| 一级精品视频在线观看宜春院| 久久综合九色综合欧美亚洲| 色综合久久久久| 国产传媒欧美日韩成人| 免费观看30秒视频久久| 亚洲国产aⅴ成人精品无吗| 亚洲国产精品成人久久综合一区| 久久精品国产在热久久| 亚洲大片在线观看| 亚洲女人小视频在线观看| 欧美国产日韩精品免费观看| 日韩欧美国产电影| 日韩一区和二区| 欧美色图激情小说| 国内欧美视频一区二区| 亚洲欧洲av在线| 亚洲国产一区视频| 免费一级片91| 国产一区二区三区四| 国产成人免费网站| 91免费观看视频在线| 国产成人av福利| 国产成人精品一区二区三区网站观看| 亚洲香蕉伊在人在线观| 日日夜夜一区二区| 国产精品一级在线| 91在线观看污| 亚洲精品一区二区三区四区高清| 精品久久久久一区| 日韩伦理电影网| 亚洲一区在线看| 成人一区二区三区| 亚洲欧洲国产专区| 91麻豆国产精品久久| 国产成人午夜99999| 成人av午夜电影| av激情成人网| 色诱视频网站一区| 欧美三级三级三级| 91精品国产欧美一区二区成人| 91精品国产入口在线| www久久久久| 欧美国产欧美亚州国产日韩mv天天看完整| 国产喂奶挤奶一区二区三区| 国产精品不卡在线| 亚洲电影欧美电影有声小说| 美女在线观看视频一区二区| 国产在线乱码一区二区三区| 国产99精品视频| 91蝌蚪porny九色| 91精品综合久久久久久| 精品va天堂亚洲国产| 亚洲欧美自拍偷拍色图| 亚洲第一在线综合网站| 国内精品不卡在线| 91麻豆免费在线观看| 欧美一级xxx| 久久精品水蜜桃av综合天堂| 91精品国产综合久久福利软件| 久久日韩粉嫩一区二区三区| 亚洲色图19p| 国产自产v一区二区三区c| 91蜜桃视频在线| 久久久精品免费网站| 一区二区在线电影| 激情久久五月天| 欧洲一区二区三区免费视频| 久久看人人爽人人| 视频一区欧美精品| 成人综合激情网| 欧美日韩久久久久久| 色av成人天堂桃色av| 精品一区二区三区免费毛片爱| 国产精品成人一区二区艾草| 欧美午夜精品久久久久久孕妇| 久久久国产精华|