From 95143d640c2d3ceb1cfd69460316cfc956f240c9 Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Thu, 3 Apr 2008 02:00:37 -0400 Subject: [PATCH] Add buildrom.sh. Add some comments of note in System.v. --- System.v | 6 +++--- buildrom.sh | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 buildrom.sh 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 -- 2.43.0