diff options
author | bryan newbold <bnewbold@leaflabs.com> | 2013-10-09 00:23:48 -0400 |
---|---|---|
committer | bryan newbold <bnewbold@leaflabs.com> | 2013-10-09 00:23:48 -0400 |
commit | 471661de749521fb6f76358d3a62ad434d0c54fb (patch) | |
tree | 0dc64c0f3acf52b44b914944ae24f64916a77f9a /hdl | |
parent | a2bad497c8b01efac1781bd20bc14082dff56b7c (diff) | |
download | basic-hdl-template-471661de749521fb6f76358d3a62ad434d0c54fb.tar.gz basic-hdl-template-471661de749521fb6f76358d3a62ad434d0c54fb.zip |
clean up main_xula2 a bit
Diffstat (limited to 'hdl')
-rw-r--r-- | hdl/main_xula2.v | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/hdl/main_xula2.v b/hdl/main_xula2.v index 2f0d662..49581e1 100644 --- a/hdl/main_xula2.v +++ b/hdl/main_xula2.v @@ -25,8 +25,9 @@ module main ( output wire flash_miso ); - wire reset; - assign reset = chan[0]; + wire reset = chan[0]; + wire uart_rx = chan[17]; + wire uart_tx = chan[18]; reg [22:0] throb_counter = 0; reg throb_led = 0; @@ -35,7 +36,9 @@ module main ( wire [7:0] rx_byte; wire [7:0] tx_byte; wire uart_flag; - simple_uart simple_uart_inst ( + simple_uart ( + .CLOCK_DIVIDE(313) // for 12MHz clock + ) simple_uart_inst ( .clk(clock_12mhz), .rst(reset), .rx(chan[17]), |