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.

Feedback in Verilog

Status
Not open for further replies.

FLY_GUY

Newbie
Joined
Oct 10, 2022
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
8
In the top level of my heirachy I have an output signal "LED[7:0]".
I want to pass this into a lower level module to set a register.
I want to use the signal LED as an input in the lower level module.
The compiler throws an error and says there are too many drivers on LED.

Below is a segment of the code from the top module, and the lower level module.

Code:
module top_level_mod #(
    parameter   CLK_FREQ = 25,
    parameter   SIM_MODE = 0
)
 (
    // Main clock+reset
    //
    input   wire            HOT_CLK,   // sh 29, M9  "CPLD_CLKIN"  25MHz
    input   wire            HOT_RST_B, // sh 29, R16 "PCIE_RESET0n"
  
    // LEDs
    output  wire    [7:0]   LEDS,


    //  Mapping into heirarchy.
    //  config_FPGA config_FPGA1 (
    //      .rst_b              (HOT_RST_B),
    //      .clk                (HOT_CLK),
    //
    //      .leds            (LEDS),
  
//=========================================================   
  
module config_FPGA1 (

    input   wire            rst_b,
    input   wire            clk,

    input   wire    [7:0]   leds,


How do I change the code so the output LEDS in the top level so it works as an input in the lower module to leds?
 
Last edited by a moderator:

i don’t think the problem is where you’re showing it. somewhere else in your code you must have two statements driving LEDS.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top