Advertisement
Guest User

Untitled

a guest
Dec 10th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. `timescale 1ns / 1ps
  2. //////////////////////////////////////////////////////////////////////////////////
  3. // Company:
  4. // Engineer:
  5. //
  6. // Create Date:    15:20:57 11/08/2018
  7. // Design Name:
  8. // Module Name:    lcd_driver
  9. // Project Name:
  10. // Target Devices:
  11. // Tool versions:
  12. // Description:
  13. //
  14. // Dependencies:
  15. //
  16. // Revision:
  17. // Revision 0.01 - File Created
  18. // Additional Comments:
  19. //
  20. //////////////////////////////////////////////////////////////////////////////////
  21. module lcd_driver #(parameter dd = 50000)(input rst, clk, input [15:0] data, input blank,
  22.                         output E, RW, RS, output [7:0] DB);
  23.  
  24.     wire [1:0] mux_sel, init_sel;
  25.  
  26.     lcd_controller lcontroller(clk, rst, en,
  27.                              data_sel, DB_sel,
  28.                              init_sel, mux_sel,
  29.                              E, RW, RS);
  30.     clkDiv #(.div(dd)) cdiv(clk, rst, en);
  31.     lcd_dp lcddp(init_sel, mux_sel, data_sel, DB_sel, blank, DB, data);
  32.  
  33. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement