在线咨询 切换到宽版
eetop公众号 创芯大讲堂 创芯人才网

 找回密码
 注册

手机号码,快捷登录

手机号码,快捷登录

搜帖子
查看: 7703|回复: 10

[求助] verilog的$display能控制打印字符的颜色吗

[复制链接]
发表于 2022-9-9 19:56:15 | 显示全部楼层
Using following program bold characters can be displayed. Note that this program takes help of UNIX facilities. This may not work on PC based simulators.



   

        

                
  1. module bold;

  2. initial begin

  3. $display ("Normal Text");
  4. $display ("\033[1mBold Text");
  5. $display ("\033[mSwitch back to Normal Text.....");
  6. $display ("\033[7mInverse Text.");
  7. $display ("\033[mSwitch back to Normal Text.....");

  8. $display ("\033[1mBold Text \033[mfollowed by \033[7mInverse text \033[m");
  9. end

  10. endmodule
            

   

    复制代码
回复 支持 3 反对 0

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条


手机版| 小黑屋| 关于我们| 联系我们| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2025-9-14 03:13 , Processed in 0.011895 second(s), 4 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表