summaryrefslogtreecommitdiff
path: root/eater_cpu
diff options
context:
space:
mode:
authoruvok2026-01-16 18:23:36 +0100
committeruvok2026-01-16 18:23:36 +0100
commit87b84ba9c6e4e14194a90eb086c25b75bb867932 (patch)
treeff08787aaa4807c062575a1096ecf1e15fe7accf /eater_cpu
parent47c26f27b8be4c6c22ed81f701f1b25072bb3341 (diff)
eater: Include RAM
Diffstat (limited to 'eater_cpu')
-rw-r--r--eater_cpu/eater_computer.sv19
1 files changed, 17 insertions, 2 deletions
diff --git a/eater_cpu/eater_computer.sv b/eater_cpu/eater_computer.sv
index 9595abf..cb94b86 100644
--- a/eater_cpu/eater_computer.sv
+++ b/eater_cpu/eater_computer.sv
@@ -3,10 +3,25 @@
`timescale 1us/1us
module eater_computer(
- input clk_in,
- output [7:0] debug_bus
+ input wire clk_in,
+ output wire [7:0] debug_bus
);
+// fucking being including so that VScode extensions find this module
+// (because config'ing the include path alone doesn't help)
+// vs fucking actually compiling it and tools complaining about the fucking timescale.
+`ifndef COMPILING
+`include "../playground/my_mem.v"
+`endif
+
+my_mem #(
+ .DATA_WIDTH(8),
+ .DATA_DEPTH(16)
+) RAM (
+
+);
+
+
/* verilator public_on */
tri [7:0] bus, A_out, B_out;
logic A_to_bus, bus_to_A,