Terminal: Fix to have non-blocking assigns in flop blocks.
authorJoshua Wise <joshua@nyus.joshuawise.com>
Wed, 18 Mar 2009 01:08:10 +0000 (21:08 -0400)
committerJoshua Wise <joshua@nyus.joshuawise.com>
Wed, 18 Mar 2009 01:08:10 +0000 (21:08 -0400)
Terminal.v

index 9ddd5d3..0239dbf 100644 (file)
@@ -47,17 +47,17 @@ module Terminal(
                if (towrite)
                        $c("{extern void term_output(unsigned char d); term_output(",data,");}");
                else if (didread || !indata[8])
-                       indata = $c("({extern unsigned int term_input(); term_input();})");
+                       indata <= $c("({extern unsigned int term_input(); term_input();})");
 `else
        always @(posedge clk)
        begin
-               sys_odata = {towrite,data};
+               sys_odata <= {towrite,data};
                if (didread || !indata[8])
                begin
-                       indata = sys_idata;
-                       sys_tookdata = 1;
+                       indata <= sys_idata;
+                       sys_tookdata <= 1;
                end else
-                       sys_tookdata = 0;
+                       sys_tookdata <= 0;
        end
 `endif
 endmodule
This page took 0.018887 seconds and 4 git commands to generate.