1、问题的提出:spartan6中不允许时钟信号直接连到IO口上面?

2、解决办法:

ODDR2的使用

ODDR2Primitive: Double Data Rate Output D Flip-Flop with Optional Data Alignment, Clock Enable and Programmable Synchronous or Asynchronous Set/Reset

The ODDR2 is an output double data rate (DDR) register useful in producing double data-rate signals exiting the FPGA. The ODDR2 requires two clocks to be connected to the component, C0 and C1, so that data is provided at the positive edge of both C0 and C1 clocks. The ODDR2 features an active high clock enable port, CE, which may be used to suspend the operation of the registers and both set and reset ports that may be configured to be synchronous or asynchronous to the respective clocks. The ODDR2 has an optional alignment feature, which allows data to be captured by a single clock yet clocked out by two clocks.

Usage

The ODDR2 currently must be instantiated in order to be incorporated into the design. In order to change the default behavior of the ODDR2, attributes may be modified via the generic map (VHDL) or named parameter value assignment (Verilog) as a part of the instantiated component. The ODDR2 may be either connected directly to a top-level output port in the design where an appropriate output buffer can be inferred or to an instantiated OBUF, IOBUF, OBUFDS, OBUFTDS or IOBUFDS. All inputs and outputs of this component should either be connected or properly tied off.

Available Attributes

DDR_ALIGNMENT – Specifies how the data will be captured on the D0 and D1 ports. When set to "NONE", the data on the D0 port will be aligned with the positive edge of the C0 clock and the data on the D1 port will be aligned with the positive edge of the C1 clock. When set to "C0", the data on both D0 and D1 ports are aligned to the positive edge of the C0 clock and when set to "C1", the data on the D0 and D1 ports are aligned to the positive edge of the C1 clock. The output data Q is always presented on the positive edge of both clocks.

INIT – Specifies the initial value upon power-up or the assertion of GSR for the Q port. This attribute may be set to 1 or 0.

SRTYPE – When set to "SYNC", the reset, R, and set, S, ports are synchronous to the associated clock inputs. When set to "ASYNC", the set and reset ports are asynchronous to the clock.

VHDL Instantiation Templatede style="color: rgb(69, 69, 69); line-height: 21px;" >
-- ODDR2: Output Double Data Rate Input Register with
-- Set, Reset and Clock Enable. Spartan-3E
-- Xilinx HDL Libraries Guide version 7.1i

ODDR2_inst : ODDR2
generic map (
DDR_ALIGNMENT => "NONE", -- Sets output alignment 
-- to "NONE", "C0" or "C1"
INIT => '0', -- Sets initial state of the Q0 
-- output to ‘0’ or ‘1’
SRTYPE =>= "SYNC") -- Specifies "SYNC" or "ASYNC" 
-- set/reset
port map (
Q => Q, -- 1-bit DDR output data
C0 => C0, -- 1-bit clock input
C1 => C1, -- 1-bit clock input
CE => CE, -- 1-bit clock enable input
D0 => D0, -- 1-bit data input (associated with C1)
D1 => D1, -- 1-bit data input (associated with C1)
R => R, -- 1-bit reset input
S => S -- 1-bit set input
);

-- End of ODDR2_inst instantiation 
de>Verilog Instantiation Templatede style="color: rgb(69, 69, 69); line-height: 21px;" >
// ODDR2: Output Double Data Rate Input Register with
// Set, Reset and Clock Enable. Spartan-3E
// Xilinx HDL Libraries Guide version 7.1i

