[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [f-cpu] FPU Adder....



I thing that vhdl standard say that variable can't be view as waveformes. 
MTI/modeltech don't do it either.

	-- return true is F only have 0
	function fl_isnull(F: std_ulogic_vector) return boolean is
		variable res : boolean;
		variable m   : std_ulogic_vector(1 to F'length) := F;
	begin
		res := true;
		for i in 1 to F'length loop
			if m(i) = '1' then
				res := false;
			end if;
		end loop;
		return res;
	end;

You can't use that. 
	-- return true is F only have 0
	function fl_isnull(F: std_ulogic_vector) return boolean is
		variable res : boolean;
		variable m   : std_ulogic_vector(1 to F'length) := F;
	begin
	        res := (F = 0);
		return res;
	end;
You could use normal operation. If it don't work translate it to 
std_logic_vector.

Long chain of elsif must absolutly avoided if possible because it's slow. Use 
switch case instead if possible.

"En" signal  must not be in the process sensitivity list of a clocked process.

 n@ n@- au niveau informatique, comment se passent vos relations avec eux ?

Y'a-t-il un sujet que j'ai oublié ?
La vente liée est aussi un problème, à LinuxFrench, nous en avons fait l'un de 
nos cheval de bataille, si de grands groupes respectaient le droit cela ne 
devrait même pas exister, mais c'est à chacun de nous de faire respecter nos 
droits, sinon nous risquons un jour de les voir disparaître...
http://www.linuxfrench.net/oem/

En conclusion:
Pourquoi passez-vous autant de temps (libre) sur le logiciel libre ?
Par plaisir, par envie d'apprendre, pour communiquer

Pourquoi donner son travail ?
Pour faire partager ma passion à d'autres, et fondamentalement parce que j'y 
crois.

Est-ce que vous voudriez profiter de cet article pour ajouter quelque chose ?

Avez-vous des url qui vous plaisent ou des sites personnels à faire connaître 
?

          while (S5MP(MSIZE) /= '1') loop
		              S5EP := fl_decr(S5EP);
		             	S5MP(MSIZE downto 1) := S5MP(MSIZE-1 downto 0);
		             	S5MP(0) := '0';
		            end loop;

Dynamic loop can't be synthetised. Synthetiser unroll such loop but can't do 
anything with that. It look like it need a clock but which one ?
If you want to use loop use only argument that end the loop that can be 
decided at compile time.

nicO

*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu       in the body. http://f-cpu.seul.org/