ebichuhamster
Newbie level 4
- Joined
- Dec 29, 2010
- Messages
- 5
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,330
the module
The error is
I understand that I have much to learn, but the deadline is monday and this thing works. I just need Xilinx to draw the circuits and then I probably wont use it again for some time.
It makes sense to me that there would be a conflict, but these two statements occur on a different state of the clock, and it does indeed work properly when i run the testbench on iverilog. If anyone has any ideas as to how to tell Xilinx to ignore this error (it wont synthethize because of this) or better yet to solve it
Thank you.
Code:
module d_l2(rst,en,clk,in,o);
input rst,en,clk,in;
output reg o; //=1'b10000000;
always @ (clk or en or in)
if(~clk)
begin
o=en∈
//$display("en=%b-in=%b",en,in);
end
else
begin
o=en&1'b1;
end
always @ (rst)
begin
o=0;
end
endmodule
The error is
ERROR:HDLCompiler:1401 - "C:\Users\ProyectoFinal\d_l2.v" Line 34: Signal o in unit d_l2 is connected to following multiple drivers:
Driver 0: output signal of instance Ground (GND_5_o_BUF_2).
Driver 1: output signal o of instance Multiplexer (en_en_MUX_137).
Module d_l2 remains a blackbox, due to errors in its contents
I understand that I have much to learn, but the deadline is monday and this thing works. I just need Xilinx to draw the circuits and then I probably wont use it again for some time.
It makes sense to me that there would be a conflict, but these two statements occur on a different state of the clock, and it does indeed work properly when i run the testbench on iverilog. If anyone has any ideas as to how to tell Xilinx to ignore this error (it wont synthethize because of this) or better yet to solve it
Thank you.