⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 root_pipeline_wrapper.tdf

📁 Verilog HDL: Magnitude For a vector (a,b), the magnitude representation is the following: A c
💻 TDF
字号:


--*********************************************************************
--*** TOP_LEVEL_ROOTB												***
--***																***
--*** Parameterized Square Root Function							***
--***																***
--*** Usage:														***
--***																***
--*** WIDTH : Input Word Precision - any value > 6					***
--*** PREC : Output Word Precision - any value > (WIDTH/2)			***
--***																***
--*** (WIDTH/2) most significant bits of output contain the root,	***
--*** following bits are the fractional portion of the root			***
--***																***
--*** Compile with Carry Chains										***
--***																***
--***																***
--***																***
--*********************************************************************

FUNCTION roota_opt_pipeline (rad[WIDTH..1], clk, clken, aclr)
	RETURNS (root[PREC..1]);


PARAMETERS
(
 WIDTH = 20,
 PREC = 15,
 PIPELINE = "YES"
);

subdesign root_pipeline_wrapper
(
 rad[WIDTH..1] : INPUT;
 clk		   : INPUT;
 clken		   : INPUT;
 aclr		   : INPUT;
 root[PREC..1] : OUTPUT;
)

BEGIN

  root[] = roota_opt_pipeline (rad[], clk, clken, aclr) WITH (WIDTH=WIDTH,PREC=PREC,PIPELIBE=PIPELINE);

END;

 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -