notes 909 B

123456789101112131415161718192021222324252627
  1. VGA has primarily 5 main signals:
  2. - Red
  3. - Green
  4. - Blue
  5. - Hsync : Horizontal Sync
  6. - Vsync : Vertical Sync
  7. One can assign memory in registers for RGB to control how many colors to have on our screen.
  8. PS2 has 2 main signals:
  9. - clock
  10. - data : 11 bit packet (intended data is sampled on falling edge)
  11. start bit, 8 data bits, parity bit, stop bit
  12. When no data is transmitted, both clock and data signals are low.
  13. For including a module from other file in same folder, use syntax
  14. `include “another_file.v”
  15. `include “folder/another_file.v” //for further into a directory
  16. The typical convention is that *.sv files are placed on the compilers command line, whereas *.svh files are read by `include directives from other files
  17. Writing pin configuration file(pcf):
  18. set_io D1 99 - where D1 in this case is an input or output of the Verilog module called "D1", and 99 is the pin number of the Lattice FPGA.