|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
我想将一个8位的wire,当做三个拼接给一个24位的reg,代码如下:
reg[23:0] rgb_o_b;
wire[7:0] cmos_data_i;
rgb_o_b <= {cmos_data_i,cmos_data_i,cmos_data_i};
可是综合的时候总是报错,请各位帮忙指导一下该怎么写。报错信息如下:
[Place 30-68] Instance system_i/OV_Sensor_ML_0/inst/rgb_o_b_reg[16] (FDRE) is not placed
[Place 30-68] Instance system_i/OV_Sensor_ML_0/inst/rgb_o_b_reg[17] (FDRE) is not placed
[Place 30-68] Instance system_i/OV_Sensor_ML_0/inst/rgb_o_b_reg[18] (FDRE) is not placed
[Place 30-68] Instance system_i/OV_Sensor_ML_0/inst/rgb_o_b_reg[19] (FDRE) is not placed
[Place 30-68] Instance system_i/OV_Sensor_ML_0/inst/rgb_o_b_reg[20] (FDRE) is not placed
[Place 30-68] Instance system_i/OV_Sensor_ML_0/inst/rgb_o_b_reg[21] (FDRE) is not placed
[Place 30-68] Instance system_i/OV_Sensor_ML_0/inst/rgb_o_b_reg[22] (FDRE) is not placed
[Place 30-68] Instance system_i/OV_Sensor_ML_0/inst/rgb_o_b_reg[23] (FDRE) is not placed
这是一段采集CMOS的程序,输入8位,转变成rgb格式
源码为
reg[7:0]cmos_data_r;
wire[23:0]rgb_o;
assign rgb_o = {cmos_data_r,cmos_data_r,cmos_data_r};
always@(posedge cmos_pclk_i)
begin
cmos_data_r <= cmos_data_i;
end
我打算做一个小实验,实现我修改rgb_o,在输出图像上显示一条直线
谢谢各位啦!! |
|