From: Joshua Wise Date: Sat, 10 Jan 2009 05:54:59 +0000 (-0500) Subject: Terminal: Add `ifdef verilator around the $c construct. X-Git-Url: http://git.joshuawise.com/firearm.git/commitdiff_plain/c7963e212ee79bb247c38b67faa47aa184d89d0b?ds=sidebyside Terminal: Add `ifdef verilator around the $c construct. --- diff --git a/Terminal.v b/Terminal.v index 9dc5a21..89b19d5 100644 --- a/Terminal.v +++ b/Terminal.v @@ -26,8 +26,9 @@ module Terminal( cp_ack = 1; end end - +`ifdef verilator always @(posedge clk) if (towrite) $c("{extern void term_output(unsigned char d); term_output(",data,");}"); +`endif endmodule