Guest
Hi all,
Sort of new to VHDL, and I am trying to understand some code so I can
translate it to Verilog.
LAST_BANKRW_PROCESS: process(Clk)
begin
....
last_row_lsb <= row_addr(12);
last_bank_lsb <= bank_addr(1);
...
end process LAST_BANKRW_PROCESS
same_row <= '1' when last_row_lsb = row_addr(12) else '0'
same_bank <= '1' when last_bank_lsb = row_bank(12) else '0'
-------------------------------------
// suppose to be a rising edge qualifier ???
XFERSIGS_RE_PROCESS: process(Clk)
begin
....
wr_req <= Bus_WrReq;
rd_req <= Bus_RdReq;
....
end process XFERSIGS_RE_PROCESS
wr_req_re <= Bus_WrReq and not(wr_req);
rd_req_re <= Bus_RdReq and not(rd_req);
**************************************************************************************
In XFERSIGS_RE_PROCESS, wr_req_re and rd_req_re will always be '0'
because it will be "0 and 1" or "1 and 0".
Is my understanding right? If not, please clearify. I am confused.
Thanks,
-Tony
Sort of new to VHDL, and I am trying to understand some code so I can
translate it to Verilog.
LAST_BANKRW_PROCESS: process(Clk)
begin
....
last_row_lsb <= row_addr(12);
last_bank_lsb <= bank_addr(1);
...
end process LAST_BANKRW_PROCESS
same_row <= '1' when last_row_lsb = row_addr(12) else '0'
same_bank <= '1' when last_bank_lsb = row_bank(12) else '0'
-------------------------------------
// suppose to be a rising edge qualifier ???
XFERSIGS_RE_PROCESS: process(Clk)
begin
....
wr_req <= Bus_WrReq;
rd_req <= Bus_RdReq;
....
end process XFERSIGS_RE_PROCESS
wr_req_re <= Bus_WrReq and not(wr_req);
rd_req_re <= Bus_RdReq and not(rd_req);
**************************************************************************************
each other.From my limited understanding, the LAST_BANKRW_PROCESS does nothing...
same_row and same_bank will alway be '1' because they will always equal
In XFERSIGS_RE_PROCESS, wr_req_re and rd_req_re will always be '0'
because it will be "0 and 1" or "1 and 0".
Is my understanding right? If not, please clearify. I am confused.
Thanks,
-Tony