jamesjstar
Newbie level 2
multi-source in unit verilog
Hello, I am just beginning to learn Verilog, and am using ISE 10.1.
I am trying to make a custom color converter based on my own table, but am getting the following errors:
Multi-source in unit <converter> on signal <out_rgb<11 to 0>>; this signal is connected to multiple drivers.
could you guys help me in the right direction? Thanks!
Hello, I am just beginning to learn Verilog, and am using ISE 10.1.
I am trying to make a custom color converter based on my own table, but am getting the following errors:
Multi-source in unit <converter> on signal <out_rgb<11 to 0>>; this signal is connected to multiple drivers.
could you guys help me in the right direction? Thanks!
Code:
module converter(clk, colorin, out_rgb);
input clk;
input [11:0] colorin;
output [11:0] out_rgb;
reg [11:0] out_rgb;
reg [11:0] rgb;
always @ (clk or colorin)
begin
case (colorin)
12'h000: rgb <= 12'b010101010101;
12'h001: rgb <= 12'b000000000000;
12'h002: rgb <= 12'b000000001000;
12'h003: rgb <= 12'b001000000111;
...
12'h30F: rgb <= 12'b000000000000;
default: rgb <= 12'b000000000000;
endcase
end
always @ (clk or out_rgb)
begin
out_rgb2 <= out_rgb;
end
endmodule