I found a bug with the 'Insert Code' feature. Example:
Click just below the link 'select'.
module vid_pattern_generator(
input wire pclk,
input wire reset,
input wire pc_ena, // Pixel clock enable
input wire hde_in, // Horizontal Display Enable - high when in display area (valid drawing area)
input wire vde_in, // Vertical Display Enable - high when in display area (valid drawing area)
input wire hs_in, // horizontal sync
input wire vs_in, // vertical sync
output reg hde_out,
output reg vde_out,
output reg hs_out,
output reg vs_out,
output reg [RGB_hbit:0] r_out,
output reg [RGB_hbit:0] g_out,
output reg [RGB_hbit:0] b_out,
);
parameter RGB_hbit = 1; // 1 will make the RGB ports go from 1 to 0, eg [1:0]. I know others prefer a '2' here for 2 bits
always @(posedge clk)
begin
if (reset) // global reset
begin
end
else
begin
if (pc_ena) // once per pixel
begin
// *************** insert generator code here
// *************** also remember to pass through the hde,vde,hs_out,vs_out
// *************** in the future, numerous delay sizes may be needed if you are performing functions which take multiple clocks before a true pixel becomes valid
end
end
end // always @clk
endmodule
Just above, where I said 'Click on this code [select], the text in the code box should have been highlighted, or copied into my windows text clipboard where I should have been able to paste the ASCII text into my own text editor. However, clicking on the '[select]' does nothing at all.
I'm using Firefox.