1
0
mirror of synced 2026-01-11 23:53:00 +00:00

changes for hw

This commit is contained in:
brad 2010-04-16 13:46:48 +00:00
parent 84def5b611
commit 93f1d3c9d4
2 changed files with 12 additions and 6 deletions

View File

@ -32,6 +32,8 @@
`include "../rtl/ide.v"
`include "../rtl/ram_256x12.v"
`include "../rtl/bootrom.v"
`ifdef use_sim_ram_model
`include "../rtl/ram_32kx12.v"
`else
@ -45,6 +47,8 @@ module test;
reg clk, reset;
reg [11:0] switches;
wire [14:0] initial_pc;
wire [11:0] ram_data_in;
wire ram_rd;
wire ram_wr;
@ -86,11 +90,12 @@ module test;
wire [1:0] ide_cs;
wire [2:0] ide_da;
reg rs232_in;
reg rs232_in;
wire rs232_out;
pdp8 cpu(.clk(clk),
.reset(reset),
.initial_pc(initial_pc),
.ram_addr(ram_addr),
.ram_data_in(ram_data_out),
.ram_data_out(ram_data_in),
@ -172,6 +177,9 @@ module test;
reg [1023:0] arg;
integer n;
assign initial_pc = starting_pc;
initial
begin
$timeformat(-9, 0, "ns", 7);
@ -268,11 +276,6 @@ module test;
#60 begin
reset = 0;
end
cpu.pc = starting_pc[11:0];
cpu.IF = starting_pc[14:12];
// #5000000 $finish;
end
always

View File

@ -15,6 +15,9 @@
`include "../rtl/top.v"
`include "../rtl/ram_256x12.v"
`include "../rtl/debounce.v"
`include "../rtl/bootrom.v"
`include "../rtl/display.v"
`include "../rtl/sevensegdecode.v"
`timescale 1ns / 1ns