Explorar el Código

Added const.sv with generic definitions

Min hace 6 años
padre
commit
1fc50e8dcb
Se han modificado 2 ficheros con 7 adiciones y 2 borrados
  1. 6 0
      src/const.sv
  2. 1 2
      src/top.sv

+ 6 - 0
src/const.sv

@@ -0,0 +1,6 @@
+// Processor architecture
+`define OISC
+ 
+// Number of 16bit cells in ram 
+`define RAM_SIZE 4096  
+

+ 1 - 2
src/top.sv

@@ -4,8 +4,7 @@
  * and SDRAM controller. 
 */
 
-// Compile OISC?
-`define OISC
+`include "const.sv"
 
 `ifdef OISC
 `include "oisc/cpu.sv"