-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
959 lines (616 loc) · 49.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="theme-color" content="#222"><meta name="generator" content="Hexo 6.3.0">
<link rel="apple-touch-icon" sizes="180x180" href="/images/icons/bug-solid.svg">
<link rel="icon" type="image/png" sizes="32x32" href="/images/icons/bug-solid.svg">
<link rel="icon" type="image/png" sizes="16x16" href="/images/icons/bug-solid.svg">
<link rel="mask-icon" href="/images/icons/bug-solid.svg" color="#222">
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css" integrity="sha256-AbA177XfpSnFEvgpYu1jMygiLabzPCJCRIBtR5jGc0k=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.1.1/animate.min.css" integrity="sha256-PR7ttpcvz8qrF57fur/yAx1qXMFJeJFiA6pSzWi0OIE=" crossorigin="anonymous">
<script class="next-config" data-name="main" type="application/json">{"hostname":"example.com","root":"/","images":"/images","scheme":"Gemini","darkmode":false,"version":"8.13.1","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12},"copycode":{"enable":true,"style":null},"bookmark":{"enable":false,"color":"#222","save":"auto"},"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"stickytabs":false,"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"prism":false,"i18n":{"placeholder":"搜索...","empty":"没有找到任何搜索结果:${query}","hits_time":"找到 ${hits} 个搜索结果(用时 ${time} 毫秒)","hits":"找到 ${hits} 个搜索结果"}}</script><script src="/js/config.js"></script>
<meta name="description" content="最是人间留不住,朱颜辞镜花辞树。">
<meta property="og:type" content="website">
<meta property="og:title" content="Mozes-Y">
<meta property="og:url" content="http://example.com/index.html">
<meta property="og:site_name" content="Mozes-Y">
<meta property="og:description" content="最是人间留不住,朱颜辞镜花辞树。">
<meta property="og:locale" content="zh_CN">
<meta property="article:author" content="Mozes">
<meta name="twitter:card" content="summary">
<link rel="canonical" href="http://example.com/">
<script class="next-config" data-name="page" type="application/json">{"sidebar":"","isHome":true,"isPost":false,"lang":"zh-CN","comments":"","permalink":"","path":"index.html","title":""}</script>
<script class="next-config" data-name="calendar" type="application/json">""</script>
<title>Mozes-Y</title>
<noscript>
<link rel="stylesheet" href="/css/noscript.css">
</noscript>
</head>
<body itemscope itemtype="http://schema.org/WebPage" class="use-motion">
<div class="headband"></div>
<main class="main">
<header class="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="header-inner"><div class="site-brand-container">
<div class="site-nav-toggle">
<div class="toggle" aria-label="切换导航栏" role="button">
<span class="toggle-line"></span>
<span class="toggle-line"></span>
<span class="toggle-line"></span>
</div>
</div>
<div class="site-meta">
<a href="/" class="brand" rel="start">
<i class="logo-line"></i>
<h1 class="site-title">Mozes-Y</h1>
<i class="logo-line"></i>
</a>
</div>
<div class="site-nav-right">
<div class="toggle popup-trigger">
</div>
</div>
</div>
<nav class="site-nav">
<ul class="main-menu menu"><li class="menu-item menu-item-home"><a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a></li><li class="menu-item menu-item-tags"><a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a></li><li class="menu-item menu-item-categories"><a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a></li><li class="menu-item menu-item-archives"><a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a></li>
</ul>
</nav>
</div>
<div class="toggle sidebar-toggle" role="button">
<span class="toggle-line"></span>
<span class="toggle-line"></span>
<span class="toggle-line"></span>
</div>
<aside class="sidebar">
<div class="sidebar-inner sidebar-overview-active">
<ul class="sidebar-nav">
<li class="sidebar-nav-toc">
文章目录
</li>
<li class="sidebar-nav-overview">
站点概览
</li>
</ul>
<div class="sidebar-panel-container">
<!--noindex-->
<div class="post-toc-wrap sidebar-panel">
</div>
<!--/noindex-->
<div class="site-overview-wrap sidebar-panel">
<div class="site-author site-overview-item animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
<img class="site-author-image" itemprop="image" alt="Mozes"
src="/images/icons/avatar.png">
<p class="site-author-name" itemprop="name">Mozes</p>
<div class="site-description" itemprop="description">最是人间留不住,朱颜辞镜花辞树。</div>
</div>
<div class="site-state-wrap site-overview-item animated">
<nav class="site-state">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">8</span>
<span class="site-state-item-name">日志</span>
</a>
</div>
<div class="site-state-item site-state-categories">
<a href="/categories/">
<span class="site-state-item-count">4</span>
<span class="site-state-item-name">分类</span></a>
</div>
<div class="site-state-item site-state-tags">
<a href="/tags/">
<span class="site-state-item-count">5</span>
<span class="site-state-item-name">标签</span></a>
</div>
</nav>
</div>
<div class="links-of-author site-overview-item animated">
<span class="links-of-author-item">
<a href="https://github.com/mozes-y" title="GitHub → https://github.com/mozes-y" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
</span>
</div>
</div>
</div>
</div>
</aside>
<div class="sidebar-dimmer"></div>
</header>
<div class="back-to-top" role="button" aria-label="返回顶部">
<i class="fa fa-arrow-up"></i>
<span>0%</span>
</div>
<noscript>
<div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>
<div class="main-inner index posts-expand">
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://example.com/2022/10/11/HDLBits-2-2-Verilog-Language-Basics/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/icons/avatar.png">
<meta itemprop="name" content="Mozes">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Mozes-Y">
<meta itemprop="description" content="最是人间留不住,朱颜辞镜花辞树。">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | Mozes-Y">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2022/10/11/HDLBits-2-2-Verilog-Language-Basics/" class="post-title-link" itemprop="url">HDLBits 2.2 --Verilog Language ---Basics</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2022-10-11 23:08:37" itemprop="dateCreated datePublished" datetime="2022-10-11T23:08:37+08:00">2022-10-11</time>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://example.com/2022/07/29/HDLBits-2-1-Verilog-Language-Basics/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/icons/avatar.png">
<meta itemprop="name" content="Mozes">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Mozes-Y">
<meta itemprop="description" content="最是人间留不住,朱颜辞镜花辞树。">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | Mozes-Y">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2022/07/29/HDLBits-2-1-Verilog-Language-Basics/" class="post-title-link" itemprop="url">HDLBits 2.1 --Verilog Language ---Basics</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2022-07-29 10:16:40 / 修改时间:10:49:20" itemprop="dateCreated datePublished" datetime="2022-07-29T10:16:40+08:00">2022-07-29</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/HDLBits/" itemprop="url" rel="index"><span itemprop="name">HDLBits</span></a>
</span>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>从这一章开始就进入了正式的Verilog语法的学习,从这一章开始,每篇文章将会更新一个模块的内容,希望能够坚持更新完吧。</p>
<h1 id="Simple-wire"><a href="#Simple-wire" class="headerlink" title="Simple wire"></a>Simple wire</h1><p>第一个题目就是简单的一个连接的一个电路,将输入连接到输出,也就是说输出被输入驱动(我比较喜欢这个表达,可能有人喜欢称之为赋值,这都不重要 ¯_(ツ)_/¯),一条assign语句就可以完成这道题。</p>
<figure class="highlight verilog"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">module</span> top_module(</span><br><span class="line"> <span class="keyword">input</span> in,</span><br><span class="line"> <span class="keyword">output</span> out</span><br><span class="line">);</span><br><span class="line"></span><br><span class="line"> <span class="keyword">assign</span> out = in;</span><br><span class="line"> </span><br><span class="line"><span class="keyword">endmodule</span></span><br><span class="line"></span><br></pre></td></tr></table></figure>
<p>好了,这道题目就算是完成啦§(<em> ̄▽ ̄</em>)§</p>
<h1 id="Four-wires"><a href="#Four-wires" class="headerlink" title="Four wires"></a>Four wires</h1><p>这道题算是前一道题的小小升级版本吧,题目要求使用三个输入来驱动四个输出,写起来还是很简单的,下面是我的答案。</p>
<figure class="highlight verilog"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">module</span> top_module (</span><br><span class="line"> <span class="keyword">input</span> a,</span><br><span class="line"> <span class="keyword">input</span> b,</span><br><span class="line"> <span class="keyword">input</span> c,</span><br><span class="line"> <span class="keyword">output</span> w,</span><br><span class="line"> <span class="keyword">output</span> x,</span><br><span class="line"> <span class="keyword">output</span> y,</span><br><span class="line"> <span class="keyword">output</span> z</span><br><span class="line">);</span><br><span class="line"> </span><br><span class="line"> <span class="keyword">assign</span> w = a;</span><br><span class="line"> <span class="keyword">assign</span> x = b;</span><br><span class="line"> <span class="keyword">assign</span> y = b;</span><br><span class="line"> <span class="keyword">assign</span> z = c;</span><br><span class="line"> </span><br><span class="line"><span class="keyword">endmodule</span></span><br><span class="line"></span><br></pre></td></tr></table></figure>
<p>需要注意的一点是,这里四个语句的顺序前后并没有什么关系,这是非常重要的一点,因为Verilog是一个<strong>硬件描述</strong>语言,一定要铭记于心,非常重要,<strong>你只是在描述电路间的电气连接的关系,并不是在写一门编程语言</strong>,这是非常重要的,刚接触HDL的同学可能会习惯性的带着编程语言的思想来看待硬件描述语言,这是错误的。</p>
<p>当然上面的这道题还可以用连接符<code>{}</code>来做,当然这里题目的意思是让我们练习assign语句,连接符会在后面的章节中介绍和练习,感兴趣的同学可以自行查阅相关语法并尝试。</p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://example.com/2022/07/14/The-missing-semester-1/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/icons/avatar.png">
<meta itemprop="name" content="Mozes">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Mozes-Y">
<meta itemprop="description" content="最是人间留不住,朱颜辞镜花辞树。">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | Mozes-Y">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2022/07/14/The-missing-semester-1/" class="post-title-link" itemprop="url">The missing semester 1</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2022-07-14 13:06:06 / 修改时间:13:06:36" itemprop="dateCreated datePublished" datetime="2022-07-14T13:06:06+08:00">2022-07-14</time>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">curl --<span class="built_in">head</span> --silent https://missing.csail.mit.edu | grep -i last-modified | <span class="built_in">tee</span> /home/mozes/Desktop/last-modified.txt</span><br></pre></td></tr></table></figure>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://example.com/2022/07/11/HDLBits-1-Getting-Started/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/icons/avatar.png">
<meta itemprop="name" content="Mozes">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Mozes-Y">
<meta itemprop="description" content="最是人间留不住,朱颜辞镜花辞树。">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | Mozes-Y">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2022/07/11/HDLBits-1-Getting-Started/" class="post-title-link" itemprop="url">HDLBits 1 --Getting Started</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2022-07-11 22:24:23" itemprop="dateCreated datePublished" datetime="2022-07-11T22:24:23+08:00">2022-07-11</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2022-07-29 10:10:54" itemprop="dateModified" datetime="2022-07-29T10:10:54+08:00">2022-07-29</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/HDLBits/" itemprop="url" rel="index"><span itemprop="name">HDLBits</span></a>
</span>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>暑假闲来无事,作为一个微电子人,当然是要学习数字电子设计相关的东西啦,所以先来学习一波Verilog,作为学习Verilog最好的网站之一(个人觉得其实是最好的( •̀ ω •́ )✧),刷<a target="_blank" rel="noopener" href="https://hdlbits.01xz.net/wiki/Main_Page">HDLBits</a>当然是不二之选啦。</p>
<p>HDLBits基本分为几个大的模块,这篇是第一个大模块,也是开篇,其它的模块也会陆续更新的,希望能够完成吧,这里先开个新坑= ̄ω ̄=。</p>
<h2 id="Getting-Started"><a href="#Getting-Started" class="headerlink" title="Getting Started"></a>Getting Started</h2><h3 id="Getting-started"><a href="#Getting-started" class="headerlink" title="Getting started"></a>Getting started</h3><p>这里这个小标题和大标题是一样的,作为强迫症患者有点不能忍受哈哈哈</p>
<p>这一小小篇章呢,基本上就是介绍了一下网站的大体内容和使用方法,并且有一道体验性质的Verilog题目来做一做。</p>
<p>题目呢是让输出一个恒为高的电平,也是非常的简单,并且大体框架都给了,所以呢直接填就行。</p>
<figure class="highlight verilog"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">module</span> top_module( <span class="keyword">output</span> one );</span><br><span class="line"></span><br><span class="line"><span class="comment">// Insert your code here</span></span><br><span class="line"> <span class="keyword">assign</span> one = [fixme];</span><br><span class="line"></span><br><span class="line"><span class="keyword">endmodule</span></span><br></pre></td></tr></table></figure>
<p>就是上面这道题了,我的答案如下</p>
<figure class="highlight verilog"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">assign</span> one = <span class="number">1'b1</span>;</span><br></pre></td></tr></table></figure>
<p>然后这一小节就完成了,进入下一个小节。</p>
<hr>
<h3 id="Output-Zero"><a href="#Output-Zero" class="headerlink" title="Output Zero"></a>Output Zero</h3><p>这一小节呢,基本上还是体验性质的,说明了一下写代码时注意的事项以及支持的标准等等。</p>
<p>题目呢和标题一致,就是和前一节一样,输出一个低电平而已,所以呢也算是非常简单了</p>
<figure class="highlight verilog"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">module</span> top_module(</span><br><span class="line"> <span class="keyword">output</span> zero</span><br><span class="line">);<span class="comment">// Module body starts after semicolon</span></span><br><span class="line"></span><br><span class="line"><span class="keyword">endmodule</span></span><br></pre></td></tr></table></figure>
<p>把答案填写在中间即可,预期是一行完成</p>
<figure class="highlight verilog"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">assign</span> zero = <span class="number">1'b0</span>;</span><br></pre></td></tr></table></figure>
<p>也是比较简单,那么这一个部分的内容就算结束了。</p>
<hr>
<p>这一整个章节呢算是一个对整体的介绍吧,简单让我们体验一下做题的流程,以及告知一些注意事项吧。那么就进入下一个大的部分,正式开始Verilog语言的练习。</p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://example.com/2022/07/04/powershell%E7%BE%8E%E5%8C%96/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/icons/avatar.png">
<meta itemprop="name" content="Mozes">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Mozes-Y">
<meta itemprop="description" content="最是人间留不住,朱颜辞镜花辞树。">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | Mozes-Y">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2022/07/04/powershell%E7%BE%8E%E5%8C%96/" class="post-title-link" itemprop="url">powershell美化</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2022-07-04 17:31:30 / 修改时间:21:38:15" itemprop="dateCreated datePublished" datetime="2022-07-04T17:31:30+08:00">2022-07-04</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/Tutorial/" itemprop="url" rel="index"><span itemprop="name">Tutorial</span></a>
</span>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<!--文章的方法随着时间可能会失效,如果可以,最好能够按照官方给出的最新方式来安装-->
<h2 id="下载Windows-terminal"><a href="#下载Windows-terminal" class="headerlink" title="下载Windows terminal"></a>下载<a target="_blank" rel="noopener" href="https://github.com/microsoft/terminal">Windows terminal</a></h2><ol>
<li>Github上下载自己电脑对应版本,点击上方链接</li>
<li>或者Microsoft store下载Windows terminal</li>
</ol>
<p>安装完成之后打开terminal</p>
<h2 id="下载powershell-core"><a href="#下载powershell-core" class="headerlink" title="下载powershell core"></a>下载<a target="_blank" rel="noopener" href="https://github.com/PowerShell/PowerShell" title="跨平台的powershell">powershell core</a></h2><p><strong>注意</strong>:这是一个跨平台的powershell,与Windows自带的powershell是不同的</p>
<p>下载安装的方法以及各种注意事项见<a target="_blank" rel="noopener" href="https://docs.microsoft.com/zh-cn/powershell/" title="powershell文档">Microsoft文档</a></p>
<p>下载安装完成之后,打开Windows terminal,按下<code>CTRL+,</code>打开设置界面,将<code>"启动"-"默认配置文件"</code>更改为<strong>powershell</strong>,然后重新启动Windows terminal。</p>
<h2 id="下载posh-git模块"><a href="#下载posh-git模块" class="headerlink" title="下载posh-git模块"></a>下载<a target="_blank" rel="noopener" href="https://github.com/dahlbyk/posh-git">posh-git</a>模块</h2><p>这是一个支持git状态显示的模块</p>
<p>这是GitHub项目主页中对它的描述</p>
<p><a target="_blank" rel="noopener" href="https://github.com/dahlbyk/posh-git#overview">posh-git is a PowerShell module that integrates Git and PowerShell by providing Git status summary information that can be displayed in the PowerShell prompt.</a></p>
<p>如果没有安装过posh-git,则可以在powershell中执行下列命令</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># (A) You've never installed posh-git from the PowerShell Gallery</span></span><br><span class="line">PowerShellGet\<span class="built_in">Install-Module</span> posh<span class="literal">-git</span> <span class="literal">-Scope</span> CurrentUser <span class="literal">-Force</span></span><br></pre></td></tr></table></figure>
<p>如果已经安装过,那么执行下列命令更新</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># (B) You've already installed a previous version of posh-git from the PowerShell Gallery</span></span><br><span class="line">PowerShellGet\<span class="built_in">Update-Module</span> posh<span class="literal">-git</span></span><br></pre></td></tr></table></figure>
<p>也可以使用GitHub主页中给出的其它方式来进行下载</p>
<p>然后可以执行</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Import-Module</span> posh<span class="literal">-git</span></span><br></pre></td></tr></table></figure>
<p>注意,这种方法在每次关闭后都会失效,重启之后若想使用,还需要再次执行,因此推荐将其添加到配置文件中</p>
<p>执行下面的命令来配置</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">notepad.exe <span class="variable">$PROFILE</span></span><br></pre></td></tr></table></figure>
<p>一般来说,如果没有安装过powershell,notepad会提示文件不存在,并且询问是否建立新文件,点击<code>是</code>即可,如果命令行直接提示失败,那么可以执行下面的命令,然后再次使用上面的命令打开配置文件</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">New-Item</span> <span class="literal">-Path</span> <span class="variable">$PROFILE</span> <span class="literal">-Type</span> File <span class="literal">-Force</span></span><br></pre></td></tr></table></figure>
<p>再打开配置文件之后,将对应的模块进行配置即可,也就是</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Import-Module</span> posh<span class="literal">-git</span></span><br></pre></td></tr></table></figure>
<p><strong>注意</strong>:之后的模块配置也是这样,就不再特别提示是否在配置文件中添加,如果不想每次启动都手动配置以便,那么建议添加到配置文件中去</p>
<p>添加成功后重启或者执行下面的命令来使得配置生效</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">. <span class="variable">$PROFILE</span></span><br></pre></td></tr></table></figure>
<p>然后进入一个git仓库或者自行初始化一个仓库查看这个配置是否生效,是否已经有git相应的提示信息</p>
<h2 id="下载oh-my-posh"><a href="#下载oh-my-posh" class="headerlink" title="下载oh-my-posh"></a>下载<a target="_blank" rel="noopener" href="https://ohmyposh.dev/docs/installation/windows">oh-my-posh</a></h2><p>可以使用Windows下的包管理器winget等下载,也可以使用powershell自带的安装工具下载,可自行在上面的链接中查看,这里我推荐使用powershell的方式来进行手动下载安装,执行下面的命令</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Set-ExecutionPolicy</span> Bypass <span class="literal">-Scope</span> <span class="keyword">Process</span> <span class="literal">-Force</span>; <span class="built_in">Invoke-Expression</span> ((<span class="built_in">New-Object</span> System.Net.WebClient).DownloadString(<span class="string">'https://ohmyposh.dev/install.ps1'</span>))</span><br></pre></td></tr></table></figure>
<p>如果已经安装,请升级</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Set-ExecutionPolicy</span> Bypass <span class="literal">-Scope</span> <span class="keyword">Process</span> <span class="literal">-Force</span>; <span class="built_in">Invoke-Expression</span> ((<span class="built_in">New-Object</span> System.Net.WebClient).DownloadString(<span class="string">'https://ohmyposh.dev/install.ps1'</span>))</span><br></pre></td></tr></table></figure>
<p>安装完成之后建议重启terminal来使得一些设置生效</p>
<p>重启之后安装官方的建议字体<a target="_blank" rel="noopener" href="https://www.nerdfonts.com/">Nerd Font</a>中你喜欢的字体进行安装</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">oh</span><span class="literal">-my-posh</span> font install</span><br></pre></td></tr></table></figure>
<p>执行上面的命令来进行字体的选择和安装,如果安装失败,也可以进入上面的官网链接中进行下载和手动安装,安装完成之后建议重启,然后进入terminal的设置界面中选择<code>"配置文件"-"powershell"-"其他设置"-"外观"</code>(或者也可以在选择配置文件的时候选择默认值,这样就可以将配置应用到terminal可以打开的所有终端中)中选择刚刚安装的字体,同时你也可以进行一些其他的设置,将terminal变为自己喜欢的样子。</p>
<h2 id="配置oh-my-posh"><a href="#配置oh-my-posh" class="headerlink" title="配置oh-my-posh"></a>配置<a target="_blank" rel="noopener" href="https://ohmyposh.dev/docs">oh-my-posh</a></h2><p>打开配置文件</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">notepad.exe <span class="variable">$PROFILE</span></span><br></pre></td></tr></table></figure>
<p>然后将下面这一行添加到配置文件中,注意,这只是默认配置,后面可以更改为自己喜欢的主题</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">oh</span><span class="literal">-my-posh</span> init pwsh | <span class="built_in">Invoke-Expression</span></span><br></pre></td></tr></table></figure>
<p>添加成功后重启或者执行下面的命令来使得配置生效</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">. <span class="variable">$PROFILE</span></span><br></pre></td></tr></table></figure>
<p>现在应该已经可以启动默认主题,并且正常显示,如果显示不正常,一部分字体无法正常显示的话,应该是字体安装或者选择出现了问题,可以查看字体安装和配置是否成功</p>
<p>当设置成功之后,可以进行主题的替换使用下面的命令查看当前可选的主题</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Get-PoshThemes</span></span><br></pre></td></tr></table></figure>
<p>执行之后就可以看到当前可选的主题样式,并且每一个主题都将名字以及样式展现了一边,可以选择自己喜欢的主题样式,详细的展示还是可以到上面的官网链接进行查看,选好之后可以打开配置文件,然后将刚刚设置的默认配置修改为下面的形式</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">oh</span><span class="literal">-my-posh</span> init pwsh <span class="literal">--config</span> ~/.jandedobbeleer.omp.json | <span class="built_in">Invoke-Expression</span></span><br></pre></td></tr></table></figure>
<p>这里的<code>--config</code>之后的<code>~/.jandedobbeleer.omp.json</code>代表默认的主题配置路径以及配置文件,一定要修改为自己的配置文件的路径,如果不知道路径以及格式的话,在执行完上一条命令之后,最后会给出配置文件的本地地址和配置的example,直接复制,然后将主题配置文件修改为你喜欢的主题对应的文件即可,当然,这个配置的选项不仅可以是本地文件,也可以是远程的文件,例如</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="literal">--config</span> <span class="string">'https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/jandedobbeleer.omp.json'</span></span><br></pre></td></tr></table></figure>
<p>当然,如果有能力的话这些配置都是可以自定义的,建立自己的主题配置文件并修改相应的配置即可</p>
<p>还有更多的细节配置,参考官网给出的文档</p>
<h2 id="下载Terminal-icons"><a href="#下载Terminal-icons" class="headerlink" title="下载Terminal-icons"></a>下载<a target="_blank" rel="noopener" href="https://github.com/devblackops/Terminal-Icons">Terminal-icons</a></h2><p>这是一个能在命令行中显示文件的时候给各种文件使用不同图标和颜色的模块,如果喜欢的话可以使用</p>
<p>执行下面的命令进行安装</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Install-Module</span> <span class="literal">-Name</span> Terminal<span class="literal">-Icons</span> <span class="literal">-Repository</span> PSGallery</span><br></pre></td></tr></table></figure>
<p>然后打开配置文件,添加下面的这一行进行配置</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Import-Module</span> <span class="literal">-Name</span> Terminal<span class="literal">-Icons</span></span><br></pre></td></tr></table></figure>
<hr>
<p>至此,基本的配置就已经完成,像更加深入和细节的配置,可以按照官方的文档自行配置</p>
<p><strong>注意</strong>:如果有读者想要使用PSReadLine工具,在powershell 5.1中就已经附带了PSReadLine 2.0.0,之后的版本也附带了更高版本的PSReadLine,如果读者想要使用,无需再次安装,直接在配置文件中启用即可,使用方法请读者自行前往<a target="_blank" rel="noopener" href="https://github.com/PowerShell/PSReadLine">官方项目</a>进行查看。</p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://example.com/2022/07/03/%E6%95%B0%E5%AD%97%E8%AE%BE%E8%AE%A1%E5%92%8C%E8%AE%A1%E7%AE%97%E6%9C%BA%E4%BD%93%E7%B3%BB%E7%BB%93%E6%9E%84%EF%BC%881%EF%BC%89/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/icons/avatar.png">
<meta itemprop="name" content="Mozes">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Mozes-Y">
<meta itemprop="description" content="最是人间留不住,朱颜辞镜花辞树。">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | Mozes-Y">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2022/07/03/%E6%95%B0%E5%AD%97%E8%AE%BE%E8%AE%A1%E5%92%8C%E8%AE%A1%E7%AE%97%E6%9C%BA%E4%BD%93%E7%B3%BB%E7%BB%93%E6%9E%84%EF%BC%881%EF%BC%89/" class="post-title-link" itemprop="url">数字设计和计算机体系结构(1)</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2022-07-03 23:33:22 / 修改时间:23:50:10" itemprop="dateCreated datePublished" datetime="2022-07-03T23:33:22+08:00">2022-07-03</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/Book-Notes/" itemprop="url" rel="index"><span itemprop="name">Book_Notes</span></a>
</span>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h1 id="二进制"><a href="#二进制" class="headerlink" title="二进制"></a>二进制</h1><h2 id="数字抽象"><a href="#数字抽象" class="headerlink" title="数字抽象"></a>数字抽象</h2>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://example.com/2022/06/30/%E6%88%91%E7%9A%84%E7%AC%AC%E4%B8%80%E7%AF%87%E6%96%87%E7%AB%A0/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/icons/avatar.png">
<meta itemprop="name" content="Mozes">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Mozes-Y">
<meta itemprop="description" content="最是人间留不住,朱颜辞镜花辞树。">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | Mozes-Y">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2022/06/30/%E6%88%91%E7%9A%84%E7%AC%AC%E4%B8%80%E7%AF%87%E6%96%87%E7%AB%A0/" class="post-title-link" itemprop="url">我的第一篇文章</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2022-06-30 23:53:40" itemprop="dateCreated datePublished" datetime="2022-06-30T23:53:40+08:00">2022-06-30</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2022-07-01 14:19:01" itemprop="dateModified" datetime="2022-07-01T14:19:01+08:00">2022-07-01</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/%E7%94%9F%E6%B4%BB/" itemprop="url" rel="index"><span itemprop="name">生活</span></a>
</span>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h2 id="第一章"><a href="#第一章" class="headerlink" title="第一章"></a>第一章</h2><hr>
<h2 id="第二章"><a href="#第二章" class="headerlink" title="第二章"></a>第二章</h2><p>内容</p>
<hr>
<h2 id="结束"><a href="#结束" class="headerlink" title="结束"></a>结束</h2><p>yes</p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://example.com/2022/06/30/hello-world/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/icons/avatar.png">
<meta itemprop="name" content="Mozes">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Mozes-Y">
<meta itemprop="description" content="最是人间留不住,朱颜辞镜花辞树。">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | Mozes-Y">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2022/06/30/hello-world/" class="post-title-link" itemprop="url">Hello World</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2022-06-30 23:50:23" itemprop="dateCreated datePublished" datetime="2022-06-30T23:50:23+08:00">2022-06-30</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2022-10-07 23:50:30" itemprop="dateModified" datetime="2022-10-07T23:50:30+08:00">2022-10-07</time>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>Welcome to <a target="_blank" rel="noopener" href="https://hexo.io/">Hexo</a>! This is your very first post. Check <a target="_blank" rel="noopener" href="https://hexo.io/docs/">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a target="_blank" rel="noopener" href="https://hexo.io/docs/troubleshooting.html">troubleshooting</a> or you can ask me on <a target="_blank" rel="noopener" href="https://github.com/hexojs/hexo/issues">GitHub</a>.</p>
<h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure>
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/writing.html">Writing</a></p>
<h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure>
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/server.html">Server</a></p>
<h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure>
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/generating.html">Generating</a></p>
<h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure>
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/one-command-deployment.html">Deployment</a></p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
</div>
</main>
<footer class="footer">
<div class="footer-inner">
<div class="copyright">
©
<span itemprop="copyrightYear">2023</span>
<span class="with-love">
<i class="fa-solid fa-bug"></i>
</span>
<span class="author" itemprop="copyrightHolder">Mozes</span>
</div>
</div>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js" integrity="sha256-XL2inqUJaslATFnHdJOi9GfQ60on8Wx1C2H8DYiN1xY=" crossorigin="anonymous"></script>
<script src="/js/comments.js"></script><script src="/js/utils.js"></script><script src="/js/motion.js"></script><script src="/js/next-boot.js"></script>
</body>
</html>