Design a vga checkerboard in vhdl using a 25MHz clock.
SOLUTION:
/* VGA checker board in v h d l with a 25 M H z input clock.*/
library i e e e;
use i e e e.std_logic_1164.all;
use i e e e.numeric _std.all;
entity VGA_Sync_Pulses is
generic (
g_TOTAL_COLS : integer;
g_TOTAL_ROWS :integer;
g_ACTIVE_COLS :integer;
g_ACTIVE_ROWS : integer
);
port (
i_C l k : in
std_logic ;
o_HS y n c : out
std_logic;
o_V S y n c :out
std_logic;
o_col_count : out
std_logic_vector(9 down to 0 );
o_Row_count :out
std_logic_vector(9 down to 0)
);
end entity VGA_Sync_Pulses:
architecture R T L of
VGA_Sync_Pulses is
signal r_Col_count :integer
range o to g_TOTAL_COLS-1:=0;
signal r_Row_count :integer
range 0 to g_TOTAL_ROWS-1:=0;
begin
p_Row_col_count:process
(i_c l k) is
begin
if rising_edge(i_c l k) then
if r_col_count =
g_TOTAL_COLS-1 then
if r_Row_Count=
g_TOTAL_ROWS-1 then
r_row_count <=0;
else
r_row_count<=
r_Row_count +1;
end if;
r_col_count <=0;
else
r_col_count +1;
end if;
end if;
end process p_row_col_count;
o_H Sync <= '1' when
r_col_Count <g_ACTIVE_COLS
else '0' ;
o_V S y n c <='1' when
r_Row_count < g_ACTIVE_ROWS
else '0';
o_col_count<=
std_logic_vector( to_unsigned(r_col_Count,o_Col_Count 'length));
o_Row_Count <=
std_logic_vector(to_unsigned(r_Row_count,o_Row_Count' length));
end architecture R T L;
This is a subject on "Design of logic systems", using VHDL
codes. Thank you.
Also, note that the limitations that I cannot use vector in the
input and output variables. Thank you
ww DECADE achive vhdk design exty Clock D> /clock ResePeset chel asvn COUNTER o2 INI Op 1' → Count up > count down gates the rect nunber for fium Oto and 'E' for ofther b'harj b LED ghtue when ceunt down to Yoood or count number IAN 3...
Using SIMPLE (not conditional) Signal Assignment, design the
following circuit by VHDL code
Do this in VHDL
8. Design the following 2-to-4 Decoder in VHDL
VHDL structural code please
Design an 8-bit add/subtract in Verilog AND VHDL using any of the coding styles and language features covered so far in modules 8 and 9. When AS Sel0 it performs an addition, else when AS Sel 1 it performs a subtraction. OpA and OpB are assumed to be signed, 2's-Complement numbers. Hint: Bit-wise XOR AS Sel with OpB before adding it to OpA- see lecture notes Op87.0Add/ Subtract Vout
Design using VHDL a 5 input majority voter circuit that outputs a 1 when majority of inputs are 1. inputs can be named A, B , C , D, E. Design using if and else wherever possible.
Lab 7: Design a 4 bit register in VHDL. The register file has a synchronous load signal and an asynchronous reset. When the reset signal is high the register file should be cleared. The input is stored only when the load and clock signal is high.
Design C-1 (modulo-10 up-counter): Using the behavioral VHDL coding, create an up-counter to count upward. The up counter has the following control inputs En.reset, CLK. The counting outputs are Q0, O1, Q2. and O3 reset clears the outputs of the counter to 0. En enables the counting when En-1. When En-0, the counter stops. The counter sequentially counts all the possible numbers and loops again, from 0 to 9, back to 0 and 9, etc Design C-2: Ten-second Counter with...
Q3: Using VHDL code, design a 4 bit BCD up counter using sequential statements (30 Marks) 0 012 03 C FF3 c( FFO
Q3: Using VHDL code, design a 4 bit BCD up counter using sequential statements (30 Marks) 0 012 03 C FF3 c( FFO
ECE 275 - DIGITAL DESIGN Question 1: (@) Write VHDL code for a 2-to-1 multiplexer. - (6) Implement - using only the Sunction R= ab h + bch' + eg h + 8 h 2-to-1 multiplexers. Use the 2-to-1 multiplexer VHDL description as a component to write VHDL code for the of Sunction R, from Problem 1 circuit design
Using VHDL language, design, simulate and implement a “2-Digit up/down BCD seconds counter with reset button”circuit. The counter value must be automatically incremented/decremented twice every second (slow down the clock to 2 Hz). The up counting or down counting is determined by the status of a toggle switch on DE10-Lite board. If the toggle switch is set to logic 0 , the counter should count down and vice versa. In the up counting mode, if the counter reaches “59”, the...