亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
久久综合色婷婷| 精品国产一区二区在线观看| 91国产免费观看| 高清日韩电视剧大全免费| 久久国产欧美日韩精品| 免费欧美在线视频| 免费成人av资源网| 久88久久88久久久| 国产成人8x视频一区二区| 国产成人福利片| 99精品视频在线观看| 91丨porny丨首页| 欧美性感一类影片在线播放| 欧美日韩中字一区| 欧美一级生活片| 久久久欧美精品sm网站| 久久久久久久综合| 中文一区一区三区高中清不卡| 国产精品久久久久婷婷二区次| **性色生活片久久毛片| 亚洲一区自拍偷拍| 日本sm残虐另类| 国产精品伊人色| 色婷婷综合五月| 日韩三级在线免费观看| 日本一区二区三级电影在线观看| 中文字幕亚洲电影| 视频一区在线播放| 风间由美中文字幕在线看视频国产欧美| 99久久久久免费精品国产| 欧美日韩免费一区二区三区| 日韩免费视频一区二区| 亚洲色图另类专区| 老司机免费视频一区二区三区| 国产成人精品综合在线观看| 欧美性一区二区| 久久亚洲精华国产精华液| 亚洲人成网站色在线观看| 日本美女视频一区二区| 99re在线精品| 久久久蜜桃精品| 亚洲一区精品在线| 国产乱人伦偷精品视频不卡| 欧美性一级生活| 国产欧美日本一区二区三区| 五月婷婷久久综合| 成人动漫一区二区三区| 欧美一级艳片视频免费观看| 亚洲欧美一区二区三区国产精品| 经典三级视频一区| 欧美少妇bbb| 国产精品美女一区二区在线观看| 青青青伊人色综合久久| 91啦中文在线观看| 久久精品夜色噜噜亚洲aⅴ| 视频一区二区三区入口| 91国偷自产一区二区开放时间 | 成人少妇影院yyyy| 在线不卡一区二区| 亚洲欧美韩国综合色| 国产成人精品综合在线观看 | 国产一区二区日韩精品| 欧美日韩一区二区三区不卡| 国产精品灌醉下药二区| 丁香另类激情小说| 久久久久9999亚洲精品| 久久se这里有精品| 精品国产自在久精品国产| 日韩高清一区在线| 欧美日韩在线一区二区| 亚洲国产日日夜夜| 欧美色图天堂网| 一区二区三区在线观看国产 | 日韩和的一区二区| 欧美三级日韩在线| 亚洲1区2区3区视频| 欧美性色黄大片| 亚洲一区二区三区四区五区中文| 色综合久久综合中文综合网| 亚洲色图另类专区| 在线观看91精品国产入口| 亚洲免费观看视频| 91国产成人在线| 性做久久久久久久免费看| 欧美精选午夜久久久乱码6080| 亚洲在线中文字幕| 欧美日韩亚洲高清一区二区| 天堂蜜桃91精品| 日韩免费视频一区| 国产精品18久久久久久vr| 久久亚洲精品国产精品紫薇| 成人黄色大片在线观看| 亚洲免费在线观看| 欧美日韩一区二区三区在线看| 亚洲大片在线观看| 日韩欧美成人一区二区| 国产成人av一区二区三区在线观看| 国产午夜精品美女毛片视频| www.视频一区| 亚洲午夜免费福利视频| 精品精品欲导航| 成人免费不卡视频| 午夜成人在线视频| 精品国产乱码久久久久久老虎| 成人综合婷婷国产精品久久| 亚洲免费av高清| 欧美成人高清电影在线| 91在线视频观看| 天天av天天翘天天综合网 | 99热精品国产| 偷拍日韩校园综合在线| 久久免费的精品国产v∧| 色呦呦国产精品| 久久99深爱久久99精品| 国产精品国产三级国产三级人妇| 欧美日韩一区二区三区视频| 国产乱淫av一区二区三区 | 欧美videos大乳护士334| 国产91精品一区二区麻豆亚洲| 夜夜揉揉日日人人青青一国产精品 | 欧美精品一区二区三| 色婷婷一区二区三区四区| 久久精品理论片| 一区二区在线看| 国产视频一区二区在线| 制服丝袜成人动漫| 99re成人在线| 粉嫩在线一区二区三区视频| 奇米精品一区二区三区在线观看| 亚洲欧洲一区二区三区| 久久综合色一综合色88| 4438x亚洲最大成人网| 91国模大尺度私拍在线视频| 高清beeg欧美| 国产一区在线不卡| 琪琪久久久久日韩精品| 亚洲sss视频在线视频| 一区二区三区四区中文字幕| 国产日韩欧美麻豆| 精品国产免费一区二区三区香蕉| 欧美性xxxxxxxx| 欧美午夜电影一区| 色诱亚洲精品久久久久久| 成人性生交大合| 国产成人在线影院| 国产精品18久久久久| 国内精品国产三级国产a久久| 日本欧美在线观看| 日本欧美在线观看| 日本中文在线一区| 奇米777欧美一区二区| 秋霞电影网一区二区| 免费人成在线不卡| 麻豆精品视频在线观看视频| 男女视频一区二区| 久久草av在线| 国产美女在线精品| 成人a级免费电影| 成人黄色综合网站| 91一区二区在线观看| 日本韩国一区二区| 欧美人xxxx| 欧美一二区视频| 精品久久国产老人久久综合| 精品国产伦一区二区三区观看体验| 日韩欧美电影一区| 欧美国产精品一区二区三区| 国产日产精品1区| 椎名由奈av一区二区三区| 悠悠色在线精品| 亚洲午夜久久久久久久久久久 | 国产不卡在线一区| 成人动漫视频在线| 精品视频在线免费观看| 日韩视频一区二区| 国产精品三级视频| 亚洲福利国产精品| 久久99久久99精品免视看婷婷| 国产一区二区调教| 97久久人人超碰| 在线播放中文字幕一区| 国产三级精品三级| 亚洲免费在线看| 极品销魂美女一区二区三区| 成人综合婷婷国产精品久久免费| 欧洲一区在线观看| 久久久青草青青国产亚洲免观| 亚洲女人的天堂| 日日夜夜精品视频免费| 成人av动漫网站| 日韩视频中午一区| 艳妇臀荡乳欲伦亚洲一区| 国产一区二区视频在线| 在线免费视频一区二区| 久久蜜臀精品av| 手机精品视频在线观看| 成人av网站免费观看| 欧美videos大乳护士334| 亚洲午夜免费电影| 粉嫩13p一区二区三区|