
verilog
QAWRA
这个作者很懒,什么都没留下…
展开
-
两种状态机
状态机分为moore型和mealy型两种。 差别在于前者的输出单纯由寄存的状态决定,后者的输出由输入和状态输出同时决定。1.Moore 型output=f(state)output=f(state) nextstate=f(input,state) nextstate=f(input,state) 图片截取网络2.Mealy 型output=f(input,state)output=f原创 2017-05-17 16:49:42 · 6960 阅读 · 0 评论 -
Verilog与VHDL的一些比较
1.列表 verilog VHDL `include LIBRARY IEEE module ENTITY architecture process always wire/reg signal assign <= =阻塞-组合逻辑 <=非阻塞-时序逻辑 clk’event and clk= ‘1’ posedge原创 2017-05-16 21:55:02 · 3171 阅读 · 0 评论 -
分频电路-verilog
1. 2分频module div_2(clk,rst,out);input clk,rst;output out;reg q;always@(posedge clk or negedge rst) if(!rst) q<=1'b0; else q<=~q;assign out=q;endmodule2. 偶数分频module div_8 (c原创 2017-05-20 17:05:59 · 3941 阅读 · 0 评论 -
GPIO
拥有APB接口的GPIO模块module gio(input wire PCLK,input wire PRESETn,input wire PSEL,input wire[11:0] PADDR,input wire PENABLE,input wire PWRITE,input wire[31:0] PWDATA,output wire [31:0] PRDATA,input原创 2017-06-15 10:27:22 · 982 阅读 · 0 评论 -
门控时钟
ASIC中使用门控时钟来降低功耗,避免不必要的时钟翻转。但是FPGA存在专用时钟网络,低功耗也不是必须,门控时钟也会导致毛刺等现象。 使用synplify综合,勾选fixed gated clk。该选项会将门控时钟改为时钟使能,即用规模换取时钟同步: 当gated clock之后的触发器太多时,synplify不可能完全同步gated clock。fixed的结果可以在log中查到。原创 2017-06-15 17:55:03 · 2358 阅读 · 0 评论