From 3c32cbc213f06c152189f10d082ccfeebebd9439 Mon Sep 17 00:00:00 2001 From: Raphael Jacquot Date: Wed, 6 Feb 2019 17:50:36 +0100 Subject: [PATCH] attempt to fix bus --- saturn_core.v | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/saturn_core.v b/saturn_core.v index 4fe280d..e27b883 100644 --- a/saturn_core.v +++ b/saturn_core.v @@ -103,7 +103,7 @@ module hp48_io_ram ( input [3:0] command, input [3:0] nibble_in, output reg [3:0] nibble_out, - output io_ram_active, + output reg io_ram_active, output reg io_ram_error ); @@ -118,7 +118,7 @@ reg [19:0] base_addr; reg [19:0] pc_ptr; reg [19:0] data_ptr; reg [3:0] io_ram [0:IO_RAM_LEN-1]; -wire io_ram_active; + /* * * @@ -164,13 +164,12 @@ initial */ always @(*) - case (command) - `BUSCMD_PC_READ, `BUSCMD_DP_READ, - `BUSCMD_PC_WRITE, `BUSCMD_PC_WRITE: + begin + io_ram_active = 0; + if ((command==`BUSCMD_PC_READ)|(command==`BUSCMD_DP_READ)| + (command==`BUSCMD_PC_WRITE)|(command==`BUSCMD_PC_WRITE)) io_ram_active = ((base_addr>=data_ptr)&(data_ptr