cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
164 Views
Registered: ‎04-12-2020

slave_reg_multiple drivers

Jump to solution

Hello everyone

i am encountering a problem related to multiple driver pins, i have a counter running in my module which i instantiate in another module where Slave peripheral is implemented with 4 slave registers.when i connect my counter(slv_signal) to the slave register 1, i see red lines in simulation. slv_reg1 is assigned in another process but that process does not run because enable signal of that process is always zero.

 

slav_reg.png
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Moderator
Moderator
110 Views
Registered: ‎11-09-2015

HI @MuzamilFarid 

You cannot assign the same signal in multiple processes.

Just use different signals in each process and assign the final signal outside the process

<output> <= <signal1> WHEN <selector> ='1' ELSE<signal2>;

Regards


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**

View solution in original post

0 Kudos
2 Replies
Highlighted
Moderator
Moderator
111 Views
Registered: ‎11-09-2015

HI @MuzamilFarid 

You cannot assign the same signal in multiple processes.

Just use different signals in each process and assign the final signal outside the process

<output> <= <signal1> WHEN <selector> ='1' ELSE<signal2>;

Regards


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**

View solution in original post

0 Kudos
Highlighted
Adventurer
Adventurer
93 Views
Registered: ‎04-12-2020

@florentw 

thanks for the suggestion

0 Kudos