6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 9:00 pm

All times are UTC




Post new topic Reply to topic  [ 31 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject:
PostPosted: Sun Jan 09, 2011 9:23 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Hi André
Sorry, I'm not completely sure how you'd validate or investigate the CPLD code - maybe looking through the detailed timing report, or comparing the high level synthesis resource tables between two runs. (In the case of synthesising to FPGA, you can get the tool to dump out a netlist of primitives, and look through that)

Just one tip which might be helpful: when I said this was a don't care situation, I meant specifically that you should tell the synthesis tool that you don't care. But I was too lazy to look up the details. It looks like the VHDL idiom is to assign X to signals when you want to tell the synthesis that it should do whatever is best:
Code:
(others=>'X');
as illustrated on this page:
Quote:
The way I get around this is that I assign values for all outputs. However, if I don't want to be specific with some of them and I just don't care what their outputs are, use 'X' which is for assigning all unknown or don't care values. And so the case statement must be
Code:
when "00" => mux_out1 <= mux_in1; mux_out2 <= "0011";
when "01" => mux_out1 <= mux_in2; mux_out2 <= "0010";
when "10" => mux_out1 <= mux_in3; mux_out2 <= (others=>'X');
when "11" => mux_out1 <= mux_in4; mux_out2 <= (others=>'X');
when others =>

Hope that helps
Ed


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 31 posts ]  Go to page Previous  1, 2, 3

All times are UTC


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: