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

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

?? em_de2_pio.pl

?? DE2_PIO Controller For Altera SOPC Builder and NIOS on DE2 kit board
?? PL
?? 第 1 頁 / 共 2 頁
字號:
#Copyright (C)1991-2006 Altera Corporation#Any megafunction design, and related net list (encrypted or decrypted),#support information, device programming or simulation file, and any other#associated documentation or information provided by Altera or a partner#under Altera's Megafunction Partnership Program may be used only to#program PLD devices (but not masked PLD devices) from Altera.  Any other#use of such megafunction design, net list, support information, device#programming or simulation file, or any other related documentation or#information is prohibited for any other purpose, including, but not#limited to modification, reverse engineering, de-compiling, or use with#any other silicon devices, unless such use is explicitly licensed under#a separate agreement with Altera or a megafunction partner.  Title to#the intellectual property, including patents, copyrights, trademarks,#trade secrets, or maskworks, embodied in any such megafunction design,#net list, support information, device programming or simulation file, or#any other related documentation or information provided by Altera or a#megafunction partner, remains with Altera, the megafunction partner, or#their respective licensors.  No other licenses, including any licenses#needed under any third party's intellectual property, are provided herein.#Copying or modifying any file, or portion thereof, to which this notice#is attached violates this copyright.################################################################# DE2 PIO## This module implements a simple parallel input/output port # that can be accessed from the CPU's memory bus.## -- REGISTER MAP (all registers are Data_Width wide):##  Name       	   |  Addr.  |  Function#  ----------------|---------|-------------------------------------------------#  Data-in    	   | 0 (rd)  | Data value currently on pio inputs (read-only).#  Data-out   	   | 0 (wr)  | New value to drive on pio outputs (write-only).#  ----------------|---------|-------------------------------------------------#   Data Direction | 1 (r/w) | (optional): Individual tristate control for#                  |         | each port bit.  1=out, 0=in.#  ----------------|---------|-------------------------------------------------#   Interrupt Mask | 2 (r/w) | (optional): Per-bit irq enable/disable#  ----------------|---------|-------------------------------------------------#   Edge Capture   | 3 (r/w) | (optional): Per-bit edge-capture register.#  ----------------|---------|-------------------------------------------------## By default, the PIO block will have only one internal address# (Data-in / Data-out).  The other three registers only "pop into existence"# if the "has_tri" (--> Data Direction), "irq_type"# (--> Interrupt Mask), or "edge_type" parameters are set.## There are two distinct applications of this module:  One where the# I/O bits of the parallel port are connected to on-chip devices, and# the other where the parallel port is connected off-chip.## ** On-chip pio connections##  In this case, there is an associated input register and output register#  for every bit in the PIO block.  If you write to the output register#  you set a value on the pio outputs, and if you read from the input#  register you get the current value from the pio inputs.  The input#  and output wires are distinct.##  By default, the pio block will have both input and output pins.#  you can independently control the presence/absence of both#  inputs and outputs with the two parameters $PIO_INPUT_PINS and#  $PIO_OUTPUT_PINS, respectively.  These are true/false parameters## ** Off-chip pio connections.## If you so desire, the pio block can have combined inout # (bidirectional input/output) pins instead of separate input pins and# separate output pins.  This means the outputs can *only* go to# external device pins--it's the only place on an Apex chip where# physical tri-state structures exist.  If this is what you want,# then you set the $PIO_TRISTATE_PINS attribute.  In this case,# the pio register set will also include a data-direction register# for software control of the output drivers.## If you set the $PIO_TRISTATE_PINS parameter true, then# this module's in_port and out_port connections will "go away" and# be replaced by a single n-bit connection named bidir_port. It# is the caller's (instantiator's) responsibility to connect# all the individual bits of bidir_port to an I/O port on the top-level# of the APEX device's design.## --Variable Width## This module can be between 1 and 32 bits wide, giving you# between 1 and 32 I/Os you can control (that'd be 1..32 inputs and# 1..32 outputs, if $PIO_TRISTATE_PINS is false).## --Edge Capture## By default, the pio block just lets you read input bit levels.  You # may, however, optionally choose an edge-capture function by# setting the PIO_EDGE_CAPTURE parameter to one of the three# values "RISING", "FALLING", or "ANY."  If the PIO_EDGE_CAPTURE# parameter has one of these values, then the pio block will# include an additional, CPU-readable edge-capture register as# internal register #3.## Each bit in the edge-capture register is set when the# requested edge type ("RISING", "FALLING," or "ANY"), is seen # on the corresponding input-bit.  Once any bit in the edge-capture# register is set, it can only be cleared by a -write- operation to the# edge-capture register.  A write-operation to the edge-capture register# clears all bits.## The default value for PIO_EDGE_CAPTURE is "NONE," corresponding to# no edge capture feature and no edge-capture register.### --Interrupt Control## By default, the pio block does not generate an interrupt, and has# no interrupt-control logic or registers.  If you set the # $PIO_INTERRUPT parameter to "LEVEL" or "EDGE", then the block will include# both an irq-pin to the CPU and an internal interrupt-masking register.# # If PIO_INTERRUPT is set to "LEVEL," then the irq output will be driven# active (1) whenever any given input-bit is true (1), and the # corresponding bit in the interrupt-masking register is also true (1).## If PIO_INTERRUPT is set to "EDGE," then the irq output will be driven# active (1) whenever any given bit in the edge-capture register is true (1)# and the corresponding bit in the interrupt-masking register is also # true (1).  PIO_INTERRUPT may -not- be set to edge unless the # PIO_EDGE_CAPTURE parameter is also set to one of the three values# "RISING," "FALLING," or "ANY."### --No output-data read-back.## Many pio-devices like this allow software to read-back the value# currently sitting in the data-output registers.  This feature, while# sometimes handy, is not strictly necessary--The software can know,# after all, what value was written into the pio output register by# other means (e.g. remembering the value).  An output-register readback # feature would prevent unused register bits from being "eaten" (see above), # and would increase the hardware complexity of the readback mux. # In the name of keeping this device as simple and LE-efficient as possible,# the output-register read-back feature has been eliminated.## Assumptions:## * The internal registers are presumed to run off the same clock (clk) #   as the CPU.## * This is a "normal" peripheral with one-wait-state read access.## * This peripheral is not bytewise-writeable.  A case can be made for#   a byte-writeable pio, but simplicity is the order of the day.#################################################################use europa_all;use strict;#START:my $project = e_project->new(@ARGV);# Make a copy so we don't write-back derived parameter values, etc.my $Options = &copy_of_hash($project->WSA());my $SBI     = &copy_of_hash($project->SBI("s1"));# Add the data-width in with our options (this is something we care about).# Along with the "Has_IRQ" setting, which we also care about.#$Options->{width}   = $SBI->{Data_Width};$Options->{has_irq} = $SBI->{Has_IRQ};&make_pio ($project->top(), $Options);$project->output();# Just one more thing...# poke the driven testbench value into the ptf file if requiredif ($Options->{Do_Test_Bench_Wiring} &&    ($Options->{has_tri} || $Options->{has_in})    ){   my $port = ($Options->{has_in})? "in_port":        ($Options->{has_tri})? "bidir_port":       &ribbit ("bad port selection");   $project->module_ptf()->{PORT_WIRING}   {"PORT $port"}{test_bench_value} = eval        ($Options->{Driven_Sim_Value});   $project->ptf_to_file();}################################################################# Validate_PIO_Options## Checks all my PTF-parameters to be sure they're good.#################################################################sub Validate_PIO_Options{  my ($Options) = (@_);  # Boolean variables specify what kind of I/O we have:  #  &validate_parameter ({hash    => $Options,                        name    => "has_tri",                        type    => "boolean",                        default => 0,                       });  &validate_parameter ({hash    => $Options,                        name    => "has_in",                        type    => "boolean",                        default => 0,                       });  &validate_parameter ({hash    => $Options,                        name    => "has_out",                        type    => "boolean",                        default => 1,                       });  # Check for illegal combinations.  If we have a tri-state port,  # then we can't have input/output:  &validate_parameter ({hash         => $Options,                        name         => "has_tri",                        excludes_all => ["has_in", "has_out"],                       });  &validate_parameter ({hash    => $Options,                        name    => "irq_type",                        allowed => ["NONE", "LEVEL", "EDGE"],                       });  &validate_parameter ({hash    => $Options,                        name    => "edge_type",                        allowed => ["NONE", "RISING", "FALLING", "ANY"],                       });  &validate_parameter ({hash    => $Options,                        name    => "width",                        range   => [1, 32],                       });  &validate_parameter ({hash    => $Options,                        name    => "reset_value",

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
911精品产国品一二三产区| 国产精品全国免费观看高清| 91国偷自产一区二区开放时间| 国内精品免费**视频| 天堂va蜜桃一区二区三区 | 亚洲国产美国国产综合一区二区| 欧美网站一区二区| 高清成人免费视频| 国产精品一区二区三区网站| 一区二区高清在线| 亚洲欧美一区二区在线观看| 国产精品福利av| 国产清纯白嫩初高生在线观看91| 久久品道一品道久久精品| 精品电影一区二区| 亚洲精品在线观| 欧美电影免费提供在线观看| 日韩一级片网址| 91蜜桃视频在线| 色8久久人人97超碰香蕉987| 91日韩一区二区三区| 99精品视频在线观看| 欧美在线观看你懂的| 91成人免费在线| 制服丝袜亚洲色图| 欧美一区二区三区小说| 欧美在线你懂的| 欧美日韩一级黄| 91精品国产综合久久香蕉的特点| 欧美xxx久久| 国产欧美一区二区精品性色| 丁香婷婷综合色啪| 成人动漫中文字幕| 成人三级在线视频| 欧美三级一区二区| 欧美一区二区福利视频| 国产午夜精品一区二区三区嫩草| 中文字幕va一区二区三区| 亚洲综合激情小说| 麻豆精品久久精品色综合| 亚洲成av人片在线| 国产一区二区调教| 成人免费视频一区| 欧美日韩一区成人| 欧美xxxx老人做受| 亚洲人妖av一区二区| 亚洲午夜免费电影| 三级成人在线视频| 不卡的av电影| 欧美日韩一区二区在线观看视频| 久久综合色鬼综合色| 亚洲天堂网中文字| 看片的网站亚洲| 成人短视频下载| 成人亚洲精品久久久久软件| 欧美精选一区二区| 国产丝袜美腿一区二区三区| 亚洲bt欧美bt精品777| 毛片av一区二区三区| 在线亚洲+欧美+日本专区| 日韩亚洲欧美综合| 国产拍揄自揄精品视频麻豆| 一区二区三区在线高清| 午夜亚洲福利老司机| 国产精品一二三四| 亚洲激情自拍偷拍| 三级久久三级久久| 国产一区二区电影| 中文字幕中文字幕一区二区 | 在线观看视频一区| 亚洲成人7777| 欧美吞精做爰啪啪高潮| 一区二区三区波多野结衣在线观看| 国产福利精品一区| 欧美成人精品福利| 亚洲激情男女视频| 亚洲国产一区二区三区| 91免费在线视频观看| 久久亚洲一区二区三区明星换脸 | 成人免费在线视频| 日韩精品亚洲一区| 麻豆精品新av中文字幕| 欧美日韩精品一区二区三区四区 | 中文字幕的久久| av激情亚洲男人天堂| 五月天中文字幕一区二区| 欧美国产一区二区| 成人福利在线看| 欧美韩国日本综合| 92精品国产成人观看免费| 在线成人av影院| 日产国产欧美视频一区精品| 555www色欧美视频| 日韩 欧美一区二区三区| 欧美夫妻性生活| 蜜桃视频在线观看一区| 欧美三级中文字幕在线观看| 日韩写真欧美这视频| 亚洲久本草在线中文字幕| 国产成人精品影院| 久久久久久久综合色一本| 国精产品一区一区三区mba视频| 91香蕉国产在线观看软件| 亚洲视频中文字幕| 丁香桃色午夜亚洲一区二区三区| 欧美一区二区三区视频| 91蜜桃视频在线| 一区二区三区日韩精品| 欧美一区二区久久| 国产在线精品一区二区三区不卡 | 在线一区二区三区| 久久综合99re88久久爱| 久久蜜桃av一区二区天堂 | 免费观看成人鲁鲁鲁鲁鲁视频| 欧美日韩免费观看一区三区| 一区二区三区四区不卡在线| 国产一区三区三区| 久久婷婷国产综合国色天香| 国产一区在线看| 91精选在线观看| 捆绑变态av一区二区三区| 欧美一级搡bbbb搡bbbb| 亚洲大片免费看| 欧美高清一级片在线| 五月激情综合婷婷| 欧美日韩精品久久久| 青青草成人在线观看| 制服丝袜亚洲精品中文字幕| 亚洲精品成人在线| 欧美精品久久一区| 免费人成黄页网站在线一区二区| 欧美精品一区二区三区蜜臀 | 成人午夜视频网站| 亚洲乱码日产精品bd| 欧美亚日韩国产aⅴ精品中极品| 亚洲天天做日日做天天谢日日欢| 欧美日本乱大交xxxxx| 奇米精品一区二区三区四区| 久久一留热品黄| 白白色 亚洲乱淫| 日韩制服丝袜先锋影音| 精品少妇一区二区三区在线播放| 国产成人亚洲综合色影视| 国产精品美女久久久久久久久久久 | 欧美精品18+| 狠狠色狠狠色综合日日91app| 中文字幕一区二区5566日韩| 在线看一区二区| 中文字幕成人av| 欧美另类videos死尸| 精品一区二区三区的国产在线播放| 国产精品你懂的| 欧美视频在线播放| 国产一区二区主播在线| 亚洲日本一区二区三区| 日韩欧美在线不卡| 成人免费的视频| 国产调教视频一区| 欧美日韩另类一区| 国产在线不卡视频| 五月天欧美精品| 久久亚洲春色中文字幕久久久| 色嗨嗨av一区二区三区| 日韩福利电影在线| 亚洲欧美日韩国产综合在线| 91精品一区二区三区在线观看| 国产在线看一区| 亚洲成人自拍一区| 日韩欧美你懂的| 在线看国产一区二区| 久久精品国产免费| 亚洲专区一二三| 久久久久高清精品| 日韩你懂的电影在线观看| 成人免费va视频| 激情久久久久久久久久久久久久久久| 国产精品女主播av| 久久夜色精品国产噜噜av| 欧美在线色视频| 国产美女精品人人做人人爽| 亚洲国产精品一区二区尤物区| 精品国产乱码久久| 在线播放视频一区| av网站免费线看精品| 国产乱子伦视频一区二区三区| 亚洲午夜一区二区三区| 亚洲色图欧美激情| 久久久91精品国产一区二区精品 | 免费观看成人av| 亚洲在线视频网站| 亚洲日穴在线视频| 国产三级三级三级精品8ⅰ区| 欧美一区二区三区精品| 色综合网色综合| 狠狠色2019综合网| 免费成人小视频| 亚洲欧美在线高清| 中文字幕一区二区三区蜜月 | 久久九九全国免费| wwwwww.欧美系列|