From: Joshua Wise Date: Thu, 3 Apr 2008 06:00:37 +0000 (-0400) Subject: Add buildrom.sh. Add some comments of note in System.v. X-Git-Url: http://git.joshuawise.com/fpgaboy.git/commitdiff_plain/95143d640c2d3ceb1cfd69460316cfc956f240c9?ds=inline;hp=97d31911d562d3bbb07f44e027aa1886ac914a99 Add buildrom.sh. Add some comments of note in System.v. --- diff --git a/System.v b/System.v index 996ec10..8bc14e9 100644 --- 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 index 0000000..2bce4f5 --- /dev/null +++ b/buildrom.sh @@ -0,0 +1,2 @@ +#!/bin/bash +rgbasm -orom.o rom.asm && xlink rom.lnk && ./mashrom < rom.bin > rom.hex