We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cb5603 commit 72e442fCopy full SHA for 72e442f
cpu_test.vhdl
@@ -327,14 +327,26 @@ begin
327
end process;
328
329
process
330
+ variable txbyte : unsigned(7 downto 0) := x"00";
331
+ variable txbits : integer range 0 to 7 := 0;
332
begin
333
for i in 1 to 200000000 loop
334
if clock50mhz='1' then
335
if eth_txen='1' then
336
report "ETHTX: bits " & to_string(std_logic_vector(eth_txd));
337
+ txbyte := txbyte(5 downto 0) & eth_txd;
338
+ if txbits = 6 then
339
+ txbits := 0;
340
+ report "ETHTX: byte $" & to_hstring(txbyte);
341
+ else
342
+ txbits := txbits + 2;
343
+ end if;
344
345
+ report "ETHTX: bits NO CARRIER";
346
end if;
347
348
wait for 10 ns;
349
+
350
end loop;
351
352
0 commit comments