Google 網路論壇不再支援新的 Usenet 貼文或訂閱項目,但過往內容仍可供查看。

Newbie with bus width mismatch problem. Quartus II

瀏覽次數:353 次
跳到第一則未讀訊息

PeterK

未讀,
2007年4月10日 清晨6:39:482007/4/10
收件者:
Dear Altera experts,

My very first project is a PWM in Quartus II 7.0. I've drawn up a block
diagram with a 17 bit lpm_counter going into a 5 bit lpm_compare. All I want
is the top five bits of the counter to go into the comparator. After several
days of trying I still have no idea how to split the 17 bits to just use the
top five bits. With a normal bus connection it compiles with a Width
mismatch error.

Peter


Subroto Datta

未讀,
2007年4月10日 上午10:30:302007/4/10
收件者:
Hi Peter,

Draw a bus wire extending from the out of the counter and give it a name
like counteroutput[17..0]. Draw another separate wire going into the
lpm_compare and give it the name counteroutput[17..13]. They will be
connected correctly by the extractor.

Hope this helps,
Subroto Datta
Altera Corp.


"PeterK" <mel...@hotmail.com> wrote in message
news:evfphk$ie$1$8302...@news.demon.co.uk...

Mark McDougall

未讀,
2007年4月10日 晚上8:33:302007/4/10
收件者:
PeterK wrote:

Prediction: One day you'll be *sooooo* sick of trying to maintain
schematics that you'll bite the bullet and start to learn VHDL/Verilog...

Regards,

--
Mark McDougall, Engineer
Virtual Logic Pty Ltd, <http://www.vl.com.au>
21-25 King St, Rockdale, 2216
Ph: +612-9599-3255 Fax: +612-9599-3266

PeterK

未讀,
2007年4月11日 凌晨4:33:492007/4/11
收件者:
"Mark McDougall" <ma...@vl.com.au> wrote in message
news:461c2d6d$0$13131$5a62...@per-qv1-newsreader-01.iinet.net.au...

I think that you might be right. I haven't yet learned how to integrate the
stuff I've learned in "Circuit Design with VHDL"
with the Altera block schematics.
Up until this month I mostly did C++ programming
using emacs in a shell window. Then I got handed a NIOS II devkit and
a September delivery deadline. At least "Fisher Price - My First PWM" now
works many thanks to Subroto.

Peter


0 則新訊息