OSDN Git Service

Comment add
authoryujiro_kaeko <zyangalianhamster01@gmail.com>
Sat, 25 Jun 2011 14:22:15 +0000 (23:22 +0900)
committeryujiro_kaeko <zyangalianhamster01@gmail.com>
Sat, 25 Jun 2011 14:22:15 +0000 (23:22 +0900)
Change-Id: Ifc1fdc64d5030aff7363bf9936b9aa4855922989

VGADisplay/src/exp_ctrl.nsl
VGADisplay/src/top.nsl
VGADisplay/src/vram.nsh
VGADisplay/src/vram_ctrl.nsl

index a9ae968..1050a8f 100644 (file)
@@ -1,3 +1,5 @@
+/* Expantion Control Module */
+
 #include "vram_ctrl.nsl"
 
 declare exp_ctrl {
@@ -6,6 +8,7 @@ declare exp_ctrl {
        func_in read_req( rdadrs_i ) ;
        func_out read_ack( rddata_o ) ;
 }
+
 module exp_ctrl {
        wire exp_q[16] ;
        vram_ctrl U_VRAMC ;
index e965111..34f60f8 100644 (file)
@@ -1,5 +1,7 @@
+#define SIM\r
+\r
 #include "vga_generate.nsl"\r
-//#include "exp_ctrl.nsl"\r
+#include "exp_ctrl.nsl"\r
 \r
 declare vga_top {\r
        output v_sync_o ;\r
@@ -22,7 +24,7 @@ module vga_top {
        func_self vga_sys_init ;\r
 \r
        vga_generate U_VGA ;\r
-//     exp_ctrl U_EXP ;\r
+       exp_ctrl U_EXP ;\r
        \r
        U_VGA.pix32_data_i = 32'd0 ;\r
        \r
@@ -41,7 +43,7 @@ module vga_top {
        \r
        func vga_sys_init seq {\r
                for(line_cnt:=0;line_cnt<80;line_cnt++) {\r
-                       line_buff1[line_cnt] := \r
+//                     line_buff1[line_cnt] := \r
                }\r
        }\r
 }
\ No newline at end of file
index d8a34c6..278cb0d 100644 (file)
@@ -1,3 +1,5 @@
+/* VRAM Header File For Altera Config  */
+
 declare vram {
        input  clock ;
        input  data[8] ;
index c4d9335..a4d4cba 100644 (file)
@@ -1,4 +1,10 @@
-#include "vram.nsh"
+/* VRAM Control Module */
+
+#ifdef SIM
+       #include "vram.nsh"
+#else
+       #include "vram.nsl"
+#endif
 
 declare vram_ctrl interface {
        input   m_clock ;