fix some bugs and pass lint check
This commit is contained in:
		@@ -12,7 +12,7 @@ module chanels_to_RGB #(
 | 
			
		||||
    input [IN_DEPTH - 1:0] data_in [2:0], // 0:R 1:G 2:B
 | 
			
		||||
 | 
			
		||||
    // 输出相关
 | 
			
		||||
    input data_que;                                 // 数据请求
 | 
			
		||||
    input data_que,                                 // 数据请求
 | 
			
		||||
    output reg out_en,
 | 
			
		||||
    output reg [3 * OUT_DEPTH - 1:0] data_out
 | 
			
		||||
);
 | 
			
		||||
@@ -42,7 +42,7 @@ module chanels_to_RGB #(
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    // 存在数据请求且FIFO不为空时,才发送数据
 | 
			
		||||
    assign out_en <= (data_que && !fifo_empty) ? 1 : 0;
 | 
			
		||||
    assign out_en = (data_que && !fifo_empty) ? 1 : 0;
 | 
			
		||||
 | 
			
		||||
    async_fifo #(
 | 
			
		||||
        .DSIZE(3 * OUT_DEPTH),
 | 
			
		||||
@@ -64,4 +64,4 @@ module chanels_to_RGB #(
 | 
			
		||||
        .rinc(out_en)
 | 
			
		||||
    );
 | 
			
		||||
 | 
			
		||||
endmodule
 | 
			
		||||
endmodule
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user