Changeset 10238 for firmware/FTU
- Timestamp:
- 03/11/11 14:18:22 (14 years ago)
- Location:
- firmware/FTU/rs485
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
firmware/FTU/rs485/FTU_rs485_control.vhd
r10051 r10238 74 74 signal rx_valid_sig : std_logic; -- initialized in FTU_rs485_interface 75 75 signal rx_data_sig : std_logic_vector (7 DOWNTO 0); -- initialized in FTU_rs485_interface 76 --signal rx_busy_sig : std_logic; -- initialized in FTU_rs485_interface 77 78 signal block_valid_sig : std_logic; -- initialized in FTU_rs485_receiver 79 signal data_block_sig : std_logic_vector(RS485_BLOCK_WIDTH - 1 downto 0); -- initialized in FTU_rs485_receiver 76 signal rx_busy_sig : std_logic; -- initialized in FTU_rs485_interface 77 78 signal block_valid_sig : std_logic; -- initialized in FTU_rs485_receiver 79 signal start_interpreter_sig : std_logic := '0'; 80 signal data_block_sig : std_logic_vector(RS485_BLOCK_WIDTH - 1 downto 0); -- initialized in FTU_rs485_receiver 80 81 81 82 signal int_new_DACs_sig : std_logic; -- initialized in FTU_rs485_interpreter … … 117 118 port( 118 119 rec_clk : in std_logic; 119 -- rx_busy : in std_logic;120 -- rx_busy : in std_logic; 120 121 rec_din : in std_logic_vector(7 downto 0); 121 122 rec_den : in std_logic; … … 156 157 -- FPGA 157 158 rx_data : OUT std_logic_vector (7 DOWNTO 0); 158 --rx_busy : OUT std_logic := '0';159 rx_busy : OUT std_logic := '0'; 159 160 rx_valid : OUT std_logic := '0'; 160 161 tx_data : IN std_logic_vector (7 DOWNTO 0); … … 176 177 177 178 crc_sig <= crc_sig_inv(0) & crc_sig_inv(1) & crc_sig_inv(2) & crc_sig_inv(3) & crc_sig_inv(4) & crc_sig_inv(5) & crc_sig_inv(6) & crc_sig_inv(7); 179 start_interpreter_sig <= block_valid_sig and (not rx_busy_sig); -- avoid answering to early to FTM 178 180 179 181 Inst_ucrc_par : ucrc_par … … 196 198 port map( 197 199 rec_clk => main_clk, 198 -- rx_busy =>,200 -- rx_busy => rx_busy_sig, 199 201 rec_din => rx_data_sig, 200 202 rec_den => rx_valid_sig, … … 207 209 clk => main_clk, 208 210 data_block => data_block_sig, 209 block_valid => block_valid_sig,211 block_valid => start_interpreter_sig, 210 212 brd_add => brd_add, 211 213 crc_error_cnt => crc_error_cnt_sig, … … 233 235 -- FPGA 234 236 rx_data => rx_data_sig, 235 --rx_busy => rx_busy_sig,237 rx_busy => rx_busy_sig, 236 238 rx_valid => rx_valid_sig, 237 239 tx_data => tx_data_sig, -
firmware/FTU/rs485/FTU_rs485_interface.vhd
r10037 r10238 34 34 -- FPGA 35 35 rx_data : OUT std_logic_vector (7 DOWNTO 0); 36 --rx_busy : OUT std_logic := '0';36 rx_busy : OUT std_logic := '0'; 37 37 rx_valid : OUT std_logic := '0'; 38 38 tx_data : IN std_logic_vector (7 DOWNTO 0); … … 122 122 rx_en <= flow_ctrl; 123 123 rx_data <= rx_sr; 124 --rx_busy <= '1' when (rx_bitcnt < 11) else '0';124 rx_busy <= '1' when (rx_bitcnt < 11) else '0'; 125 125 126 126 END ARCHITECTURE beha; -
firmware/FTU/rs485/FTU_rs485_receiver.vhd
r10047 r10238 27 27 port( 28 28 rec_clk : in std_logic; 29 -- rx_busy : in std_logic;29 -- rx_busy : in std_logic; 30 30 rec_din : in std_logic_vector(7 downto 0); 31 31 rec_den : in std_logic;
Note:
See TracChangeset
for help on using the changeset viewer.