]> Joshua Wise's Git repositories - fpgaboy.git/commitdiff
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 996ec1092c1973a86f85b9ba24e5099ac301f31c..8bc14e9df01a67155742346789f38a6f3bacb76c 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.026424 seconds and 4 git commands to generate.