From 38e2913c0df0a9e246f7293b4a7312fd503b4374 Mon Sep 17 00:00:00 2001 From: Bernhard Urban Date: Wed, 14 Apr 2010 23:28:38 +0200 Subject: [PATCH] TODOs und kleine anpassungen bei TBs fuer die ALU --- spec/TODO | 4 +++- src/TODO | 3 +++ src/beh_alu_tb.vhd | 8 +++++++- src/post_alu_tb.vhd | 6 +++--- 4 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 src/TODO diff --git a/spec/TODO b/spec/TODO index fa811a7..596a500 100644 --- a/spec/TODO +++ b/spec/TODO @@ -1 +1,3 @@ -leer bis jetzt ;) +- sys_{clk,res} low/high-aktiv? +- signale einheitlicher benennen +- buttonmodul (mit debouncing) fuer reset und rs232 dump diff --git a/src/TODO b/src/TODO new file mode 100644 index 0000000..2d0b526 --- /dev/null +++ b/src/TODO @@ -0,0 +1,3 @@ +- einheitliche clock in den testbenches +- "features" die in der vorlesung erwaehnt worden sind einbauen +- alu postlayout fix (noch immer ein grosses fragezeichen was da nicht passt) diff --git a/src/beh_alu_tb.vhd b/src/beh_alu_tb.vhd index 6469bfb..0efdcc3 100644 --- a/src/beh_alu_tb.vhd +++ b/src/beh_alu_tb.vhd @@ -84,8 +84,14 @@ begin ); begin + -- init & reset sys_res_n <= '0'; - wait for 50 ns; + do_calc <= '0'; + opcode <= ALU_NOP; + op1 <= (others => '0'); + op2 <= (others => '0'); + + wait for 300 ns; sys_res_n <= '1'; for i in testmatrix'range loop diff --git a/src/post_alu_tb.vhd b/src/post_alu_tb.vhd index f2d433c..7563f20 100644 --- a/src/post_alu_tb.vhd +++ b/src/post_alu_tb.vhd @@ -42,9 +42,9 @@ begin process begin sys_clk <= '0'; - wait for 20 ns; + wait for 15 ns; sys_clk <= '1'; - wait for 20 ns; + wait for 15 ns; if stop = true then wait; end if; @@ -91,7 +91,7 @@ begin op1 <= (others => '0'); op2 <= (others => '0'); - wait for 240 ns; + wait for 300 ns; sys_res_n <= '1'; for i in testmatrix'range loop -- 2.25.1