当前位置:网站首页>Chapter 6 data flow modeling - after class exercises

Chapter 6 data flow modeling - after class exercises

2022-07-05 05:24:00 Jiangnan small workshop

After-school exercises

 Insert picture description here  Insert picture description here

  • Verilog describe

    //  Subtracter module 
    module sub(
    	output D,
    	output B,
    	
    	input x,y,z
    );
    
    // Output D Logical expression 
    assign D = (~x && ~y && ~z) || (~x && y && ~z) || (x && ~y && ~z) || (x && y && z);
    
    
    // Output B Logical expression 
    assign B = (~x && y) || (~x && z) || (y && z);
    
    endmodule
    
  • Simulation
     Insert picture description here

  • The simulation result is much worse than the actual , Some netizens can help to see what's wrong with the code , I haven't found it for a day .

原网站

版权声明
本文为[Jiangnan small workshop]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207050518545519.html