A
ALuPin@web.de
Guest
Hi,
I have a signal (integer). How can I describe synthesizable code
for dividing that signal by 48 ? Result (ls_rowaddr) should
be whole-number that is integer.
SIGNAL ls_pos : integer RANGE 0 TO 8191;
SIGNAL ls_rowaddr : integer RANGE 0 TO 191;
PROCESS(Reset, Clk)
BEGIN
IF Reset='1' THEN
ls_pos <= 0;
ELSIF rising_edge(Clk) THEN
IF load='1' THEN
ls_pos <= LoadAddr;
END IF;
END IF;
END PROCESS;
-- synthesis ???
PROCESS(ls_pos)
BEGIN
ls_rowaddr <= ls_pos / 48;
END IF;
How can 32 (2^5) and 16 (2^4) be combined ?
Thank you for your comments
Rgds
André
I have a signal (integer). How can I describe synthesizable code
for dividing that signal by 48 ? Result (ls_rowaddr) should
be whole-number that is integer.
SIGNAL ls_pos : integer RANGE 0 TO 8191;
SIGNAL ls_rowaddr : integer RANGE 0 TO 191;
PROCESS(Reset, Clk)
BEGIN
IF Reset='1' THEN
ls_pos <= 0;
ELSIF rising_edge(Clk) THEN
IF load='1' THEN
ls_pos <= LoadAddr;
END IF;
END IF;
END PROCESS;
-- synthesis ???
PROCESS(ls_pos)
BEGIN
ls_rowaddr <= ls_pos / 48;
END IF;
How can 32 (2^5) and 16 (2^4) be combined ?
Thank you for your comments
Rgds
André