在Quartus II下产生无源代码网表设计文件方法

在Quartus II下产生无源代码网表设计文件方法

   从安全角度考虑,我们常希望保证我们设计的私有性。一个有效的方法就是利用QuartusII Exported Partitionfile(.qxp)创建用于综合或布局布线网表文件(不包括源代码。这种增量编译的特点需要一个完整QuartusII 许可的支持(比如免费的web版本的许可不支持的)。

   把原始设计作为一个.qxp文件发送的过程在QuartusII 手册的Quartus II IncrementalCompilation for Hierarchical & Team-BasedDesign 章 节"Using an Exported Partition to Send aDesign without Including Source Files"部分被描述。

   为了输出你的完整的设计,或部分设计,或被别人重复使用的设计,可以创建一个design partition输出它。然后需要者把这个partition 导入到一个新的project。为了使用this simple aspect of anincremental flow,你不必对项目创建别的design partition 或添加floorplanassignments.关于使用增量编译commands更详细的细节,请参考手册相关章节!

   为了输出一个设计模块并且发送给别人使用,需要完成下面的步骤:

   1.  提供器件系列名字给接收人(比如CYCLONE II EP2C35 ,EP2C20等等)。如果你要发送带综合网表的布局布线信息,也需要提供准确的器件选择,以便接收者能正确设置他们的项目。

   2.  创建一个文件或一个简单例化来定义这个设计模块的端口接口,并且把这个文件或实例化提供给接收人,以便在顶层设计中作为一个空partition来实例化这个模块。

     特别说明: 在Quartus II 7.2 SP3 或更早的版本中, 必须发送一个空黑盒模块/实体定义,该空黑盒模块/实体列出端口宽度和方向。 在Quartus II 8.0后不需要这样的文件。

    3. 输出the appropriate level of hierarchy 到一个.qxp文件。 如果在Projectmenu,使用Quartus II GUI,请choose Export Design Partition andselect the Partition hierarchy to export

   4.  如果不需要发送布局布线信息,请仅选择选项Post-synthesisnetlist。 如果接收人需要重新生成你的准确的布局布线结果,你需要选择项Post-fitnetlist,同时也可选Export routing 选项包括布局布线信息。

   5. 提供.qxp文件给接收人,记住你不需要发送你源代码给接收者!

 

   接收者收到这个.qxp文件, 需要集成这个设计模块到顶层设计中,需要完成下面的步骤:

   1.  需要创建一个Quartus II 顶层设计项目并且确保该项目目标器件与该.qxp文件目标器件相同(或者说至少相同器件系列(在不包括布局布线信息前提下)。

   2.  使用提供的端口信息实例这个设计模块;将相应的.qxp文件添加到ProjectNavigator中。

   3.  在Porcessing Menu 上, 点击Start/PerformAnalysis & Elaboration, 验证该设计的层次。

   4.  为这个设计模块实例创建一个design partition。 Right-click theinstance name in the Project Navigator, and choose Set as designpartition

   5.  导入这个.qxp文件到相关的partitionhierarchy。 如果你使用the Quartus II GUI, 则在Project menu,选择ImportDesign Partition,select the partition for the design block, andbrowse to the .qxp file provided。

   6.  如果发送者还提供布局布线信息,也能控制是否保存输入网表,布局或布局布线信息。Onthe Assignments menu, choose Design Partitions Window, andadjust the settings as required。现在,拥有一个包含原始设计网表的完整设计,但不包括源文件。项目包括输入指定,其他综合信息都包括在.qxp文件中。在RTL中只能看到相应的模块例化,但是里面是空的;在ChipPlanner中可以看到模块的一些节点。

 

附件:(原始英文)

(链接:http://www.altera.com/support/kdb/solutions/rd06242008_7.html)

How_can_I create a design netlist without including my sourcedesign files?

Description

If you want to keep your design files private forsecurity reasons, one option is to use a Quartus® II ExportedPartition file (.qxp) to create a post-synthesis orpost-fitting netlist without including any source design files.These incremental compilation features require a full Quartus IIsubscription license (and are not included with the free webedition license). Refer to the Related Solutions below for anotheralternative and other relation information.

The procedure to send your design as a .qxpfile is documented in the section "Using an Exported Partition toSend a Design without Including Source Files" in the QuartusII Incremental Compilation for Hierarchical &Team-Based Design chapter of the Quartus II Handbook, and isincluded here for convenience.

To export your complete design, or part of yourdesign, to be re-used by someone else, you createa design partition, export it, and then the recipient imports thepartition into a new project.  To use this simpleaspect of an incremental flow, you do not have to create any otherdesign partitions or add floorplan assignments to your project. Formore details about using the incremental compilation commands,refer to the handbook chapter. 

Perform the following steps to export a designblock and send it to someone else:

1.Provide the device family name to the recipient.If you send placement information with the synthesized netlist,also provide the exact device selection so they can set up theirproject to match.

2.Create documentation or a sampleinstantiation that defines the port interface forthe design block and provide it to the recipient so he orshe can instantiate the block as an emptypartition in the top-level design.

In Quartus II software versions7.2 SP3 and earlier, you must send an empty black box module/entitydefinition that lists the port widths and directions for the designblock. Such a file is not needed beginning with version 8.0.

3.Export the appropriate level of hierarchy into asingle .qxp file. If you use the Quartus II GUI, on theProject menu, choose Export Design Partition and select thePartition hierarchy to export.

4.Select the option to include just thePost-synthesis netlist if you do not need to send placementinformation. If the recipient wants to reproduce your exact Fitterresults, you can select the Post-fit netlist option, andoptionally enable Export routing to include routinginformation as well.

5.Provide the .qxp file to the recipient.Note that you do not have to send any of your design sourcecode.

As the recipient of a .qxp file, incorporatethe design block into a top-level design by performing thefollowing steps:

1.Create a Quartus II project for the top-leveldesign and ensure that your project targets the same device (or atleast the same device family if the .qxp file does notinclude placement information), as specified by the sender.

2.Instantiate the design block using the portinformation provided.

3.On the Processing menu, point to Start andclick Perform Analysis & Elaboration toidentify the design hierarchy.

4.Create a design partition for the design blockinstance. Right-click the instance name in the Project Navigator,and choose Set as design partition.

5.Import the .qxp file for the appropriatepartition hierarchy. If you use the Quartus II GUI, on the Projectmenu, choose Import Design Partition, select the partitionfor the design block, and browse to the .qxp fileprovided.

6.If the sender provided fitter information, youcan control whether to preserve the imported netlist only,placement, or placement and routing, with the Fitter PreservationLevel. On the Assignments menu, choose Design PartitionsWindow, and adjust the settings as required.

You now have a complete design that uses theoriginal design netlist but does not include the source designfiles.  The project includesimported assignments and any post-compilationinformation that was included in the .qxp file.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值