Re: parallel to serial
Jan Decaluwe <[email protected]> Fri, 15 Jan 2016 23:38:51 +0100
| Newsgroups | gmane.comp.python.myhdl |
|---|---|
| Organization | resources |
| Message-ID | <[email protected]> |
On 15/01/16 18:45, Edward Vidal wrote:
> Hello All,
> I can not believe that 3 lines are such a problem.
> This t.next = (temp[36:35]) generates t <= temp(36-1 downto 35)(0);
> which does not appear correct.
Why not?
But still, if working with single bits, why don't you simply
assign an index instead of a slice?
> This temp[36:1].next = temp[35:0] generates temp(36-1 downto 1) <= temp(35-1 downto 0);
> which be taking the lower 34 bits to upper 34 of temp.
That makes no sense in MyHDL, and will not simulate. Hence, you
cannot draw any conclusions from conversion, even if it doesn't complain.
Simulate first.
> I am using @always(clk.posedge) could this be the problem?
No.
--
Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com
Python as a HDL: http://www.myhdl.org
VHDL development, the modern way: http://www.sigasi.com
World-class digital design: http://www.easics.com
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140