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.

Can't resolve multiple constant drivers

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
cant resolve multiple constant drivers for net

I have a top module which keeps receiving the data from another module (spi_decoder).

This top module is going to transfer the received data( inside datain_reg) to outside.

Code:
u1: spi_decoder
port map
	(
	refclk          => refclk,
	dintrig         => dintrig,
	douttrigack  => douttrigack,
	command    => datain_reg,
	
	douttrig      => douttrig,
	dintrigack   => dintrigack,
	fbackdata   => dataout_reg
	);
The code to transfer the data content of dataout_reg is the follow:
Code:
if ( spiclkr       = '1'and spiclk = '1' ) then
       dataout           <= dataout_reg(15); 
       dataout_reg    <= dataout_reg(14 downto 0) & '1';
end if;

I got the following error:

Error (10028): Can't resolve multiple constant drivers for net "dataout_reg[15]" at spi_top.vhd.....

What is the reason?
 

You are apparently using dataout_reg as assignment target in different processes or different locations in concurrent code. This would be the case, e.g. if spi_decoder.fbackdata is an output or inout port.
 

    EDA_hg81

    Points: 2
    Helpful Answer Positive Rating
Yes. you are right.


The spi_decoder is going to output the data which going be sent by the following code to MCU :

Code:
if ( spiclkr       = '1'and spiclk = '1' ) then 
       dataout           <= dataout_reg(15); 
       dataout_reg    <= dataout_reg(14 downto 0) & '1'; 
end if;


I have tried to recaptured the output data from spi_decoder but didn’t work.

What I should do?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top