Re: [myhdl-list] All inputs no output with generated Verilog and VHDL
Brought to you by:
jandecaluwe
From: Josy B. <jos...@gm...> - 2015-02-08 15:44:52
|
Edward Vidal <develone <at> sbcglobal.net> writes: > > > Hello All,I am using the following python code to generate my Verilog and VHDL fileshttps://github.com/develone/jpeg-2000- test/blob/master/jpeg2k/parallel_jpeg/array_jpeg.pyThe files get created which are the following two fileshttps://github.com/develone/jpeg-2000- test/blob/master/jpeg2k/parallel_jpeg/jp_process.vhdand https://github.com/develone/jpeg-2000- test/blob/master/jpeg2k/parallel_jpeg/jp_process.vThe V > HDL file when I try to synthesize I get the error"Use <= to assign to signal res_out_x". Changing the 4 lines where ":=:" appears to > "<="res_out_x((LVL0 - 1)) := (sam_s((LVL0 - 1)) - (shift_right(left_s((LVL0 - 1)), 1) + shift_right(right_s((LVL0 - 1)), 1)));Process "Synthesize - XST" completed successfullyMentity jp_process is port ( sig_in_x_i: in unsigned(15 downto 0); res_out_x_i: in unsigned(15 downto 0); left_s_i: in unsigned(15 downto 0); sam_s_i: in unsigned(15 downto 0); right_s_i: in unsigned(15 downto 0); flgs_s_i: > in unsigned(9 downto 0) );end entity jp_process;The Verilog file has no problem with the Synthesize. I generated a Test Bedhttps://github.com/develone/jpeg-2000- test/blob/master/jpeg2k/parallel_jpeg/TBjp_process.vI am not able to see get the output signalhttps://github.com/develone/jpeg-2000- test/blob/master/jpeg2k/parallel_jpeg/nooutput.GIFAny and all help is appreciated.Thanks > <snip> >My entity are all inputs. How do you access the output? What'd you expect? If you don't declare outputs, you just don't have any. MyHDL gets mixed up between variables and signals, but I wouldn't blame MyHDL for that. That the Verilog converted code synthesizes is just a fluke (I guess to do with blocking and non-blocking?). If you let ISE go all the way, you very probably end up with everything optimised away. Our BDFL would say, simulate first then convert ... After all, one of the greatest features of MyHDL is in Simulation Regards, Josy |