に対して、parameter RED_DOT_POS = 9; // 9ビット目がRED
parameter GREEN_DOT_POS = 8; // 8ビット目がGREEN
parameter BLUE_DOT_POS = 7; // 7ビット目がBLUE
reg [RED_DOT_POS:BLUE_DOT_POS] temp_color;
if (char_data_node && display_on_d2) {
red_node := temp_color[RED_DOT_POS];
green_node := temp_color[GREEN_DOT_POS];
blue_node := temp_color[BLUE_DOT_POS];
if (char_data_node && display_on_d2) {
red_node := temp_color[2];
green_node := temp_color[1];
blue_node := temp_color[0];
module Top_wDCM {
dcm_inst u_dcm_inst;
CharDispCtrlerTest u_charDispCtrlerTest;
wire clkdv;
wire locked;
u_dcm_inst.clkin = m_clock;
u_dcm_inst.reset = p_reset;
clkdv = u_dcm_inst.clkdv;
locked = u_dcm_inst.locked;
u_charDispCtrlerTest.m_clock = clkdv;
u_charDispCtrlerTest.p_reset = ~locked;
VGA_RED = u_charDispCtrlerTest.VGA_RED;
VGA_GREEN = u_charDispCtrlerTest.VGA_GREEN;
VGA_BLUE = u_charDispCtrlerTest.VGA_BLUE;
VGA_HSYNC = u_charDispCtrlerTest.VGA_HSYNC;
VGA_VSYNC = u_charDispCtrlerTest.VGA_VSYNC;
}
declare CharDispCtrlerTest {
// -- CharDispCtrlerTest --
output VGA_RED[4];
output VGA_GREEN[4];
output VGA_BLUE[4];
output VGA_HSYNC;
output VGA_VSYNC;
}
declareCharDispCtrlerTest interface {
inputm_clock;
inputp_reset;
// -- CharDispCtrlerTest --
outputVGA_RED[4];
outputVGA_GREEN[4];
outputVGA_BLUE[4];
outputVGA_HSYNC;
outputVGA_VSYNC;
}
日 | 月 | 火 | 水 | 木 | 金 | 土 |
---|---|---|---|---|---|---|
- | - | - | - | - | 1 | 2 |
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |