Enable interrupts, print out current rtc tick
This commit is contained in:
@@ -162,4 +162,16 @@ rtc_code sim:
|
||||
- cd hw/efinix_fpga/simulation
|
||||
- make clean
|
||||
- TEST_PROGRAM_NAME=rtc_test make rtc_code_tb
|
||||
- ./rtc_code_tb
|
||||
- ./rtc_code_tb
|
||||
|
||||
devices_setup_code sim:
|
||||
tags:
|
||||
- linux
|
||||
- iverilog
|
||||
stage: simulate
|
||||
script:
|
||||
- source init_env.sh
|
||||
- cd hw/efinix_fpga/simulation
|
||||
- make clean
|
||||
- TEST_PROGRAM_NAME=devices_setup_test make devices_setup_code_tb
|
||||
- ./devices_setup_code_tb
|
||||
@@ -20,4 +20,8 @@ always begin
|
||||
# 1;
|
||||
end
|
||||
|
||||
always @(u_sim_top.u_dut.u_rtc.r_output) begin
|
||||
$display("counter: %d", u_sim_top.u_dut.u_rtc.r_output);
|
||||
end
|
||||
|
||||
endmodule
|
||||
@@ -34,4 +34,6 @@ _init:
|
||||
lda #$0
|
||||
jsr _enable_irq
|
||||
|
||||
cli
|
||||
|
||||
@end: bra @end
|
||||
Reference in New Issue
Block a user