ODDR2 #(
// The following parameters specify the behavior
// of the component.
.DDR_ALIGNMENT("NONE"), // Sets output alignment 
// to "NONE", "C0" or "C1"
.INIT(1'b0), // Sets initial state of the Q 
// output to 1'b0 or 1'b1
.SRTYPE("SYNC") // Specifies "SYNC" or "ASYNC" 
// set/reset
ODDR2_inst (
.Q(Q), // 1-bit DDR output data
.C0(C0), // 1-bit clock input
.C1(C1), // 1-bit clock input
.CE(CE), // 1-bit clock enable input
.D0(D0), // 1-bit data input (associated with C0)
.D1(D1), // 1-bit data input (associated with C1)
.R(R), // 1-bit reset input
.S(S) // 1-bit set input
);

// End of ODDR2_inst instantiation 
de>For More Information

Consult the Spartan-3E Data Sheets.

转载于:https://www.cnblogs.com/chip/p/5245648.html

spartan6不能直接把时钟连到IO上相关推荐

  1. Spartan6系列之Spartan6系列之芯片时钟资源深入详解

    1.   时钟资源概述 时钟设施提供了一系列的低电容.低抖动的互联线,这些互联线非常适合于传输高频信号.最大量减小时钟抖动.这些连线资源可以和DCM.PLL等实现连接. 每一种Spartan-6芯片提 ...

  2. DS1337 时钟芯片在 C8051F 上的实现

    一.DS1337介绍 DS1337串行实时时钟芯片是一种低功耗.全部采用BCD码的时钟日历芯片,它带有两个可编程的定时闹钟和一个可编程的方波输出.其地址和数据可通过I2C总线串行传输,能提供秒.分.时 ...

  3. rust如何在木板上上传图片_4.7. 在 crates.io 上发布

    发布到 crates.io 一旦你有一个你想与世界分享的 crate,就该把它发布到crates.io! 发布是指,上载特定版本的,以让crates.io进行托管. 发布箱(crate)子时,要小心, ...

  4. FPGA初学记录——数字时钟系统搭建(上)

    FPGA初学记录--数字时钟系统搭建(上) 野火征途Pro开发板教程--数码管动态展示拓展训练,数字时钟系统搭建 文章目录 FPGA初学记录--数字时钟系统搭建(上) 前言 一.问题简述 二.功能解析 ...

  5. Spartan-6的I/O时钟缓冲器

    I/O 时钟缓冲器 除了全局时钟缓冲器外,Spartan-6还包含驱动高速I/O时钟区域的时钟缓冲器. I/O 时钟缓冲器的原语如表2-9所示. 表2-9 I/O时钟缓冲器的原语 (1) BUFIO2 ...

  6. 【Vivado】 [Place 30-574] 时钟使用普通IO时的报错解决办法

    今天在创建工程时,由于只是一个测试用的工程,给时钟信号分配管脚时只是简单的使用了普通的IO管脚,在实现时报了以下错误 [Place 30-574] Poor placement for routing ...

  7. 网络io和磁盘io_在磁盘IO上,第1部分:IO的风味

    网络io和磁盘io 10月,我将在纽约参加O'Reilly Velocity会议,并发表"当我们谈论磁盘IO时我们谈论的话题"的演讲 . 我决定将我的一些准备笔记发布为一系列博客文 ...

  8. 基础IO(上)——Linux

    文章目录 1.储备知识 2. 文件描述符 2.1 c接口 2.2 直接使用系统接口 2.3 open函数返回值 2.4 文件描述符fd 2.5 周边文件 3. 重定向 3.1 输出重定向 3.2 输出 ...

  9. 在draw.io上保存含有公式的矢量图

    第一步:选择export as-svg,然后在text setting的部分选择'convert labels to SVG' 第二步: 用visio打开这个svg,然后保存成pdf. 如果需要,可以 ...

最新文章

  1. 05Observer/Event(观察者)模式
  2. 向vSphere迁移虚拟机,Converter需要升级至4.0.1
  3. ZooKeeper概述与原理
  4. linux清理swap内容,Linux如何清理swap.buffer及cache等缓存
  5. 【牛客 - 370H】Rinne Loves Dynamic Graph(分层图最短路)
  6. 40 个 SpringBoot 常用注解:让生产力爆表!
  7. oc 画一个圆弧_SolidWorks一步扫描特征,就可以画出一个螺母,你有思路吗
  8. 我的docker随笔10:docker客户端使用其它主机的docker服务器
  9. hdu 6092 Rikka with Subset 01背包 思维
  10. 王小毛是懒惰了,还是堕落了?
  11. winform-Chrome-CefSharp库
  12. python cursor游标_python 使用sqlite需要使用游标cursor?
  13. 向网页中插入透明Flash的方法和技巧
  14. 胆囊结石在我们的生活中有哪些危害呢?
  15. 计算机程序占用端口,程序启动发现端口被占?3步查出它是谁!
  16. 拿来即用的网页倒计时组件
  17. 32位系统和64位系统的区别是什么
  18. 在线帮助中心对企业的作用及解决方案
  19. 上海大学计算机考研双非,双非逆袭211,告诉20的你们19考研有多难
  20. 开源轻量级显示框架LVGL简介

热门文章

  1. spotify音乐下载_使用Python和R对音乐进行聚类以在Spotify上创建播放列表。
  2. libusb开发指南
  3. 看完这一系列,彻底搞懂 Gradle
  4. IE8不支持jQuery问题
  5. python爬取豆瓣电影并分析_Python爬取豆瓣电影的短评数据并进行词云分析处理
  6. java socket编程实现聊天程序_java Socket编程 聊天程序 服务器端和客户端
  7. python图片隐写_Lsb图片隐写
  8. 马尔科夫链和马尔科夫链蒙特卡洛方法
  9. 编程书单:十本Python编程语言的入门书籍
  10. iOS核心动画之CALayer-隐式动画