Yosys内部格式:AST&RTLIL

3 篇文章 0 订阅

Internal formats in Yosys

Yosys uses two different internal formats. The first is used to store an abstract syntax tree (AST) of a Verilog input file. This format is simply called AST and is generated by the Verilog Frontend. This data structure is consumed by a subsystem called AST Frontend. This AST Frontend then generates a design in Yosys’ main internal format, the Register-Transfer-Level-Intermediate-Language (RTLIL) representation. It does that by first performing a number of simplifications within the AST representation and then generating RTLIL from the simplified AST data structure.
Yosys使用了两种不同的内部格式。一种是用于存储Verilog输入文件的抽象语法树(AST),简称为AST,由Verilog Frontend生成,由AST Frontend使用。Then AST Frontend 以Yosys内部格式 RTLIL生成一个设计(Design)。AST Frontend先在AST中执行一些简化,然后从AST中生成RTLIL,即第二种内部格式。
The RTLIL representation is used by all passes as input and outputs.

RTLIL Advantages

The passes can be rearranged in a different order and passes can be removed or inserted.
Passes can simply pass-thru the parts of the design they don’t change without the need to convert between formats. In fact Yosys passes output the same data structure they received as input and performs all changes in place.
内部统一数据格式RTLIL具备拓展性;Pass指操作RTLIL数据结构的命令,操作顺序可任意改变;API/数据不需要转换。

RTLIL 表示

The RTLIL representation is basically a netlist representation.
RTLIL表示也是网表的表示,有以下特性。
An internal cell library with fixed-function cells to represent RTL datapath and register cells as well as logical gate-level cells (single-bit gates and registers).
Support for multi-bit values that can use individual bits from wires as well as constant bits to represent coarse-grain netlists.
Support for basic behavioural constructs (if-then-else structures and multi-case switches with a sensitivity list for updating the outputs).
Support for multi-port memories.

DESIGN .v To Gate-level Netlist synth.v

convert the behavioural Verilog code from the input file design.v to a gate-level netlist synth.v using the cell library described by the Liberty file.

  • 3
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值