Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] Please help for Data transferring between Verilog Modules

Status
Not open for further replies.

EDA_hg81

Advanced Member level 2
Joined
Nov 25, 2005
Messages
507
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
4,808
Any helps for the following Verilog coding are appreciated.

Pulsewidth module is instantiated in top_pll module and the data port will be transferred from pulsewidth module to top_pll module for further processing.

I have defined the data port in pulsewidth module with r_count_hi (define as reg) and r_count_hi is assigned to output port by assign o_pulse_len_hi = r_count_hi;

The pulsewidth module can work alone very well as shown in the attached simulation image.
Screenshot 2023-08-12 125912.png

Screenshot 2023-08-12 124238.png


But when combine pulsewidth module with top_pll module, the data port can not be transferred to top_pll module properly as shown in the attached image, I have defined the data input port of top_pll module as wire.
Screenshot 2023-08-12 124043.png


Screenshot 2023-08-12 124339.png

If it is possible, please let me know any problems for above problem.

Many thanks in advance.
--- Updated ---

I have found the root cause for this problem.

I should not initialized wire[7:0] up_width_counta = 8'b00;

Only need to define as wire[7:0] up_width_counta; will solve the problem.
 
Last edited:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top