原创 quartus ii中实现开漏极输出

2008-12-26 17:24 6101 13 14 分类: FPGA/CPLD
http://www.altera.com/support/kdb/solutions/rd06252007_878.html

设置上拉,驱动电流等方法都在altera的http://www.altera.com.cn/support/devices/io/features/io-features.html


Problem


How do I implement open drain outputs in the Quartus II software?



Solution

You can implement an open drain output signal using standard
VHDL or Verilog HDL statements, or by instantiating an Altera? open
drain (OPNDRN) primitive.


Method 1. Use one of the following HDL statements to create an open drain output for a signal called top_out:


VHDL:  top_out <= 'Z';
Verilog HDL:  assign top_out = 1'bZ;


Method 2. Use the Altera OPNDRN primitive to create an open drain
output. This primitive is defined in Quartus? II Help as described
below.


VHDL:
<instance_name>: opndrn PORT MAP (
a_in => <input_wire>,
a_out => <output_pin>
);


The VHDL component is declared in an Altera primitives library. Use the following commands to include the library:


LIBRARY altera;
USE altera.altera_primitives_components.all;


Verilog HDL:
OPNDRN <instance_name> (.in(<input_wire>), .out(<output_pin>));



You can use the Quartus II language templates to help you
instantiate the primitive. Right-click in the Quartus II text editor
and choose Insert Template. In the Language templates list, expand the list for VHDL or Verilog HDL, then expand Altera Primitives, and then Buffers. Choose the OPNDRN primitive and click Insert. You can then customize the instantiation and continue design entry.


To confirm that the open drain output pin was implemented, check the Compilation Report. In the Fitter section of the report, expand the Resource Section and click Output Pins. The Open Drain column indicates yes for any open drain output pins.

文章评论1条评论)

登录后参与讨论

用户1727562 2014-1-13 14:58

有没有TCL 的设置方法 类似于 set_location_assignment
相关推荐阅读
用户1402774 2010-01-25 09:32
【转贴自C++ inventor】一句话说明白怎么更好的使用C++
 http://www2.research.att.com/~bs/learn.htmlGiven that I don't have much time to learn new technique...
用户1402774 2010-01-24 21:32
【转贴自 C++ inventor 】怎么编程序可以更清晰,还有重用性
http://www2.research.att.com/~bs/bs_faq.html What is so great about classes?Classes are there to hel...
用户1402774 2010-01-24 21:16
Focus on concepts and techniques
 "You'll need a textbook for learning C++. This is the case even when your implementation comes with...
用户1402774 2009-11-22 10:37
看到好的资料总是抑制不住的收藏
老早就想学习一下linux下的C语言编程,可是原来学习的是TurboC,现在好了,我们这些在windows底下学习C语言的有福音了。找到本好书http://learn.akae.cn/media/in...
用户1402774 2009-08-27 09:59
熔化极气体保护焊的主要熔滴过渡形式
电弧形态与熔滴过渡形式 影响电弧形态的因素有,焊接参数,保护气体成分,焊丝成分,焊丝直径等。 大滴过渡,射滴过渡,射流过渡,亚射流过渡,短路过渡。 通过电焊玻璃目视观察,可以根据电弧形态判断熔滴过渡形...
用户1402774 2009-08-27 09:26
焊接溶滴过渡
【1】殷树言 编著. 气体保护焊工艺基础. 北京: 机械工业出版社,2007.4 .  (P94)国际焊接学会(IIW)的IIW.DOC.XII-F-173-76文件中。与气体保护焊有关的熔滴过渡有如...
EE直播间
更多
我要评论
1
13
关闭 站长推荐上一条 /3 下一条