打印

请教高手看看哪里出错误了 帮修改下谢了

[复制链接]
1914|6
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
a5612433|  楼主 | 2011-5-12 18:27 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 a5612433 于 2011-5-12 18:30 编辑

ise 编写的音乐曲演奏
module song(clk_6MHz,clk_4Hz,speaker,high,med,low);
input clk_6MHz,clk_4Hz;
output speaker;
output[3:0]high,med,low;
reg[3:0]high,med,low;
reg[13:0]divider,origin;
reg[9:0]counter;
reg speaker;
wire carry;
assign carry=(divider==16383);
[email=always@(posedge]always@(posedge[/email] clk_6MHz);
begin if(carry)divider<=origin;
            else divider<=divider+1;
   end
[email=always@(posedge]always@(posedge[/email] carry)
  begin speaker<=~speaker;end
[email=always@(posedge]always@(posedge[/email] clk_4Hz)
begin
  case({high,med,low})
  'b000000000011: origin<=7281;
  'b000000000101: origin<=8730;
  'b000000000110: origin<=9565;
  'b000000000111: origin<=10310;
  'b000000010000: origin<=10647;
  'b000000100000: origin<=11272;
  'b000000110000: origin<=11831;
  'b000001010000: origin<=12556;
  'b000001100000: origin<=12974;
  'b000100000000: origin<=13516;
  'b000000000000: origin<=16383;
  endcase
  end
  [email=always@(posedge]always@(posedge[/email] clk_4Hz)
   begin
  if(counter==64) counter<=0;
  else           counter<=counter+1;
  case(counter)
  {high,med,low}<='b000000010000;//wo
  {high,med,low}<='b000000010000;//you
  {high,med,low}<='b000000010000;//yi
  {high,med,low}<='b000000110000;//zhi
  
  {high,med,low}<='b000001010000;//xiao
  {high,med,low}<='b000001010000;//mao
  {high,med,low}<='b000001010000;//lv
  {high,med,low}<='b000001010000;//wo
  
  {high,med,low}<='b000001100000;//cong
  {high,med,low}<='b000001100000;//lai
  {high,med,low}<='b000001100000;//ye
  {high,med,low}<='b000100000000;//bu
  
  {high,med,low}<='b000001010000;//qi
  {high,med,low}<='b000001010000;
  {high,med,low}<='b000001010000;
  {high,med,low}<='b000001010000;
  
  {high,med,low}<='b000001000000;//you
  {high,med,low}<='b000001000000;//yi
  {high,med,low}<='b000001100000;//tian
  {high,med,low}<='b000001100000;//wo
  
  {high,med,low}<='b000000110000;//xin
  {high,med,low}<='b000000110000;//xue
  {high,med,low}<='b000000110000;//lai
  {high,med,low}<='b000000110000;//chao
  
  {high,med,low}<='b000000100000;//qi
  {high,med,low}<='b000000100000;//zhe
  {high,med,low}<='b000000100000;//qu
  {high,med,low}<='b000000100000;//gan
  
  {high,med,low}<='b000001010000;//ji
  {high,med,low}<='b000001010000;
  {high,med,low}<='b000001010000;
  {high,med,low}<='b000001010000;//wo
  
  {high,med,low}<='b000000010000//shou
  {high,med,low}<='b000000010000//li
  {high,med,low}<='b000000010000//na
  {high,med,low}<='b000000110000//zhe
  
  {high,med,low}<='b000001010000//xiao
  {high,med,low}<='b000001010000//pi
  {high,med,low}<='b000001010000//bian
  {high,med,low}<='b000001010000//wo
  
  {high,med,low}<='b000001100000//xin
  {high,med,low}<='b000001100000//li
  {high,med,low}<='b000001100000//zheng
  {high,med,low}<='b000100000000//de
  
  {high,med,low}<='b000001010000//yi
  {high,med,low}<='b000001010000
  {high,med,low}<='b000001010000
  {high,med,low}<='b000001010000
  
  {high,med,low}<='b000001000000//bu
  {high,med,low}<='b000001000000//zhi
  {high,med,low}<='b000001000000//zen
  {high,med,low}<='b000001100000//di
  
  {high,med,low}<='b000000110000//la
  {high,med,low}<='b000000110000//la
  {high,med,low}<='b000000110000//la
  {high,med,low}<='b000000110000//wo
  
  {high,med,low}<='b000000100000//shuai
  {high,med,low}<='b000000100000//le
  {high,med,low}<='b000000100000//yi
  {high,med,low}<='b000000100000//shen
  
  {high,med,low}<='b000000010000//ni
  {high,med,low}<='b000000010000
  {high,med,low}<='b000000010000
  {high,med,low}<='b000000010000
  
  endcase
end  
  endmodule

有错误跑不通
另求


运用专用集成电路设计方法(ASIC),完成基于SMIC .18工艺的能够
播放单音音乐的数模混合芯片设计。本芯片外部输入为VDDVSS,分别
连接电源正负极;输出为SPK,连接扬声器。
    具体内容为:a.乐曲演奏芯片数字部分设计;b.上电复位电路的设计;
c.时钟产生电路的设计;d.混合集成电路仿真验证;e.混合版图设计与验证。
这个是要求    上电复位电路 和 时钟产生电路 谁能帮设计下

相关帖子

沙发
sunlin0112_1| | 2011-5-12 19:44 | 只看该作者
你这也太猛了,整个让别人解决了

使用特权

评论回复
板凳
NE5532| | 2011-5-12 20:04 | 只看该作者
没硬件可以调软件,谁弄出来,我招过来。高薪!

使用特权

评论回复
地板
老鱼探戈| | 2011-5-13 16:55 | 只看该作者
没硬件可以调软件,谁弄出来,我招过来。高薪!
NE5532 发表于 2011-5-12 20:04


我公司也要!

使用特权

评论回复
5
Yang5101.| | 2011-5-13 18:33 | 只看该作者
.。。。。。。。。。。。。。。。。

使用特权

评论回复
6
zjy.zz| | 2011-6-18 14:37 | 只看该作者
有点难度好向,最好把图也发出来

使用特权

评论回复
7
jy1975jy1975| | 2011-8-2 18:37 | 只看该作者
呵呵,学习了

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

0

主题

2

帖子

1

粉丝