Added screenshots, modified testbench for lcd driver
This commit is contained in:
@@ -19,6 +19,7 @@ ARCHITECTURE behavior OF lcd_driver_tb IS
|
||||
COMPONENT lcd_driver
|
||||
PORT(
|
||||
clk : IN std_logic;
|
||||
busy : out STD_LOGIC;
|
||||
reset : IN std_logic;
|
||||
data : IN std_logic_vector(7 downto 0);
|
||||
new_character : IN std_logic;
|
||||
@@ -42,6 +43,7 @@ ARCHITECTURE behavior OF lcd_driver_tb IS
|
||||
signal lcd_en : std_logic;
|
||||
signal lcd_rw : std_logic;
|
||||
signal lcd_rs : std_logic;
|
||||
signal busy : std_logic;
|
||||
|
||||
-- Clock period definitions
|
||||
constant clk_period : time := 20 ns;
|
||||
@@ -56,7 +58,8 @@ BEGIN
|
||||
new_character => new_character,
|
||||
new_pos => new_pos,
|
||||
lcd_db => lcd_db,
|
||||
lcd_en => lcd_en
|
||||
lcd_en => lcd_en,
|
||||
busy => busy
|
||||
);
|
||||
|
||||
-- Clock process definitions
|
||||
@@ -77,12 +80,26 @@ BEGIN
|
||||
wait for 100 ns; -- hold reset state for 100 ns.
|
||||
reset <= '0';
|
||||
|
||||
-- Apply Data
|
||||
--data = ''
|
||||
wait for 50ms;
|
||||
|
||||
wait for clk_period*10;
|
||||
|
||||
-- insert stimulus here
|
||||
-- test sending character
|
||||
data <= "11111111";
|
||||
new_character <= '1';
|
||||
new_pos <= '0';
|
||||
|
||||
wait until busy = '0';
|
||||
|
||||
-- test sending character
|
||||
data <= "10101010";
|
||||
new_character <= '0';
|
||||
new_pos <= '1';
|
||||
|
||||
wait until busy = '0';
|
||||
|
||||
data <= "00000000";
|
||||
new_character <= '0';
|
||||
new_pos <= '0';
|
||||
|
||||
wait;
|
||||
end process;
|
||||
|
||||
BIN
screenshots/LCDTB3.png
Normal file
BIN
screenshots/LCDTB3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 60 KiB |
BIN
screenshots/LCDTB4.png
Normal file
BIN
screenshots/LCDTB4.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 57 KiB |
@@ -84,8 +84,8 @@
|
||||
<property xil_pn:name="Package" xil_pn:value="fgg484" xil_pn:valueState="default"/>
|
||||
<property xil_pn:name="Preferred Language" xil_pn:value="VHDL" xil_pn:valueState="non-default"/>
|
||||
<property xil_pn:name="Property Specification in Project File" xil_pn:value="Store non-default values only" xil_pn:valueState="non-default"/>
|
||||
<property xil_pn:name="Selected Module Instance Name" xil_pn:value="/toplevel" xil_pn:valueState="non-default"/>
|
||||
<property xil_pn:name="Selected Simulation Root Source Node Behavioral" xil_pn:value="work.toplevel" xil_pn:valueState="non-default"/>
|
||||
<property xil_pn:name="Selected Module Instance Name" xil_pn:value="/lcd_driver_tb" xil_pn:valueState="non-default"/>
|
||||
<property xil_pn:name="Selected Simulation Root Source Node Behavioral" xil_pn:value="work.lcd_driver_tb" xil_pn:valueState="non-default"/>
|
||||
<property xil_pn:name="Simulator" xil_pn:value="ISim (VHDL/Verilog)" xil_pn:valueState="default"/>
|
||||
<property xil_pn:name="Speed Grade" xil_pn:value="-4" xil_pn:valueState="non-default"/>
|
||||
<property xil_pn:name="Synthesis Tool" xil_pn:value="XST (VHDL/Verilog)" xil_pn:valueState="default"/>
|
||||
|
||||
Reference in New Issue
Block a user