<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" transitional.dtd"> <html> "http://www.w3.org/TR/xhtml1/DTD/xhtml1- <head> <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" /> <title></title> <style type="text/css"> border:medium;} table.diff {font-family:Courier, 'MS Gothic'; </style> </head> <body> .diff_header {background-color:#e0e0e0} td.diff_header {text-align:right} .diff_next {background-color:#c0c0c0} .diff_add {background-color:#aaffaa} .diff_chg {background-color:#ffff77} .diff_sub {background-color:#ffaaaa} <pre>ex1a_tb.v:1: error: `timescale directive can not be inside a module definition. ex1a_tb.v:2: syntax error C:\Users\–ìXŽR— É\Desktop\VerilogSimulation_new\EA\a\ex1\170441082ex1.v:5: error: Invalid module instantiation a.out: Unable to open input file. </pre><br> <table class="diff" id="difflib_chg_to0__top" cellspacing="0" cellpadding="0" rules="groups" > <colgroup></colgroup> <colgroup></colgroup> <colgroup> </colgroup> <colgroup></colgroup> <colgroup></colgroup> <colgroup> </colgroup> <thead><tr><th class="diff_next"><br /></th><th colspan="2" class="diff_header"><a href="C:\Users\–ìXŽR— É\Desktop\VerilogSimulation_new\EA\a\ex1\170441082ex1.v" target="_blank">student</a></th><th class="diff_next"><br /></th><th colspan="2" class="diff_header">correct</th></tr></thead> <tbody> <tr><td class="diff_next" id="difflib_chg_to0__0"><a href="#difflib_chg_to0__top">t</a></td><td class="diff_header"></td> <td nowrap="nowrap"></td><td class="diff_next"><a href="#difflib_chg_to0__top">t</a></td><td class="diff_header" id="to0_1">1</td><td nowrap="nowrap"><span class="diff_add">/* ex1 ‰ð“š—á */</span></td></tr> <tr><td class="diff_next"></td><td class="diff_header" id="from0_1">1</td><td nowrap="nowrap">module AND_OR_EX1(<span class="diff_sub"> </span>A, B, C, Y<span class="diff_sub"> </span>);</td><td class="diff_next"></td><td class="diff_header" id="to0_2">2</td><td nowrap="nowrap">module AND_OR_EX1(A, B, C, Y); </td></tr> <tr><td class="diff_next"></td><td class="diff_header" id="from0_2">2</td><td nowrap="nowrap"><span class="diff_sub">input A, B, C;</span></td><td class="diff_next"></td><td class="diff_header" id="to0_3">3</td><td nowrap="nowrap"><span class="diff_add"> input A, B, C;</span></td></tr> <tr><td class="diff_next"></td><td class="diff_header" id="from0_3">3</td><td nowrap="nowrap"><span class="diff_sub">output Y;</span></td><td class="diff_next"></td> <td class="diff_header" id="to0_4">4</td><td nowrap="nowrap"><span class="diff_add"> outpu t Y;</span></td></tr> <tr><td class="diff_next"></td><td class="diff_header" id="from0_4">4</td><td nowrap="nowrap">assign<span class="diff_chg"> </span>Y = (<span class="diff_sub"> </span>A & B<span class="diff_sub"> </span>) | C;</td><td class="diff_next"></td><td class="diff_header" id="to0_5">5</td><td nowrap="nowrap"><span class="diff_add"> </span>assign<span class="diff_chg"> </span>Y = (A & B) | C;</td></tr> <tr><td class="diff_next"></td><td class="diff_header" id="from0_5">5</td><td nowrap="nowrap">enmodule</td><td class="diff_next"></td><td class="diff_header" id="to0_6">6</td><td nowrap="nowrap">en<span class="diff_add">d</span>module</td></tr> </tbody> </table> <table class="diff" summary="Legends"> <tr> <th colspan="2"> Legends </th> </tr> <tr> <td> <table border="" summary="Colors"> </tr> class="diff_add"> Added </td></tr> class="diff_chg">Changed</td> </tr> class="diff_sub">Deleted</td> </tr> </th> </tr> change</td> </tr> </tr> </table> </body> </html> </table></td> <td> <table border="" summary="Links"> <tr><th colspan="2"> Links <tr><td>(f)irst <tr><td>(n)ext change</td> <tr><td>(t)op</td> </tr> </table></td> </tr> <tr><th> Colors </th> <tr><td <tr><td <tr><td