Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
If I use clock divider,will that be alright? For ex-
reg [23:0] q;
always @(posedge clk or posedge reset)
begin
if(reset)
q<=1;
else
q <= q+1;
end
wire clk381;
assign clk381 = q[16]; // clock of 381.47 Hz or 2.62 ms
and then use this clock in location counter?
I have made certain changes in code. And regarding next_?_location, I want my square to move across two horizontal ends automatically without any change in y coordinates and thus I have now removed that next_y_location counter.This movement could be done in regular intervals to provide a steady...
So I have written this code which moves a square automatically on vga screen. Before simulating this I would like to know if there are any mistakes I have committed in writing the logic of this code. Any help would be much appreciated.
reg [10:0] x_location_reg,y_location_reg;
reg [10:0]...
Okay,thank you for the suggestion regarding debouncing. But due to time constraints I dropped that push button idea. Now I just want to bounce the ball automatically on vga screen. So I looked upon this VHDL code for reference, but I know verilog and not much about VHDL. Also, I am not able to...
To change position of square on monitor with a push button (VGA verilog Basys2 board)
Hi, I have displayed a square on monitor with vga controller. Now I want to change its position ( left/right ) by incorporating a push button but the code is not working. Also when I simulate the testbench...
As I wish a red colored square, therefore, I assigned these 3 MSBs as 1.
And regarding this statement "if((pixel_x > sq_x_l && pixel_x < sq_x_r) && (pixel_y > sq_y_t && pixel_y < sq_y_b ))" ,when I change y coordinates,changes in vertical coordinates of square are visible but the same is not...
Hi, I wish to display a red square through my verilog code but a bar is getting displayed, also I am not able to change my right co-ordinate. Why is it so?? Please help !!
Code :
module vga_sq(input wire clk,reset,
output wire hsync,vsync,
output [2:0] red, // three bit signal to drive color...
Thank you everyone for your help. The code is working as I made certain changes and I am getting the desired result now.
Code :
module vga_controller(input wire clk,reset,
output wire hsync,vsync,
output [2:0] red, // three bit signal to drive color red
output [2:0] green, // three bit signal...
As I run the adept software, my monitor displays this message ' Out of Range' . I am not getting the desired output so I would like to know why this error message is displayed.
Sure ! Made the desired changes and the output waveforms now are the same as you posted earlier. But the problem is that as I start the program, my monitor displays ' Out of range' ! Why is it so?? Help !
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.