]> Joshua Wise's Git repositories - firearm.git/commitdiff
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 9ddd5d30340bd52dc73cf85b124779573f2753fa..0239dbfe6b1446aa3769d481e07d9f8f5c901ecd 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])
                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
 `else
        always @(posedge clk)
        begin
-               sys_odata = {towrite,data};
+               sys_odata <= {towrite,data};
                if (didread || !indata[8])
                begin
                if (didread || !indata[8])
                begin
-                       indata = sys_idata;
-                       sys_tookdata = 1;
+                       indata <= sys_idata;
+                       sys_tookdata <= 1;
                end else
                end else
-                       sys_tookdata = 0;
+                       sys_tookdata <= 0;
        end
 `endif
 endmodule
        end
 `endif
 endmodule
This page took 0.026511 seconds and 4 git commands to generate.