# This splits up the 16-bit data into RGB.
e_port->add({name => "R", width => 8, direction => "output", });
e_register->add({
out => {name => "R", export => 1,},
in => "display_active ? ({vga_16bit_out[15:11], 3'b111}) : 8'b00000000",
clock => "vga_clk",
enable => 1,
});
e_port->add({name => "G", width => 8, direction => "output", });
e_register->add({
out => {name => "G", export => 1,},
in => "display_active ? ({vga_16bit_out[10:5], 2'b11}) : 8'b00000000",
clock => "vga_clk",
enable => 1,
});
e_port->add({name => "B", width => 8, direction => "output", });
e_register->add({
out => {name => "B", export => 1,},
in => "display_active ? ({vga_16bit_out[4:0], 3'b111}) : 8'b00000000",
clock => "vga_clk",
enable => 1,
});