mirror of
https://github.com/alangarf/apple-one.git
synced 2025-02-08 20:30:38 +00:00
Forced some internal CPU signals at start of simuation to get rid of undefined signals. Also made sure hard_reset signal is never undefined
This commit is contained in:
parent
f19344cf58
commit
5e3f065223
@ -32,11 +32,21 @@ module apple1_top_tb;
|
||||
// Setup dumping of data for inspection
|
||||
|
||||
initial begin
|
||||
force core_top.my_cpu.DIHOLD = 0;
|
||||
force core_top.my_cpu.ALU.OUT = 0;
|
||||
force core_top.my_cpu.PC = 0;
|
||||
force core_top.my_cpu.ALU.temp_logic = 0;
|
||||
|
||||
clk25 = 1'b0;
|
||||
uart_rx = 1'b0;
|
||||
rst_n = 1'b0;
|
||||
#40 rst_n = 1'b1;
|
||||
|
||||
release core_top.my_cpu.DIHOLD;
|
||||
release core_top.my_cpu.PC;
|
||||
release core_top.my_cpu.ALU.OUT;
|
||||
release core_top.my_cpu.ALU.temp_logic;
|
||||
|
||||
$display("Starting...");
|
||||
$dumpfile("apple1_top_tb.vcd");
|
||||
$dumpvars;
|
||||
|
@ -80,7 +80,7 @@ module top(
|
||||
if (rst_n == 1'b0)
|
||||
begin
|
||||
reset_cnt <= 6'b0;
|
||||
//hard_reset <= 1'b0; we should init hard_reset here too..
|
||||
hard_reset <= 1'b0;
|
||||
end
|
||||
else if (cpu_clken)
|
||||
begin
|
||||
|
Loading…
x
Reference in New Issue
Block a user