Continue to Site

Welcome to EDAboard.com

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.

Recent content by sukanya28

  1. S

    To display a square on monitor ( Verilog vga Basys 2 board )

    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?
  2. S

    To display a square on monitor ( Verilog vga Basys 2 board )

    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...
  3. S

    To display a square on monitor ( Verilog vga Basys 2 board )

    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]...
  4. S

    To display a square on monitor ( Verilog vga Basys 2 board )

    Okay ! I am really stuck with this code nor am I getting it. Please tell me the verilog code for the bouncing ball.
  5. S

    To display a square on monitor ( Verilog vga Basys 2 board )

    Well I am familiar with cloack enables. What I don't understand in this code are those so many if-else statements. I mean what exactly is the logic?
  6. S

    To display a square on monitor ( Verilog vga Basys 2 board )

    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...
  7. S

    To display a square on monitor ( Verilog vga Basys 2 board )

    Okay ! I made these changes but what about the button pin which is still not responding to my code. :P
  8. S

    To display a square on monitor ( Verilog vga Basys 2 board )

    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...
  9. S

    To display a square on monitor ( Verilog vga Basys 2 board )

    Thank you Mr. Fibble. The code is working now. always @(posedge clk) if(~video_on) coloroutput <= 0; else begin if((pixel_x > sq_x_l && pixel_x < sq_x_r) && (pixel_y > sq_y_t && pixel_y < sq_y_b )) coloroutput[7:5] <= 3'b111; else coloroutput[7:0] <= 8'b00000000; end
  10. S

    To display a square on monitor ( Verilog vga Basys 2 board )

    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...
  11. S

    To display a square on monitor ( Verilog vga Basys 2 board )

    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...
  12. S

    [SOLVED] Query : No display on monitor ( 800*600 resolution ) VGA CONTROLLER BASYS 2 BOARD

    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...
  13. S

    [SOLVED] Query : No display on monitor ( 800*600 resolution ) VGA CONTROLLER BASYS 2 BOARD

    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.
  14. S

    [SOLVED] Query : No display on monitor ( 800*600 resolution ) VGA CONTROLLER BASYS 2 BOARD

    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 !
  15. S

    [SOLVED] Query : No display on monitor ( 800*600 resolution ) VGA CONTROLLER BASYS 2 BOARD

    **broken link removed** Hey, I made the desired changes like you said and now I am getting this result. Please have a look.

Part and Inventory Search

Back
Top