ELGIP-51 - Some signals are now set to zero when VECT_RAMP_EN is false. Added new generic VECT_CPU_EN

This commit is contained in:
gianmarcogirau 2020-02-20 13:13:33 +00:00
commit afd43ee557

View file

@ -6,7 +6,7 @@
-- Author : Robbie Temple (original)
-- Company : Global Inkjet Systems
-- Created : 2016-05-12
-- Last update: 2020-02-19
-- Last update: 2020-02-20
-- SVN ID : Git
-- Standard : VHDL'2008
-------------------------------------------------------------------------------
@ -31,6 +31,7 @@ entity generic_sequencer_16 is
POS_WIDTH : natural range 1 to 24 := 12;
SEQ_DEPTH : natural range 256 to 4096 := 256;
ADD_VEC_PIPE : boolean := false; -- Add a pipeline register on vector_out
VECT_CPU_EN : boolean := false;
VECT_RAMP_EN : boolean := false;
BUS_BURST_EN : boolean := false;
POS_BUS_EN : boolean := false;
@ -192,8 +193,6 @@ begin
seq_enable <= '0';
rst_vector_out <= '0';
debug_mode <= '0';
vector_val_cpu <= '0';
vector_cpu <= (others => '0');
step_req <= '0';
clr_seq_queue <= '0';
clr_seq_queue_exe <= '0';
@ -230,9 +229,11 @@ begin
debug_mode <= avs_csr_writedata(3);
end if;
when CSR_VECTOR_ADDR =>
if fsm = s_idle then
vector_val_cpu <= '1';
vector_cpu <= avs_csr_writedata(VECTOR_WIDTH - 1 downto 0);
if(VECT_CPU_EN = true) then
if(fsm = s_idle) then
vector_val_cpu <= '1';
vector_cpu <= avs_csr_writedata(VECTOR_WIDTH - 1 downto 0);
end if;
end if;
when CSR_STEP_ADDR =>
step_req <= '1';
@ -567,8 +568,10 @@ begin
vector_out_i(RAMP_WIDTH-1 downto 0) <= ramp_next;
end if;
end if;
elsif (vector_val_cpu = '1') then
vector_out_i <= vector_cpu;
elsif (VECT_CPU_EN = true) then
if(vector_val_cpu = '1') then
vector_out_i <= vector_cpu;
end if;
end if;
if(VECT_RAMP_EN = true and decode = '1') then
if(opcode = CMD_VEC_RAMP) then
@ -679,8 +682,13 @@ end process pSEQ_REGs;
end generate gRAMP_GEN;
gRAMP_NOGEN : if VECT_RAMP_EN = false generate
ramp_next <= (others => '0');
ramp_up <= '0';
ramp_up <= '0';
ramp_done <= '0';
ramp_curr <= (others => '0');
ramp_next <= (others => '0');
ramp_diff <= (others => '0');
ramp_final <= (others => '0');
end generate gRAMP_NOGEN;
gBUS_BURST_GEN : if BUS_BURST_EN = true generate