引言
1,改成clk方式。
2,添加clk,50MHz。
3, 添加rst,同步复位。
4,添加calc_done,指示计算完成,高有效。
3.1 模块代码
/*
* module:div_rill
* file name:div_rill.v
* syn:yes
* author:network
* modify:rill
* date:2012-09-10
*/
module div_rill
(
input clk,
input rst,
input[31:0] a,
input[31:0] b,
output reg [31:0] yshang,
output reg [31:0] yyushu,
output reg calc_done
);
reg[31:0] tempa;
reg[31:0] tempb;
reg[63:0] temp_a;
reg[63:0] temp_b;
reg [5:0] counter;
always @(a or b)
begin
tempa <= a;
tempb <= b;
end
always @(posedge clk)
begin
if(!rst)
begin
temp_a <= 64'h0000_0000_0000_0000;
temp_b <= 64'h0000_0000_0

本文介绍了一种使用Verilog语言简单实现除法器的方法,详细阐述了模块代码的设计,内容涵盖数字集成电路设计。链接提供了最新的代码修正版本。
&spm=1001.2101.3001.5002&articleId=7964535&d=1&t=3&u=dba5d7d36ba74da394a53cd5f1c740e9)
2113

被折叠的 条评论
为什么被折叠?



