Re: [myhdl-list] Driving constants
Brought to you by:
jandecaluwe
From: Jan L. <jan...@et...> - 2011-09-04 22:50:00
|
Am 05.09.2011 um 00:40 schrieb Sébastien Bourdeauducq: > On 09/04/2011 11:59 PM, Jan Langer wrote: >> So my idea was to put the clock edge into the sensitivity list and >> you >> get a clocked process that drives a constant, > > Ah, ok. :) > >> which in your case will get optimized away and behave as a normal >> constant. > > I'm afraid it won't. By default, FPGA registers are initialized at 0 > immediately after configuration. So if I want to drive a constant 1, I > will get instead a register that will drive 0 until the first clock > cycle, after which it drives 1. Maybe you got a reset signal and can use that to set the initial value. Then the synthesis will get rid of the register. -- Jan Langer Professorship Circuit and System Design Chemnitz University of Technology, Reichenhainer Str. 70, 09126 Chemnitz Phone: +49 37209 688001, Fax: +49 371 531-833158, Mobile: +49 162 9847325 http://www.tu-chemnitz.de/etit/sse |