User Defined Primitives in Verilog - ElectroSofts3
User Defined Primitives in Verilog - ElectroSofts3
r = = m = = s = W b p K
HOME About Us
eBooks Contact Us
Port declaration Input and output port declarations should match the port list of the UDP they are enclosed in. If the described UDP is sequential, then reg declaration for output port should be provided. All ports of the UDP should be of scalar type (1-bit wide). Vectors are illegal.
K L L K NLO
O TLNO LNO
r = = m = = s = W b p K
Initial statement Sequential UDPs can contain an initial statement for an output port. This statement begins with the keyword initial, followed by an assignment to the output port. Assigned values should be 1-bit wide and there must not be any delays. State table The state table starts with the keyword table and ends with the keyword endtable. The state tables for combinational and sequential UDPs are different. The state table is comprised of rows each of which ended with a the semicolon. Table row describes the behavior of UDP for a particular combination of inputs. The combinational UDPs have two fields separated by a colon. One field is for the inputs and one for the outputs. The sequential UDPs have three fields: one for the inputs, one for the current output state, and one for the next output state. If any combination of input signals, is not explicitly specified in the UDP declaration, the output value will be unknown (x). A particular combination of inputs can be specified only one time.
--incomplete--
Prev. : Verilog Primitives Verilog: Table of Contents Ch: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. Next: Verilog Identifiers
Ads by Google
Verilog VHDL
Verilog Simulator
Verilog Synthesis
HDL Verilog
Hom e
About Us
Article s/ Tutorials | Downloads | Fe e dback | Link s C opyright 2005-2007 e le ctroSofts.com . we bm aste r@e le ctroSofts.com
e Book s
Privacy Policy
K L L K
O LO