Commit 20629818 authored by Mathieu Saccani's avatar Mathieu Saccani

Add some missing reset values, so the signals propagated to the WB are not 'X'…

Add some missing reset values, so the signals propagated to the WB are not 'X' when the simulation starts.
parent f50d79fc
...@@ -322,55 +322,67 @@ begin ...@@ -322,55 +322,67 @@ begin
-- FSM reset after power up, -- FSM reset after power up,
-- software reset, manually reset, -- software reset, manually reset,
-- on rising edge of AS. -- on rising edge of AS.
s_conf_req <= '0'; s_conf_req <= '0';
decode_start_o <= '0'; decode_start_o <= '0';
-- VME -- VME
vme_odff_dtack_oe <= '0'; vme_odff_dtack_oe <= '0';
vme_odff_dtack_n <= '1'; vme_odff_dtack_n <= '1';
vme_dtack_async_ctrl <= '0'; vme_dtack_async_ctrl <= '0';
vme_odff_retry_oe <= '0'; vme_odff_retry_oe <= '0';
vme_odff_retry_n <= '1'; vme_odff_retry_n <= '1';
vme_odff_data_dir <= '0'; vme_odff_data_dir <= '0';
vme_odff_addr_dir <= '0'; vme_odff_addr_dir <= '0';
vme_odff_lword_n <= '0'; vme_odff_lword_n <= '0';
vme_berr_n_o <= '1'; vme_berr_n_o <= '1';
vme_iackout_n_o <= '1'; vme_iackout_n_o <= '1';
s_MBLT_Data <= '0'; s_MBLT_Data <= '0';
s_mainFSMstate <= IDLE; s_mainFSMstate <= IDLE;
-- WB -- WB
s_wb_start <= '0'; s_wb_start <= '0';
vme_idff_addr <= (others => '0'); vme_cycles <= (others => '0');
vme_idff_am <= (others => '0'); vme_idff_addr <= (others => '0');
vme_idff_data <= (others => '0');
vme_idff_am <= (others => '0');
vme_idff_ds_n <= (others => '1');
vme_idff_write_n <= '1';
vme_idff_lword_n <= '0';
vme_odff_addr <= (others => '0'); vme_odff_addr <= (others => '0');
vme_odff_data <= (others => '0');
load_addr_reg_phase1 <= '0'; load_addr_reg_phase1 <= '0';
load_addr_reg_phase2 <= '0'; load_addr_reg_phase2 <= '0';
s_transferType <= TFR_ERROR; s_transferType <= TFR_ERROR;
s_card_sel <= '0'; s_2e_dtack <= '0';
s_conf_sel <= '0'; s_DS_latch_count <= (others => '0');
s_irq_sel <= '0'; s_setup <= (others => '0');
irq_ack_o <= '0'; s_sst_timing <= (others => '0');
s_card_sel <= '0';
s_conf_sel <= '0';
s_irq_sel <= '0';
irq_ack_o <= '0';
else else
s_conf_req <= '0'; s_conf_req <= '0';
decode_start_o <= '0'; decode_start_o <= '0';
vme_odff_dtack_oe <= '0'; vme_odff_dtack_oe <= '0';
vme_odff_dtack_n <= '1'; vme_odff_dtack_n <= '1';
vme_odff_retry_oe <= '0'; vme_odff_retry_oe <= '0';
vme_odff_retry_n <= '1'; vme_odff_retry_n <= '1';
vme_dtack_async_ctrl <= '0'; vme_dtack_async_ctrl <= '0';
vme_berr_n_o <= '1'; vme_berr_n_o <= '1';
vme_iackout_n_o <= '1'; vme_iackout_n_o <= '1';
irq_ack_o <= '0'; irq_ack_o <= '0';
load_addr_reg_phase1 <= '0'; load_addr_reg_phase1 <= '0';
load_addr_reg_phase2 <= '0'; load_addr_reg_phase2 <= '0';
s_wb_start <= '0'; s_wb_start <= '0';
case s_mainFSMstate is case s_mainFSMstate is
...@@ -930,10 +942,19 @@ begin ...@@ -930,10 +942,19 @@ begin
wb_we_o <= '0'; wb_we_o <= '0';
addr_reg <= (others => '0'); addr_reg <= (others => '0');
lword_n_reg <= '0'; lword_n_reg <= '0';
data_reg <= (others => '0');
s_err <= '0'; s_err <= '0';
s_wb_done <= '0'; s_wb_done <= '0';
s_cross_boundary <= '0'; s_cross_boundary <= '0';
inc_reg <= (others => '0');
s_stall <= '0';
s_wb_dataphase <= '0';
else else
case s_WBFSMstate is case s_WBFSMstate is
when IDLE => when IDLE =>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment