Add buildrom.sh. Add some comments of note in System.v.
authorJoshua Wise <joshua@rebirth.joshuawise.com>
Thu, 3 Apr 2008 06:00:37 +0000 (02:00 -0400)
committerJoshua Wise <joshua@rebirth.joshuawise.com>
Thu, 3 Apr 2008 06:00:37 +0000 (02:00 -0400)
System.v
buildrom.sh [new file with mode: 0644]

index 996ec10..8bc14e9 100644 (file)
--- a/System.v
+++ b/System.v
@@ -31,9 +31,9 @@ module InternalRAM(
        
        always @(negedge clk)
        begin
-               if (decode)
-               begin
-                       if (wr)
+               if (decode)     // This has to go this way. The only way XST knows how to do
+               begin                           // block ram is chip select, write enable, and always
+                       if (wr)         // reading. "else if rd" does not cut it ...
                                ram[address[12:0]] <= data;
                        odata <= ram[address[12:0]];
                end
diff --git a/buildrom.sh b/buildrom.sh
new file mode 100644 (file)
index 0000000..2bce4f5
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/bash
+rgbasm -orom.o rom.asm && xlink rom.lnk && ./mashrom < rom.bin > rom.hex
This page took 0.021482 seconds and 4 git commands to generate.